diff options
| author | Herbert Xu <herbert@gondor.apana.org.au> | 2025-04-12 13:47:47 +0300 |
|---|---|---|
| committer | Herbert Xu <herbert@gondor.apana.org.au> | 2025-04-16 10:36:24 +0300 |
| commit | 90916934fd093edf62bc0c5c9a940a8efa7db2f8 (patch) | |
| tree | 6d8e5ed01337fc3e9d33375ec4e9fe6e52d0081f /include | |
| parent | aeffd9093820c16e10f61d1c894c16d435b82975 (diff) | |
| download | linux-90916934fd093edf62bc0c5c9a940a8efa7db2f8.tar.xz | |
crypto: shash - Remove dynamic descsize
As all users of the dynamic descsize have been converted to use
a static one instead, remove support for dynamic descsize.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include')
| -rw-r--r-- | include/crypto/hash.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/crypto/hash.h b/include/crypto/hash.h index eceb2ed04f26..87518cf3b2d8 100644 --- a/include/crypto/hash.h +++ b/include/crypto/hash.h @@ -235,7 +235,6 @@ struct crypto_ahash { }; struct crypto_shash { - unsigned int descsize; struct crypto_tfm base; }; @@ -810,7 +809,7 @@ static inline void crypto_shash_clear_flags(struct crypto_shash *tfm, u32 flags) */ static inline unsigned int crypto_shash_descsize(struct crypto_shash *tfm) { - return tfm->descsize; + return crypto_shash_alg(tfm)->descsize; } static inline void *shash_desc_ctx(struct shash_desc *desc) |
