[CRYPTO] aes: Fixed array boundary violation
David McCullough authored

The AES setkey routine writes 64 bytes to the E_KEY area even though
there are only 60 bytes there.  It is in fact safe since E_KEY is
immediately follwed by D_KEY which is initialised afterwards.  However,
doing this may trigger undefined behaviour and makes Coverity unhappy.

So by combining E_KEY and D_KEY into one array we sidestep this issue
altogether.

This problem was reported by Adrian Bunk.
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
55e9dce3
Name Last commit Last update
..
Kconfig [CRYPTO] Allow AES C/ASM implementations to coexist
Makefile Linux-2.6.12-rc2
aes.c [CRYPTO] aes: Fixed array boundary violation
anubis.c [CRYPTO] cipher: Set alignmask for multi-byte loads
api.c [CRYPTO] all: Use kzalloc where possible
arc4.c Linux-2.6.12-rc2
blowfish.c [CRYPTO] cipher: Set alignmask for multi-byte loads
cast5.c [CRYPTO] cipher: Set alignmask for multi-byte loads
cast6.c [CRYPTO] cipher: Set alignmask for multi-byte loads
cipher.c [CRYPTO] cipher: Align temporary buffer in cbc_process_decrypt
compress.c Linux-2.6.12-rc2
crc32c.c [CRYPTO] Use standard byte order macros wherever possible
crypto_null.c [PATCH] crypto: fix null encryption/compression
deflate.c [CRYPTO] all: Use kzalloc where possible
des.c [CRYPTO] all: Add missing cra_alignmask
digest.c Linux-2.6.12-rc2
hmac.c [PATCH] Use sg_set_buf/sg_init_one where applicable
internal.h [CRYPTO] Allow multiple implementations of the same algorithm
khazad.c [CRYPTO] cipher: Set alignmask for multi-byte loads
md4.c [CRYPTO] Use standard byte order macros wherever possible
md5.c [CRYPTO] Use standard byte order macros wherever possible
michael_mic.c [CRYPTO] Use standard byte order macros wherever possible
proc.c [CRYPTO] Allow multiple implementations of the same algorithm
scatterwalk.c [PATCH] remove bogus asm/bug.h includes.
scatterwalk.h [CRYPTO] Add alignmask for low-level cipher implementations
serpent.c
sha1.c
sha256.c
sha512.c
tcrypt.c
tcrypt.h
tea.c
tgr192.c
twofish.c
wp512.c