]> www.wagner.pp.ru Git - openssl-gost/engine.git/blobdiff - gost_ec_keyx.c
Implementation of the MGM mode for magma/kuznyechik
[openssl-gost/engine.git] / gost_ec_keyx.c
index 1dc0a2956ed2cf043f698d301d11a64a9b48fb48..8839c4ac8e8082348ab86bc06c077cb53f368cb0 100644 (file)
@@ -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;
     }