]> wagner.pp.ru Git - openssl-gost/engine.git/commitdiff
Fixed security bits for GOST 2001
authorDmitry Belyavskiy <beldmit@gmail.com>
Mon, 4 Jan 2016 09:12:15 +0000 (12:12 +0300)
committerDmitry Belyavskiy <beldmit@gmail.com>
Mon, 4 Jan 2016 09:12:15 +0000 (12:12 +0300)
gost_ameth.c

index 0ea1583aa4742c5cc47847b0f0aeeb24aadbfb5d..8a9cd286823d6aedc4eb6206d9d88ea0b9ecced4 100644 (file)
@@ -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: