Re: [PATCH 2/5] crypto: chacha20 - Use unaligned access macros when loading key and IV

2017-11-22 Thread Ard Biesheuvel
On 22 November 2017 at 19:51, Eric Biggers wrote: > From: Eric Biggers > > The generic ChaCha20 implementation has a cra_alignmask of 3, which > ensures that the key passed into crypto_chacha20_setkey() and the IV > passed into crypto_chacha20_init() are

[PATCH 2/5] crypto: chacha20 - Use unaligned access macros when loading key and IV

2017-11-22 Thread Eric Biggers
From: Eric Biggers The generic ChaCha20 implementation has a cra_alignmask of 3, which ensures that the key passed into crypto_chacha20_setkey() and the IV passed into crypto_chacha20_init() are 4-byte aligned. However, these functions are also called from the ARM and ARM64