Skip to content

Commit

Permalink
crypto: ahash - remove crypto_ahash_alignmask
Browse files Browse the repository at this point in the history
crypto_ahash_alignmask() no longer has any callers, and it always
returns 0 now that neither ahash nor shash algorithms support nonzero
alignmasks anymore.  Therefore, remove it.

Signed-off-by: Eric Biggers <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
ebiggers authored and herbertx committed Oct 27, 2023
1 parent 33fe2fb commit 0f8660c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions include/crypto/hash.h
Original file line number Diff line number Diff line change
Expand Up @@ -342,12 +342,6 @@ static inline const char *crypto_ahash_driver_name(struct crypto_ahash *tfm)
return crypto_tfm_alg_driver_name(crypto_ahash_tfm(tfm));
}

static inline unsigned int crypto_ahash_alignmask(
struct crypto_ahash *tfm)
{
return crypto_tfm_alg_alignmask(crypto_ahash_tfm(tfm));
}

/**
* crypto_ahash_blocksize() - obtain block size for cipher
* @tfm: cipher handle
Expand Down

0 comments on commit 0f8660c

Please sign in to comment.