crypto: drbg - update FIPS CTR self-checks to aes256
authorDimitri John Ledkov <dimitri.ledkov@canonical.com>
Mon, 30 Oct 2023 12:05:14 +0000 (14:05 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 17 Nov 2023 11:16:29 +0000 (19:16 +0800)
commita9dc62988600e57cabcca9b357cde4df8ee61fb5
tree663295d141688c880cb0b8246fb5a7fcdd5d91f3
parent7ee44f1b59df29419e1bfdfd118fbcdd83c5398c
crypto: drbg - update FIPS CTR self-checks to aes256

When originally drbg was introduced FIPS self-checks for all types but
CTR were using the most preferred parameters for each type of
DRBG. Update CTR self-check to use aes256.

This patch updates code from 541af946fe ("crypto: drbg - SP800-90A
Deterministic Random Bit Generator"), but is not interesting to
cherry-pick for stable updates, because it doesn't affect regular
builds, nor has any tangible effect on FIPS certifcation.

Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
Reviewed-by: Stephan Mueller <smueller@chronox.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/drbg.c