Skip to content

crypto: chacha20 - Alignment fixes

Eric Biggers linux-crypto lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5crypto: chacha20 - Fix unaligned access when loading constantscrypto/chacha20_generic.c+4 -61 reply
2/5crypto: chacha20 - Use unaligned access macros when loading key and IVcrypto/chacha20_generic.c+6 -101 reply
3/5crypto: chacha20 - Remove cra_alignmaskcrypto/chacha20_generic.c+0 -11 reply
4/5crypto: x86/chacha20 - Remove cra_alignmaskarch/x86/crypto/chacha20_glue.c+0 -11 reply
5/5crypto: chacha20 - Fix keystream alignment for chacha20_block()crypto/chacha20_generic.c drivers/char/random.c include/crypto/chacha20.h +1 more+18 -173 replies

Reviews trailers per patch

4 of 5 patches have a Reviewed-by or Acked-by.

PatchArd Biesheuvel
1/5A-b
2/5A-b
3/5A-b
4/5A-b
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] crypto: chacha20 - Alignment fixes

From: Eric Biggers <[email protected]>

This series fixes potentially unaligned memory accesses when loading the initial state, key, and IV for ChaCha20, and when outputting each keystream block.

It also removes the cra_alignmask from the generic and x86 ChaCha20 implementations, once it is no longer needed.

Eric Biggers (5):
crypto: chacha20 - Fix unaligned access when loading constants
crypto: chacha20 - Use unaligned access macros when loading key and IV
crypto: chacha20 - Remove cra_alignmask
crypto: x86/chacha20 - Remove cra_alignmask
crypto: chacha20 - Fix keystream alignment for chacha20_block()

 arch/x86/crypto/chacha20_glue.c |  1 -
 crypto/chacha20_generic.c       | 33 +++++++++++++--------------------
 drivers/char/random.c           | 24 ++++++++++++------------
 include/crypto/chacha20.h       |  3 ++-
 lib/chacha20.c                  |  2 +-
 5 files changed, 28 insertions(+), 35 deletions(-)
Signature · 1 line
2.15.0.448.gf294e3d99a-goog