summaryrefslogtreecommitdiff
path: root/samples/bpf/sockex1_user.c
diff options
context:
space:
mode:
authorStephan Mueller <smueller@chronox.de>2016-11-18 14:27:56 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2016-11-21 17:50:24 +0300
commit8ff4c191d1123ea1ba610dbc25e93568d9e7756c (patch)
tree534f7ab1c873752c3d9c06b34462a25a0ec8e770 /samples/bpf/sockex1_user.c
parent18f47f5e4737d5466a0e2774349bbb58d5512676 (diff)
downloadlinux-8ff4c191d1123ea1ba610dbc25e93568d9e7756c.tar.xz
crypto: drbg - advance output buffer pointer
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@chronox.de> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'samples/bpf/sockex1_user.c')
0 files changed, 0 insertions, 0 deletions