diff options
author | Dmitry Belyavskiy <beldmit@gmail.com> | 2018-09-04 17:02:57 +0300 |
---|---|---|
committer | Dmitry Belyavskiy <beldmit@gmail.com> | 2018-09-04 17:02:57 +0300 |
commit | 06eb03a547f646080830d2cd5572844e19909b97 (patch) | |
tree | 8f31f70f3200201f835d372235b8d617b9512255 /gost_lcl.h | |
parent | f72fe5c4cfaa5130d0afb5174eb272bac01a912a (diff) | |
download | gost-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.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 */ |