Skip to content

crypto: Add support for shake128/256 XOFs

Stefan Berger linux-crypto lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 1 replyIn review
  2. v1 RFC4 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- Refactored crypto_shake_squeeze_bytes to be called for arbitrary number of bytes to return
- Adjusted XOF test case parameters to better test modfied squeeze function

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4crypto: Add squeeze function to shash_alg for support of XOFscrypto/shash.c include/crypto/hash.h+28 -00 replies
2/4crypto: Add shake128/256 to generic sha3 modulecrypto/hash_info.c crypto/sha3_generic.c include/crypto/algapi.h +3 more+268 -60 replies
3/4crypto: Add tests cases for shake128 & shake256 to testmgrcrypto/testmgr.c crypto/testmgr.h+324 -00 replies
4/4crypto: Extend testmgr with tests for shake128/256 XOFscrypto/testmgr.c crypto/testmgr.h+268 -00 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/4] crypto: Add support for shake128/256 XOFs

This series adds support for shake128/256 extended output functions (XOFs) along with test cases to verify the produced digest and XOF output. A new squeeze method is added to the shash_alg structure to get an arbitrary number of bytes from these XOFs.

Regards,
Stefan

v2:
- Refactored crypto_shake_squeeze_bytes to be called for arbitrary number of bytes to return
- Adjusted XOF test case parameters to better test modfied squeeze function

Stefan Berger (4):
crypto: Add squeeze function to shash_alg for support of XOFs
crypto: Add shake128/256 to generic sha3 module
crypto: Add tests cases for shake128 & shake256 to testmgr
crypto: Extend testmgr with tests for shake128/256 XOFs

 crypto/hash_info.c             |   4 +
 crypto/sha3_generic.c          | 238 +++++++++++++++
 crypto/shash.c                 |   9 +
 crypto/testmgr.c               |  70 +++++
 crypto/testmgr.h               | 522 +++++++++++++++++++++++++++++++++
 include/crypto/algapi.h        |   2 +-
 include/crypto/hash.h          |  28 +-
 include/crypto/sha3.h          |  19 ++
 include/uapi/linux/hash_info.h |   2 +
 9 files changed, 888 insertions(+), 6 deletions(-)

base-commit: a71d3e1beb7a9637eb75929b995f01d20981f013

Signature · 1 line
2.49.0