summaryrefslogtreecommitdiff
path: root/crypto/ablk_helper.c
diff options
context:
space:
mode:
authorStephan Mueller <smueller@chronox.de>2015-05-25 15:09:14 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2015-05-27 17:51:53 +0800
commit9a8654703eeb76902875d011cbfb217b6e96ffab (patch)
tree57784b6227119f0163caed0e8b1cbb4be17d55d5 /crypto/ablk_helper.c
parent7cd298d06cad210c681a4c3f5d77ca6d173ebc4d (diff)
downloadlinux-crypto-9a8654703eeb76902875d011cbfb217b6e96ffab.tar.gz
linux-crypto-9a8654703eeb76902875d011cbfb217b6e96ffab.zip
crypto: drbg - prepare for async seeding
In order to prepare for the addition of the asynchronous seeding call, the invocation of seeding the DRBG is moved out into a helper function. In addition, a block of memory is allocated during initialization time that will be used as a scratchpad for obtaining entropy. That scratchpad is used for the initial seeding operation as well as by the asynchronous seeding call. The memory must be zeroized every time the DRBG seeding call succeeds to avoid entropy data lingering in memory. CC: Andreas Steffen <andreas.steffen@strongswan.org> CC: Theodore Ts'o <tytso@mit.edu> CC: Sandy Harris <sandyinchina@gmail.com> Signed-off-by: Stephan Mueller <smueller@chronox.de> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/ablk_helper.c')
0 files changed, 0 insertions, 0 deletions