Re: [PATCH 1/5] crypto: chacha20 - Fix unaligned access when loading constants

2017-11-22 Thread Ard Biesheuvel
On 22 November 2017 at 19:51, Eric Biggers wrote: > From: Eric Biggers > > 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

[PATCH 1/5] crypto: chacha20 - Fix unaligned access when loading constants

2017-11-22 Thread Eric Biggers
From: Eric Biggers 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 ---