aboutsummaryrefslogtreecommitdiff
path: root/gost_ec_keyx.c
diff options
context:
space:
mode:
authorDmitry Belyavskiy <beldmit@gmail.com>2018-12-18 15:07:28 +0300
committerDmitry Belyavskiy <beldmit@gmail.com>2018-12-18 15:07:28 +0300
commite8322a529ed6d4d1da4f275f4f8771e65c832726 (patch)
tree9fe636650c27e27c233810e535fa944196c3b2df /gost_ec_keyx.c
parent61afc2c3334e7e69598715548401078f350c45d1 (diff)
downloadgost-engine-e8322a529ed6d4d1da4f275f4f8771e65c832726.zip
gost-engine-e8322a529ed6d4d1da4f275f4f8771e65c832726.tar.gz
gost-engine-e8322a529ed6d4d1da4f275f4f8771e65c832726.tar.bz2
Errors adjusted
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 2a858ac..79e9a85 100644
--- a/gost_ec_keyx.c
+++ b/gost_ec_keyx.c
@@ -607,7 +607,7 @@ static int pkey_gost2018_decrypt(EVP_PKEY_CTX *pctx, unsigned char *key,
ASN1_STRING_length(pst->psexp), data->cipher_nid,
expkeys + 32, mac_nid, expkeys + 0, data->shared_ukm + 24,
iv_len, key) <= 0) {
- GOSTerr(GOST_F_PKEY_GOST2018_DECRYPT, GOST_R_CANNOT_PACK_EPHEMERAL_KEY);
+ GOSTerr(GOST_F_PKEY_GOST2018_DECRYPT, GOST_R_CANNOT_UNPACK_EPHEMERAL_KEY);
goto err;
}