• David McCullough's avatar
    [CRYPTO] aes: Fixed array boundary violation · 55e9dce3
    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 Loading commit data...
Makefile Loading commit data...
aes.c Loading commit data...
anubis.c Loading commit data...
api.c Loading commit data...
arc4.c Loading commit data...
blowfish.c Loading commit data...
cast5.c Loading commit data...
cast6.c Loading commit data...
cipher.c Loading commit data...
compress.c Loading commit data...
crc32c.c Loading commit data...
crypto_null.c Loading commit data...
deflate.c Loading commit data...
des.c Loading commit data...
digest.c Loading commit data...
hmac.c Loading commit data...
internal.h Loading commit data...
khazad.c Loading commit data...
md4.c Loading commit data...
md5.c Loading commit data...
michael_mic.c Loading commit data...
proc.c Loading commit data...
scatterwalk.c Loading commit data...
scatterwalk.h Loading commit data...
serpent.c Loading commit data...
sha1.c Loading commit data...
sha256.c Loading commit data...
sha512.c Loading commit data...
tcrypt.c Loading commit data...
tcrypt.h Loading commit data...
tea.c Loading commit data...
tgr192.c Loading commit data...
twofish.c Loading commit data...
wp512.c Loading commit data...