Skip to content

crypto: shash - Remove dynamic descsize

Herbert Xu linux-crypto 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4crypto: padlock-sha - Make descsize an algorithm attributedrivers/crypto/padlock-sha.c+11 -30 replies
2/4crypto: zynqmp-sha - Make descsize an algorithm attributedrivers/crypto/xilinx/zynqmp-sha.c+9 -20 replies
3/4crypto: hmac - Make descsize an algorithm attributecrypto/hmac.c+1 -30 replies
4/4crypto: shash - Remove dynamic descsizecrypto/shash.c include/crypto/hash.h+2 -190 replies

Reviews trailers per patch

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

Read the v1 thread

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

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(-)
Signature · 1 line
2.39.5