summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2020-03-19 09:12:33 -0700
committerHerbert Xu <herbert@gondor.apana.org.au>2020-03-30 11:50:50 +1100
commitea53756d831a1a5db3ca00a12747365e2fcb4bd8 (patch)
treed794c789f1944ea429ae19b8915c0b0804d5a912 /crypto
parent358ba762d9f1d4ba99ab31ef12bc28014b22f4c9 (diff)
downloadlinux-ea53756d831a1a5db3ca00a12747365e2fcb4bd8.tar.gz
linux-ea53756d831a1a5db3ca00a12747365e2fcb4bd8.tar.bz2
linux-ea53756d831a1a5db3ca00a12747365e2fcb4bd8.zip
crypto: caam - limit single JD RNG output to maximum of 16 bytes
In order to follow recommendation in SP800-90C (section "9.4 The Oversampling-NRBG Construction") limit the output of "generate" JD submitted to CAAM. See https://lore.kernel.org/linux-crypto/VI1PR0402MB3485EF10976A4A69F90E5B0F98580@VI1PR0402MB3485.eurprd04.prod.outlook.com/ for more details. This change should make CAAM's hwrng driver good enough to have 1024 quality rating. Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Reviewed-by: Horia Geantă <horia.geanta@nxp.com> Cc: Chris Healy <cphealy@gmail.com> Cc: Lucas Stach <l.stach@pengutronix.de> Cc: Horia Geantă <horia.geanta@nxp.com> Cc: Herbert Xu <herbert@gondor.apana.org.au> Cc: Iuliana Prodan <iuliana.prodan@nxp.com> Cc: linux-crypto@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: linux-imx@nxp.com Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions