Skip to content

Avoid stack buffers in glue code of AVX implementations

Jussi Kivilinna linux-crypto 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5crypto: x86/glue_helper - use le128 instead of u128 for CTR modearch/x86/crypto/camellia_glue.c arch/x86/crypto/cast6_avx_glue.c arch/x86/crypto/glue_helper.c +6 more+64 -580 replies
2/5crypto: cast6/avx - avoid using temporary stack buffersarch/x86/crypto/cast6-avx-x86_64-asm_64.S arch/x86/crypto/cast6_avx_glue.c arch/x86/crypto/glue_helper-asm-avx.S+227 -1250 replies
3/5crypto: twofish/avx - avoid using temporary stack buffersarch/x86/crypto/twofish-avx-x86_64-asm_64.S arch/x86/crypto/twofish_avx_glue.c+152 -1290 replies
4/5crypto: serpent/avx - avoid using temporary stack buffersarch/x86/crypto/serpent-avx-x86_64-asm_64.S arch/x86/crypto/serpent_avx_glue.c arch/x86/include/asm/crypto/serpent-avx.h+121 -1150 replies
5/5crypto: cast5/avx - avoid using temporary stack buffersarch/x86/crypto/cast5-avx-x86_64-asm_64.S arch/x86/crypto/cast5_avx_glue.c+280 -1310 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] Avoid stack buffers in glue code of AVX implementations

Patches modify AVX implementations so that they avoid using extra stack memory. Stack is not needed since implementation store blocks in registers.

---

Jussi Kivilinna (5):
crypto: x86/glue_helper - use le128 instead of u128 for CTR mode
crypto: cast6/avx - avoid using temporary stack buffers
crypto: twofish/avx - avoid using temporary stack buffers
crypto: serpent/avx - avoid using temporary stack buffers
crypto: cast5/avx - avoid using temporary stack buffers

 arch/x86/crypto/camellia_glue.c             |   16 +
 arch/x86/crypto/cast5-avx-x86_64-asm_64.S   |  332 +++++++++++++++++++++------
 arch/x86/crypto/cast5_avx_glue.c            |   79 ++----
 arch/x86/crypto/cast6-avx-x86_64-asm_64.S   |  190 ++++++++++-----
 arch/x86/crypto/cast6_avx_glue.c            |   77 +-----
 arch/x86/crypto/glue_helper-asm-avx.S       |   91 +++++++
 arch/x86/crypto/glue_helper.c               |   12 -
 arch/x86/crypto/serpent-avx-x86_64-asm_64.S |  166 +++++++++-----
 arch/x86/crypto/serpent_avx_glue.c          |   49 +---
 arch/x86/crypto/serpent_sse2_glue.c         |   12 -
 arch/x86/crypto/twofish-avx-x86_64-asm_64.S |  208 +++++++++++------
 arch/x86/crypto/twofish_avx_glue.c          |   73 +-----
 arch/x86/crypto/twofish_glue_3way.c         |   20 +-
 arch/x86/include/asm/crypto/glue_helper.h   |   28 +-
 arch/x86/include/asm/crypto/serpent-avx.h   |   27 +-
 arch/x86/include/asm/crypto/twofish.h       |    4 
 16 files changed, 835 insertions(+), 549 deletions(-)
 create mode 100644 arch/x86/crypto/glue_helper-asm-avx.S