mbox series

[0/4] crypto: shash - Remove dynamic descsize

Message ID cover.1744454589.git.herbert@gondor.apana.org.au
Headers show
Series crypto: shash - Remove dynamic descsize | expand

Message

Herbert Xu April 12, 2025, 10:47 a.m. UTC
Dynamic desc sizes were created for fallbacks.  However, it's
actually never needed in practice since the only shash fallbacks
that can be used all have the same descsize.

Once the fallback cases go away, its use in hmac becomes gratuitous
as the spawn descsize is constant.

Remove the two fallback users and then fix hmac to use the spawn
descsize.  This allows the dynamic descsize to be removed.

Herbert Xu (4):
  crypto: padlock-sha - Make descsize an algorithm attribute
  crypto: zynqmp-sha - Make descsize an algorithm attribute
  crypto: hmac - Make descsize an algorithm attribute
  crypto: shash - Remove dynamic descsize

 crypto/hmac.c                      |  4 +---
 crypto/shash.c                     | 18 +-----------------
 drivers/crypto/padlock-sha.c       | 14 +++++++++++---
 drivers/crypto/xilinx/zynqmp-sha.c | 11 +++++++++--
 include/crypto/hash.h              |  3 +--
 5 files changed, 23 insertions(+), 27 deletions(-)