]> wagner.pp.ru Git - openssl-gost/engine.git/blobdiff - gost_lcl.h
tcl_tests: Add TCL tests files
[openssl-gost/engine.git] / gost_lcl.h
index 6623d6d3a6bb46fae1447678bc9e0270a188d8af..bb25ce360c3a47612c776dc507cb752bcbd56158 100644 (file)
@@ -245,7 +245,6 @@ void inc_counter(unsigned char *buffer, size_t buf_len);
 
 # define EVP_MD_CTRL_KEY_LEN (EVP_MD_CTRL_ALG_CTRL+3)
 # define EVP_MD_CTRL_SET_KEY (EVP_MD_CTRL_ALG_CTRL+4)
-# define EVP_MD_CTRL_MAC_LEN (EVP_MD_CTRL_ALG_CTRL+5)
 /* EVP_PKEY_METHOD key encryption callbacks */
 /* From gost_ec_keyx.c */
 int pkey_gost_encrypt(EVP_PKEY_CTX *ctx, unsigned char *out,
@@ -266,6 +265,12 @@ int gost_ec_verify(const unsigned char *dgst, int dgst_len,
                    ECDSA_SIG *sig, EC_KEY *ec);
 int gost_ec_compute_public(EC_KEY *ec);
 
+/* VKO */
+int VKO_compute_key(unsigned char *shared_key,
+                    const EC_POINT *pub_key, const EC_KEY *priv_key,
+                    const unsigned char *ukm, const size_t ukm_size,
+                    const int vko_dgst_nid);
+
 /* KDF TREE */
 int gost_kdftree2012_256(unsigned char *keyout, size_t keyout_len,
                          const unsigned char *key, size_t keylen,