Re: [PATCH] crypto: CTR DRBG - advance output buffer pointer

2016-11-21 Thread Herbert Xu
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

[PATCH] crypto: CTR DRBG - advance output buffer pointer

2016-11-18 Thread Stephan Mueller
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