X-Git-Url: http://wagner.pp.ru/gitweb/?a=blobdiff_plain;f=gost_ameth.c;h=7fe05c8d81b0f9e4083ac60b2ba80564dbd90042;hb=c4e68c4e124ec29bd3c9c88fd8fdca77e6292f38;hp=22631c0fc51babdb753dd95ae030be1e0857e2fc;hpb=36af4d82eb967367885dfa217f50a6941f5c9c40;p=openssl-gost%2Fengine.git diff --git a/gost_ameth.c b/gost_ameth.c index 22631c0..7fe05c8 100644 --- a/gost_ameth.c +++ b/gost_ameth.c @@ -79,6 +79,12 @@ static ASN1_STRING *encode_gost_algor_params(const EVP_PKEY *key) break; case NID_id_GostR3410_2012_512: pkey_param_nid = EC_GROUP_get_curve_name(EC_KEY_get0_group(key_ptr)); + switch (pkey_param_nid) { + case NID_id_tc26_gost_3410_2012_512_paramSetTest: + case NID_id_tc26_gost_3410_2012_512_paramSetA: + case NID_id_tc26_gost_3410_2012_512_paramSetB: + gkp->hash_params = OBJ_nid2obj(NID_id_GostR3411_2012_512); + } break; case NID_id_GostR3410_2001: pkey_param_nid = EC_GROUP_get_curve_name(EC_KEY_get0_group(key_ptr));