aboutsummaryrefslogtreecommitdiff
path: root/gost_ec_keyx.c
diff options
context:
space:
mode:
authorigrkir <i.kirillov@kryptonite.ru>2022-09-23 15:32:21 +0300
committerDmitry Belyavskiy <beldmit@users.noreply.github.com>2022-12-02 18:56:55 +0100
commit39dc6de6a9474e10560ebfb0a9cecc05867b9c7b (patch)
tree6fa646e6b18d5f43afe56fa9d8db64b042b710c0 /gost_ec_keyx.c
parent97b3db1ebf985b73718faaae6c425782d526d44f (diff)
downloadgost-engine-39dc6de6a9474e10560ebfb0a9cecc05867b9c7b.zip
gost-engine-39dc6de6a9474e10560ebfb0a9cecc05867b9c7b.tar.gz
gost-engine-39dc6de6a9474e10560ebfb0a9cecc05867b9c7b.tar.bz2
Implementation of the MGM mode for magma/kuznyechik
first implemented in ossl_patched branch uses dynamic NIDs Signed-off-by: Sergei Ianovich <sergei.ianovich@ya.ru>
Diffstat (limited to 'gost_ec_keyx.c')
-rw-r--r--gost_ec_keyx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gost_ec_keyx.c b/gost_ec_keyx.c
index 1dc0a29..8839c4a 100644
--- a/gost_ec_keyx.c
+++ b/gost_ec_keyx.c
@@ -769,7 +769,7 @@ int pkey_gost_decrypt(EVP_PKEY_CTX *pctx, unsigned char *key,
}
if (key != NULL && *key_len < 32) {
- GOSTerr(GOST_F_PKEY_GOST2018_ENCRYPT, GOST_R_INVALID_BUFFER_SIZE);
+ GOSTerr(GOST_F_PKEY_GOST_DECRYPT, GOST_R_INVALID_BUFFER_SIZE);
return 0;
}