aboutsummaryrefslogtreecommitdiffstats
path: root/COPYING
diff options
context:
space:
mode:
authorStephan Mueller <smueller@chronox.de>2014-07-01 17:08:48 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2014-07-04 11:04:53 +0800
commit8fecaad77fb9e076daa462ac1596330a604e23ad (patch)
treef41fec9eb667b9b07941603749c79f56a8bc6833 /COPYING
parentcrypto: ux500 - make interrupt mode plausible (diff)
downloadlinux-dev-8fecaad77fb9e076daa462ac1596330a604e23ad.tar.xz
linux-dev-8fecaad77fb9e076daa462ac1596330a604e23ad.zip
crypto: drbg - fix memory corruption for AES192
For the CTR DRBG, the drbg_state->scratchpad temp buffer (i.e. the memory location immediately before the drbg_state->tfm variable is the buffer that the BCC function operates on. BCC operates blockwise. Making the temp buffer drbg_statelen(drbg) in size is sufficient when the DRBG state length is a multiple of the block size. For AES192 this is not the case and the length for temp is insufficient (yes, that also means for such ciphers, the final output of all BCC rounds are truncated before used to update the state of the DRBG!!). The patch enlarges the temp buffer from drbg_statelen to drbg_statelen + drbg_blocklen to have sufficient space. Reported-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: Stephan Mueller <smueller@chronox.de> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions