[PATCH] drivers: crypto: caam: Add CRYPTO_ALG_NO_FALLBACK

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

 



From: Meenakshi Aggarwal <nxa07556@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>

Add CRYPTO_ALG_NO_FALLBACK cra_flag for hash algorithms.

Fixes: 4ccd065a69df ("crypto: ahash - Add support for drivers with no fallback")

Signed-off-by: Meenakshi Aggarwal <nxa07556@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
---
 drivers/crypto/caam/caamhash.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/crypto/caam/caamhash.c b/drivers/crypto/caam/caamhash.c
index 25c02e267258..90aecefdce01 100644
--- a/drivers/crypto/caam/caamhash.c
+++ b/drivers/crypto/caam/caamhash.c
@@ -1933,7 +1933,8 @@ caam_hash_alloc(struct caam_hash_template *template,
 	alg->cra_priority = CAAM_CRA_PRIORITY;
 	alg->cra_blocksize = template->blocksize;
 	alg->cra_alignmask = 0;
-	alg->cra_flags = CRYPTO_ALG_ASYNC | CRYPTO_ALG_ALLOCATES_MEMORY;
+	alg->cra_flags = CRYPTO_ALG_ASYNC | CRYPTO_ALG_ALLOCATES_MEMORY |
+			 CRYPTO_ALG_NO_FALLBACK;
 
 	t_alg->alg_type = template->alg_type;
 	t_alg->ahash_alg.op.do_one_request = ahash_do_one_req;
-- 
2.34.1





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