commit | ce5481d01f67ad304908ec2113515440c0fa86eb | [log] [tgz] |
---|---|---|
author | Stephan Mueller <smueller@chronox.de> | Thu Jul 31 21:47:33 2014 +0200 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Fri Aug 01 22:36:14 2014 +0800 |
tree | eb6d591256bcfaec0febc7edcf603566544a1210 | |
parent | 6391723293bb55f05b43973bbbc7a06822b50555 [diff] |
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>