Skip to content

Commit 5b635e2

Browse files
smuellerDDherbertx
authored andcommitted
crypto: drbg - HMAC-SHA1 DRBG has crypto strength of 128 bits
The patch corrects the security strength of the HMAC-SHA1 DRBG to 128 bits. This strength defines the size of the seed required for the DRBG. Thus, the patch lowers the seeding requirement from 256 bits to 128 bits for HMAC-SHA1. Signed-off-by: Stephan Mueller <smueller@chronox.de> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent 27e4de2 commit 5b635e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crypto/drbg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ static const struct drbg_core drbg_cores[] = {
184184
#endif /* CONFIG_CRYPTO_DRBG_HASH */
185185
#ifdef CONFIG_CRYPTO_DRBG_HMAC
186186
{
187-
.flags = DRBG_HMAC | DRBG_STRENGTH256,
187+
.flags = DRBG_HMAC | DRBG_STRENGTH128,
188188
.statelen = 20, /* block length of cipher */
189189
.max_addtllen = 35,
190190
.max_bits = 19,

0 commit comments

Comments
 (0)