summaryrefslogtreecommitdiffstats
path: root/drivers/crypto
diff options
context:
space:
mode:
authorStephan Mueller <smueller@chronox.de>2014-07-31 21:47:33 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2014-08-01 16:36:14 +0200
commitce5481d01f67ad304908ec2113515440c0fa86eb (patch)
treeeb6d591256bcfaec0febc7edcf603566544a1210 /drivers/crypto
parentcrypto: ccp - Do not sign extend input data to CCP (diff)
downloadlinux-ce5481d01f67ad304908ec2113515440c0fa86eb.tar.xz
linux-ce5481d01f67ad304908ec2113515440c0fa86eb.zip
crypto: drbg - fix failure of generating multiple of 2**16 bytes
The function drbg_generate_long slices the request into 2**16 byte or smaller chunks. However, the loop, however invokes the random number generation function with zero bytes when the request size is a multiple of 2**16 bytes. The fix prevents zero bytes requests. Signed-off-by: Stephan Mueller <smueller@chronox.de> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto')
0 files changed, 0 insertions, 0 deletions