aboutsummaryrefslogtreecommitdiff
path: root/gost_lcl.h
diff options
context:
space:
mode:
authorDmitry Belyavskiy <beldmit@gmail.com>2018-09-04 17:02:57 +0300
committerDmitry Belyavskiy <beldmit@gmail.com>2018-09-04 17:02:57 +0300
commit06eb03a547f646080830d2cd5572844e19909b97 (patch)
tree8f31f70f3200201f835d372235b8d617b9512255 /gost_lcl.h
parentf72fe5c4cfaa5130d0afb5174eb272bac01a912a (diff)
downloadgost-engine-06eb03a547f646080830d2cd5572844e19909b97.zip
gost-engine-06eb03a547f646080830d2cd5572844e19909b97.tar.gz
gost-engine-06eb03a547f646080830d2cd5572844e19909b97.tar.bz2
Let's wrap old and new key enncryption together
Diffstat (limited to 'gost_lcl.h')
-rw-r--r--gost_lcl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gost_lcl.h b/gost_lcl.h
index 9b0fa1c..cc1672c 100644
--- a/gost_lcl.h
+++ b/gost_lcl.h
@@ -248,11 +248,11 @@ void inc_counter(unsigned char *buffer, size_t buf_len);
# 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_ECcp_encrypt(EVP_PKEY_CTX *ctx, unsigned char *out,
+int pkey_gost_encrypt(EVP_PKEY_CTX *ctx, unsigned char *out,
size_t *outlen, const unsigned char *key,
size_t key_len);
-int pkey_GOST_ECcp_decrypt(EVP_PKEY_CTX *ctx, unsigned char *out,
+int pkey_gost_decrypt(EVP_PKEY_CTX *ctx, unsigned char *out,
size_t *outlen, const unsigned char *in,
size_t in_len);
/* derive functions */