[PATCH 2/2] crypto: s390/phmac - Allow stack requests

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



As phmac does not perform DMA, it can support stack requests.

Signed-off-by: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
---
 arch/s390/crypto/phmac_s390.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/s390/crypto/phmac_s390.c b/arch/s390/crypto/phmac_s390.c
index 7ecfdc4fba2d..ead4c0d3523e 100644
--- a/arch/s390/crypto/phmac_s390.c
+++ b/arch/s390/crypto/phmac_s390.c
@@ -932,6 +932,7 @@ static int phmac_do_one_request(struct crypto_engine *engine, void *areq)
 				.cra_blocksize = SHA##x##_BLOCK_SIZE,	\
 				.cra_priority = 400,			\
 				.cra_flags = CRYPTO_ALG_ASYNC |		\
+					     CRYPTO_AHASH_ALG_STACK_REQ |\
 					     CRYPTO_ALG_NO_FALLBACK,	\
 				.cra_ctxsize = sizeof(struct phmac_tfm_ctx), \
 				.cra_module = THIS_MODULE,		\
-- 
2.39.5





[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]
  Powered by Linux