[openssl-commits] [openssl] master update
Matt Caswell
matt at openssl.org
Mon Oct 23 13:01:48 UTC 2017
The branch master has been updated
via c9fe362303fc54ff19bde7511475f28663f7d554 (commit)
from fb9163ba4ddd95e9516fbd8695542460507ef3e6 (commit)
- Log -----------------------------------------------------------------
commit c9fe362303fc54ff19bde7511475f28663f7d554
Author: Matt Caswell <matt at openssl.org>
Date: Wed Oct 18 10:23:33 2017 +0100
Correct value for BN_security_bits()
The function BN_security_bits() uses the values from SP800-57 to assign
security bit values for different FF key sizes. However the value for 192
security bits is wrong. SP800-57 has it as 7680 but the code had it as
7690.
Reviewed-by: Tim Hudson <tjh at openssl.org>
Reviewed-by: Rich Salz <rsalz at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4546)
-----------------------------------------------------------------------
Summary of changes:
crypto/bn/bn_lib.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/crypto/bn/bn_lib.c b/crypto/bn/bn_lib.c
index 7571561..dd79f94 100644
--- a/crypto/bn/bn_lib.c
+++ b/crypto/bn/bn_lib.c
@@ -812,7 +812,7 @@ int BN_security_bits(int L, int N)
int secbits, bits;
if (L >= 15360)
secbits = 256;
- else if (L >= 7690)
+ else if (L >= 7680)
secbits = 192;
else if (L >= 3072)
secbits = 128;
More information about the openssl-commits
mailing list