On Fri, Nov 18, 2016 at 12:27:56PM +0100, Stephan Mueller wrote: > The CTR DRBG segments the number of random bytes to be generated into > 128 byte blocks. The current code misses the advancement of the output > buffer pointer when the requestor asks for more than 128 bytes of data. > In this case, the next 128 byte block of random numbers is copied to > the beginning of the output buffer again. This implies that only the > first 128 bytes of the output buffer would ever be filled. > > The patch adds the advancement of the buffer pointer to fill the entire > buffer. > > Signed-off-by: Stephan Mueller <smueller@xxxxxxxxxx> Patch applied. Thanks. -- Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line "unsubscribe linux-crypto" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html