diff options
-rw-r--r-- | gost_ec_keyx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gost_ec_keyx.c b/gost_ec_keyx.c index 3f0b286..503d80b 100644 --- a/gost_ec_keyx.c +++ b/gost_ec_keyx.c @@ -553,7 +553,7 @@ static int pkey_gost2018_decrypt(EVP_PKEY_CTX *pctx, unsigned char *key, int ret = 0; unsigned char expkeys[64]; EVP_PKEY *eph_key = NULL; - int pkey_nid = EVP_PKEY_base_id(eph_key); + int pkey_nid = EVP_PKEY_base_id(priv); int mac_nid = NID_undef; int iv_len = 0; |