From: Dmitry Belyavskiy Date: Mon, 4 Jan 2016 09:12:15 +0000 (+0300) Subject: Fixed security bits for GOST 2001 X-Git-Tag: v1.1.0.2~22^2~12 X-Git-Url: http://wagner.pp.ru/gitweb/?a=commitdiff_plain;h=51a91e8230a0d9794031dd9ee539a3bb8ecf9587;p=openssl-gost%2Fengine.git Fixed security bits for GOST 2001 --- diff --git a/gost_ameth.c b/gost_ameth.c index 0ea1583..8a9cd28 100644 --- a/gost_ameth.c +++ b/gost_ameth.c @@ -877,6 +877,9 @@ int register_ameth_gost(int nid, EVP_PKEY_ASN1_METHOD **ameth, pkey_size_gost, pkey_bits_gost); EVP_PKEY_asn1_set_ctrl(*ameth, pkey_ctrl_gost); +#if OPENSSL_VERSION_NUMBER >= 0x10100000L + EVP_PKEY_asn1_set_security_bits(*ameth, pkey_bits_gost); +#endif break; case NID_id_GostR3410_2012_256: case NID_id_GostR3410_2012_512: