diff options
author | Jarod Wilson <jarod@redhat.com> | 2011-11-09 05:04:06 +0100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2011-11-09 05:04:06 +0100 |
commit | 505172e11f5a0d9916e20e40d3b0a6f87d3a59b6 (patch) | |
tree | de5c671a37c3b3479595c1c9c891848953199985 /crypto/lrw.c | |
parent | crypto: twofish-x86_64-3way - add xts support (diff) | |
download | linux-505172e11f5a0d9916e20e40d3b0a6f87d3a59b6.tar.xz linux-505172e11f5a0d9916e20e40d3b0a6f87d3a59b6.zip |
crypto: ansi_cprng - enforce key != seed in fips mode
Apparently, NIST is tightening up its requirements for FIPS validation
with respect to RNGs. Its always been required that in fips mode, the
ansi cprng not be fed key and seed material that was identical, but
they're now interpreting FIPS 140-2, section AS07.09 as requiring that
the implementation itself must enforce the requirement. Easy fix, we
just do a memcmp of key and seed in fips_cprng_reset and call it a day.
v2: Per Neil's advice, ensure slen is sufficiently long before we
compare key and seed to avoid looking at potentially unallocated mem.
CC: Stephan Mueller <smueller@atsec.com>
CC: Steve Grubb <sgrubb@redhat.com>
Signed-off-by: Jarod Wilson <jarod@redhat.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions