Linux cryptographic layer development
 help / color / mirror / Atom feed
* [v3 PATCH 00/11] crypto: Add partial block API and hmac to ahash
@ 2025-05-14  9:22 Herbert Xu
  2025-05-14  9:22 ` [v3 PATCH 01/11] crypto: hash - Move core export and import into internel/hash.h Herbert Xu
                   ` (11 more replies)
  0 siblings, 12 replies; 14+ messages in thread
From: Herbert Xu @ 2025-05-14  9:22 UTC (permalink / raw)
  To: Linux Crypto Mailing List

v3 adds hash export format testing and import_core/export_core
hooks for hmac.

This series adds partial block handling to ahash so that drivers
do not have to handle them.  It also adds hmac ahash support so
that drivers that do hmac purely in software can be simplified.

A new test has been added to testmgr to ensure that all implementations
of a given algorithm use the same export format.  As a transitional
measure only algorithms that declare themselves as block-only, or
provides export_core/import_core hooks will be tested.

Herbert Xu (11):
  crypto: hash - Move core export and import into internel/hash.h
  crypto: hash - Add export_core and import_core hooks
  crypto: ahash - Handle partial blocks in API
  crypto: hmac - Zero shash desc in setkey
  crypto: hmac - Add export_core and import_core
  crypto: shash - Set reqsize in shash_alg
  crypto: algapi - Add driver template support to crypto_inst_setname
  crypto: hmac - Add ahash support
  crypto: hmac - Add ahash support
  crypto: testmgr - Use ahash for generic tfm
  crypto: testmgr - Add hash export format testing

 crypto/ahash.c                 | 572 ++++++++++++++++-----------------
 crypto/algapi.c                |   8 +-
 crypto/hmac.c                  | 390 +++++++++++++++++++---
 crypto/shash.c                 |  46 ++-
 crypto/testmgr.c               | 132 ++++++--
 crypto/testmgr.h               |   2 +
 include/crypto/algapi.h        |  12 +-
 include/crypto/hash.h          |  73 ++---
 include/crypto/internal/hash.h |  66 ++++
 9 files changed, 881 insertions(+), 420 deletions(-)

-- 
2.39.5


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2025-05-15  5:51 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-14  9:22 [v3 PATCH 00/11] crypto: Add partial block API and hmac to ahash Herbert Xu
2025-05-14  9:22 ` [v3 PATCH 01/11] crypto: hash - Move core export and import into internel/hash.h Herbert Xu
2025-05-14  9:22 ` [v3 PATCH 02/11] crypto: hash - Add export_core and import_core hooks Herbert Xu
2025-05-14  9:22 ` [v3 PATCH 03/11] crypto: ahash - Handle partial blocks in API Herbert Xu
2025-05-14  9:22 ` [v3 PATCH 04/11] crypto: hmac - Zero shash desc in setkey Herbert Xu
2025-05-14  9:22 ` [v3 PATCH 05/11] crypto: hmac - Add export_core and import_core Herbert Xu
2025-05-14  9:22 ` [v3 PATCH 06/11] crypto: shash - Set reqsize in shash_alg Herbert Xu
2025-05-14  9:22 ` [v3 PATCH 07/11] crypto: algapi - Add driver template support to crypto_inst_setname Herbert Xu
2025-05-14  9:22 ` [v3 PATCH 08/11] crypto: hmac - Add ahash support Herbert Xu
2025-05-14  9:22 ` [v3 PATCH 09/11] " Herbert Xu
2025-05-14  9:22 ` [v3 PATCH 10/11] crypto: testmgr - Use ahash for generic tfm Herbert Xu
2025-05-14  9:22 ` [v3 PATCH 11/11] crypto: testmgr - Add hash export format testing Herbert Xu
2025-05-14 13:46 ` [v3 PATCH 00/11] crypto: Add partial block API and hmac to ahash Corentin Labbe
2025-05-15  5:51   ` Herbert Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox