diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2022-11-25 12:36:31 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2022-12-02 18:12:40 +0800 |
commit | e634ac4a8aaab37bdc69177df9b40acf92eccc6d (patch) | |
tree | c42ffcbf1f0de2560c9a2e8de8457c49b0db0a0c /include/linux/crypto.h | |
parent | 14386d471322a204344ae81a28738b71e261d3a0 (diff) | |
download | linux-e634ac4a8aaab37bdc69177df9b40acf92eccc6d.tar.gz |
crypto: api - Add crypto_tfm_ctx_dma
This patch adds the helpers crypto_tfm_ctx_aligned and
crypto_tfm_ctx_dma. The first aligns the tfm context to the
value cra_alignmask. The second sets the alignment according
to dma_cache_get_alignment();
This patch also moves crypto_tfm_ctx into algapi.h.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/linux/crypto.h')
-rw-r--r-- | include/linux/crypto.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/include/linux/crypto.h b/include/linux/crypto.h index 2324ab6f1846..5d1e961f810e 100644 --- a/include/linux/crypto.h +++ b/include/linux/crypto.h @@ -714,11 +714,6 @@ static inline void crypto_tfm_clear_flags(struct crypto_tfm *tfm, u32 flags) tfm->crt_flags &= ~flags; } -static inline void *crypto_tfm_ctx(struct crypto_tfm *tfm) -{ - return tfm->__crt_ctx; -} - static inline unsigned int crypto_tfm_ctx_alignment(void) { struct crypto_tfm *tfm; |