Skip to content

crypto: x86/aesni - Simplify AES key expansion code

Chang S. Bae dm-devel linux-crypto linux-doc linux-pm lkml llvm oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 1 replyIn review

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2crypto: x86/aesni - Rearrange AES key size checkarch/x86/crypto/aesni-intel_glue.c+8 -100 replies
2/2crypto: x86/aesni - Update aesni_set_key() to return voidarch/x86/crypto/aesni-intel_asm.S arch/x86/crypto/aesni-intel_glue.c+6 -70 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchEric Biggers
1/2
2/2R-b

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

Read the v2 thread

Cover letter [PATCH v2 0/2] crypto: x86/aesni - Simplify AES key expansion code

Previously, V1 [1] was posted to update the aesni_set_key() prototype to remove an unnecessary error code return type.

During the review process, it was discovered that both aes_expandkey() and the AES-NI glue code redundantly check the key size. V2 includes a cleanup to invoke aes_expandkey() immediately if AES-NI is unusable.

Thanks,
Chang

[1]: https://lore.kernel.org/lkml/[email protected]/

Chang S. Bae (2):
crypto: x86/aesni - Rearrange AES key size check
crypto: x86/aesni - Update aesni_set_key() to return void

 arch/x86/crypto/aesni-intel_asm.S  |  5 ++---
 arch/x86/crypto/aesni-intel_glue.c | 24 +++++++++++-------------
 2 files changed, 13 insertions(+), 16 deletions(-)

base-commit: e8f897f4afef0031fe618a8e94127a0934896aba

Signature · 1 line
2.34.1