mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 14:11:52 +00:00
crypto: shash - remove crypto_shash_ctx_aligned()
crypto_shash_ctx_aligned() is no longer used, and it is useless now that shash algorithms don't support nonzero alignmasks, so remove it. Also remove crypto_tfm_ctx_aligned() which was only called by crypto_shash_ctx_aligned(). It's unlikely to be useful again, since it seems inappropriate to use cra_alignmask to represent alignment for the tfm context when it already means alignment for inputs/outputs. Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
201c0da4d0
commit
acd7799574
@ -195,11 +195,6 @@ static inline void *crypto_tfm_ctx_align(struct crypto_tfm *tfm,
|
|||||||
return PTR_ALIGN(crypto_tfm_ctx(tfm), align);
|
return PTR_ALIGN(crypto_tfm_ctx(tfm), align);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void *crypto_tfm_ctx_aligned(struct crypto_tfm *tfm)
|
|
||||||
{
|
|
||||||
return crypto_tfm_ctx_align(tfm, crypto_tfm_alg_alignmask(tfm) + 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline unsigned int crypto_dma_align(void)
|
static inline unsigned int crypto_dma_align(void)
|
||||||
{
|
{
|
||||||
return CRYPTO_DMA_ALIGN;
|
return CRYPTO_DMA_ALIGN;
|
||||||
|
@ -269,11 +269,6 @@ static inline struct crypto_shash *crypto_spawn_shash(
|
|||||||
return crypto_spawn_tfm2(&spawn->base);
|
return crypto_spawn_tfm2(&spawn->base);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void *crypto_shash_ctx_aligned(struct crypto_shash *tfm)
|
|
||||||
{
|
|
||||||
return crypto_tfm_ctx_aligned(&tfm->base);
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline struct crypto_shash *__crypto_shash_cast(struct crypto_tfm *tfm)
|
static inline struct crypto_shash *__crypto_shash_cast(struct crypto_tfm *tfm)
|
||||||
{
|
{
|
||||||
return container_of(tfm, struct crypto_shash, base);
|
return container_of(tfm, struct crypto_shash, base);
|
||||||
|
Loading…
Reference in New Issue
Block a user