]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[rng] Choose HMAC_DRBG using SHA-256 as the DRBG algorithm
authorMichael Brown <mcb30@ipxe.org>
Tue, 6 Mar 2012 13:42:06 +0000 (13:42 +0000)
committerMichael Brown <mcb30@ipxe.org>
Tue, 6 Mar 2012 13:42:06 +0000 (13:42 +0000)
commit8d038040eaac85bbe08f0b5ba507ff0167b3a2f3
tree8cf96f207c7be185a397ffe776d3101ce49abf4a
parenta810258b429f846fbf4ff51c37847dcf66b87e4f
[rng] Choose HMAC_DRBG using SHA-256 as the DRBG algorithm

Both HMAC_DRBG using SHA-1 and HMAC_DRBG using SHA-256 are Approved
algorithms in ANS X9.82 for our chosen security strength of 128 bits.
However, general recommendations (see e.g. NIST SP800-57) are to use a
larger hash function in preference to SHA-1.

Since SHA-256 is required anyway for TLSv1.2 support, there is no code
size penalty for switching HMAC_DRBG to also use SHA-256.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/include/ipxe/drbg.h