diff options
author | Eric Biggers <ebiggers@google.com> | 2017-11-22 11:51:35 -0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2017-11-29 17:33:31 +1100 |
commit | b71bca3c84a81228f89a07a2fc0295cab7361b00 (patch) | |
tree | 1eb9e4d0a5a9580f105c24901b1c395c86610332 /crypto/testmgr.h | |
parent | 8733a5f8aa2031841b3b82246db980a952c3a7c8 (diff) | |
download | linux-crypto-b71bca3c84a81228f89a07a2fc0295cab7361b00.tar.gz linux-crypto-b71bca3c84a81228f89a07a2fc0295cab7361b00.zip |
crypto: chacha20 - Fix unaligned access when loading constants
The four 32-bit constants for the initial state of ChaCha20 were loaded
from a char array which is not guaranteed to have the needed alignment.
Fix it by just assigning the constants directly instead.
Signed-off-by: Eric Biggers <ebiggers@google.com>
Acked-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/testmgr.h')
0 files changed, 0 insertions, 0 deletions