crypto: api - Add crypto_tfm_ctx_dma
authorHerbert Xu <herbert@gondor.apana.org.au>
Fri, 25 Nov 2022 04:36:31 +0000 (12:36 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 2 Dec 2022 10:12:40 +0000 (18:12 +0800)
commite634ac4a8aaab37bdc69177df9b40acf92eccc6d
treec42ffcbf1f0de2560c9a2e8de8457c49b0db0a0c
parent14386d471322a204344ae81a28738b71e261d3a0
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>
include/crypto/algapi.h
include/linux/crypto.h