mbox series

[v2,0/6] crypto: Add partial block API and hmac to ahash

Message ID cover.1746954402.git.herbert@gondor.apana.org.au
Headers show
Series crypto: Add partial block API and hmac to ahash | expand

Message

Herbert Xu May 11, 2025, 9:09 a.m. UTC
v2 fixes a typo in the virt address fallback handling in ahash.

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.

Herbert Xu (6):
  crypto: hash - Move core export and import into internel/hash.h
  crypto: ahash - Handle partial blocks in API
  crypto: hmac - Zero shash desc in setkey
  crypto: shash - Set reqsize in shash_alg
  crypto: algapi - Add driver template support to crypto_inst_setname
  crypto: hmac - Add ahash support

 crypto/ahash.c                 | 554 ++++++++++++++++-----------------
 crypto/algapi.c                |   8 +-
 crypto/hmac.c                  | 353 ++++++++++++++++++---
 crypto/shash.c                 |   2 +
 include/crypto/algapi.h        |  12 +-
 include/crypto/hash.h          |  63 +---
 include/crypto/internal/hash.h |  57 ++++
 7 files changed, 666 insertions(+), 383 deletions(-)