crypto: Add helper functions for parallelized LRW and XTS modes
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest18 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/18 | crypto: lrw: fix memleakcrypto/ | +1 | 0 replies | |
| 2/18 | crypto: lrw: use blocksize constantcrypto/ | +5 | 0 replies | |
| 3/18 | crypto: lrw: split gf128mul table initialization from setkeycrypto/ | +40 | 0 replies | |
| 4/18 | crypto: lrw: add interface for parallelized cipher implementionscrypto/ include/ | +128 | 0 replies | |
| 5/18 | crypto: testmgr: add lrw(serpent) test vectorscrypto/ crypto/ | +517 | 0 replies | |
| 6/18 | crypto: tcrypt: add lrw(serpent) testscrypto/ crypto/ | +10 | 0 replies | |
| 7/18 | crypto: serpent-sse2: add lrw supportarch/ crypto/ include/ | +221 | 0 replies | |
| 8/18 | crypto: testmgr: add lrw(twofish) test vectorscrypto/ crypto/ | +516 | 0 replies | |
| 9/18 | crypto: tcrypt: add lrw(twofish) testscrypto/ | +5 | 0 replies | |
| 10/18 | crypto: twofish-x86_64-3way: add lrw supportarch/ crypto/ include/ | +145 | 0 replies | |
| 11/18 | crypto: xts: use blocksize constantcrypto/ | +5 | 0 replies | |
| 12/18 | crypto: xts: add interface for parallelized cipher implementationscrypto/ include/ | +99 | 0 replies | |
| 13/18 | crypto: testmgr: add xts(serpent) test vectorscrypto/ crypto/ | +697 | 0 replies | |
| 14/18 | crypto: tcrypt: add xts(serpent) testscrypto/ crypto/ | +10 | 0 replies | |
| 15/18 | crypto: serpent-sse2: add xts supportarch/ | +178 | 0 replies | |
| 16/18 | crypto: testmgr: add xts(twofish) test vectorscrypto/ crypto/ | +696 | 0 replies | |
| 17/18 | crypto: tcrypt: add xts(twofish) testscrypto/ | +5 | 0 replies | |
| 18/18 | crypto: twofish-x86_64-3way: add xts supportarch/ | +117 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 00/18] crypto: Add helper functions for parallelized LRW and XTS modes
This series adds lrw_crypt() and xts_crypt() functions for cipher implementations that can benefit from parallel cipher block operations. To make interface flexible, caller is reponsible of allocating buffer large enough to store temporary cipher blocks. This buffer size should be as large as size of parallel blocks processed at once. Cryption callback is called with buffer size at maximum of parallel blocks size and at minimum size of one block.
Series adds LRW/XTS support to serpent-sse2 and twofish-x86_64-3way, and therefore depends on those series.
Patches 1-4: include LRW fixes/cleanups, export gf128mul table and add lrw_crypt(). Patches 5-7: add LRW support to serpent-sse2, with tcrypt tests and test vectors. Patches 8-10: add LRW support to twofish-x86_64-3way, with tcrypt tests and test vectors. Patches 11-12: include XTS cleanup for blocksize usage and add xts_crypt(). Patches 13-15: add XTS support to serpent-sse2, with tcrypt tests and test vectors. Patches 16-18: add XTS support to twofish-x86_64-3way, with tcrypt tests and test vectors.
---
Jussi Kivilinna (18):
crypto: lrw: fix memleak
crypto: lrw: use blocksize constant
crypto: lrw: split gf128mul table initialization from setkey
crypto: lrw: add interface for parallelized cipher implementions
crypto: testmgr: add lrw(serpent) test vectors
crypto: tcrypt: add lrw(serpent) tests
crypto: serpent-sse2: add lrw support
crypto: testmgr: add lrw(twofish) test vectors
crypto: tcrypt: add lrw(twofish) tests
crypto: twofish-x86_64-3way: add lrw support
crypto: xts: use blocksize constant
crypto: xts: add interface for parallelized cipher implementations
crypto: testmgr: add xts(serpent) test vectors
crypto: tcrypt: add xts(serpent) tests
crypto: serpent-sse2: add xts support
crypto: testmgr: add xts(twofish) test vectors
crypto: tcrypt: add xts(twofish) tests
crypto: twofish-x86_64-3way: add xts support
arch/x86/crypto/serpent_sse2_glue.c | 387 ++++++ arch/x86/crypto/twofish_glue_3way.c | 250 ++++ crypto/lrw.c | 155 ++ crypto/serpent.c | 10 crypto/tcrypt.c | 28 crypto/tcrypt.h | 2 crypto/testmgr.c | 60 + crypto/testmgr.h | 2366 +++++++++++++++++++++++++++++++++++ crypto/twofish_common.c | 13 crypto/xts.c | 78 + include/crypto/lrw.h | 43 + include/crypto/serpent.h | 2 include/crypto/twofish.h | 2 include/crypto/xts.h | 27 14 files changed, 3379 insertions(+), 44 deletions(-) create mode 100644 include/crypto/lrw.h create mode 100644 include/crypto/xts.h