• Eric Biggers's avatar
    crypto: chacha20 - Fix keystream alignment for chacha20_block() · 9f480fae
    Eric Biggers authored
    When chacha20_block() outputs the keystream block, it uses 'u32' stores
    directly.  However, the callers (crypto/chacha20_generic.c and
    drivers/char/random.c) declare the keystream buffer as a 'u8' array,
    which is not guaranteed to have the needed alignment.
    
    Fix it by having both callers declare the keystream as a 'u32' array.
    For now this is preferable to switching over to the unaligned access
    macros because chacha20_block() is only being used in cases where we can
    easily control the alignment (stack buffers).
    Signed-off-by: default avatarEric Biggers <ebiggers@google.com>
    Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
    9f480fae
Name
Last commit
Last update
..
internal Loading commit data...
ablk_helper.h Loading commit data...
acompress.h Loading commit data...
aead.h Loading commit data...
aes.h Loading commit data...
akcipher.h Loading commit data...
algapi.h Loading commit data...
authenc.h Loading commit data...
b128ops.h Loading commit data...
blowfish.h Loading commit data...
cast5.h Loading commit data...
cast6.h Loading commit data...
cast_common.h Loading commit data...
cbc.h Loading commit data...
chacha20.h Loading commit data...
cryptd.h Loading commit data...
crypto_wq.h Loading commit data...
ctr.h Loading commit data...
des.h Loading commit data...
dh.h Loading commit data...
drbg.h Loading commit data...
ecdh.h Loading commit data...
engine.h Loading commit data...
gcm.h Loading commit data...
gf128mul.h Loading commit data...
ghash.h Loading commit data...
hash.h Loading commit data...
hash_info.h Loading commit data...
hmac.h Loading commit data...
if_alg.h Loading commit data...
kpp.h Loading commit data...
lrw.h Loading commit data...
mcryptd.h Loading commit data...
md5.h Loading commit data...
null.h Loading commit data...
padlock.h Loading commit data...
pcrypt.h Loading commit data...
pkcs7.h Loading commit data...
poly1305.h Loading commit data...
public_key.h Loading commit data...
rng.h Loading commit data...
scatterwalk.h Loading commit data...
serpent.h Loading commit data...
sha.h Loading commit data...
sha1_base.h Loading commit data...
sha256_base.h Loading commit data...
sha3.h Loading commit data...
sha512_base.h Loading commit data...
skcipher.h Loading commit data...
sm3.h Loading commit data...
sm3_base.h Loading commit data...
twofish.h Loading commit data...
vmac.h Loading commit data...
xts.h Loading commit data...