OSDN Git Service

crypto: DRBG - switch to HMAC SHA512 DRBG as default DRBG
authorStephan Müller <smueller@chronox.de>
Thu, 20 May 2021 19:31:11 +0000 (21:31 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 28 May 2021 07:11:45 +0000 (15:11 +0800)
commit9b7b94683a9b9c42a743d591e48b9f51f505dd1f
treeda706fef854715a790ee990218f9d36f8739fdaf
parent98f481f22de235b5356f9fa94b0fcffeacc772d8
crypto: DRBG - switch to HMAC SHA512 DRBG as default DRBG

The default DRBG is the one that has the highest priority. The priority
is defined based on the order of the list drbg_cores[] where the highest
priority is given to the last entry by drbg_fill_array.

With this patch the default DRBG is switched from HMAC SHA256 to HMAC
SHA512 to support compliance with SP800-90B and SP800-90C (current
draft).

The user of the crypto API is completely unaffected by the change.

Signed-off-by: Stephan Mueller <smueller@chronox.de>
Acked-by: simo Sorce <simo@redhat.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/drbg.c