crypto: caam/qi2 - lower the algorithm priority

Lower the priority to 100, as done for QAT in commit
  8024774190 ("crypto: qat - lower priority for skcipher and aead algorithms").

The SEC stays reachable by driver name, and user space can raise its
priority through the crypto_user interface.

Suggested-by: Herbert Xu <herbert@gondor.apana.org.au>
Link: https://lore.kernel.org/r/aruvJECCDNdguMdw@gondor.apana.org.au
Signed-off-by: Vincent Jardin <vjardin@free.fr>
Reviewed-by: Sahil Malhotra <sahil.malhotra@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
Vincent Jardin 2026-09-29 22:29:04 +02:00 committed by Herbert Xu
parent 2b91570f72
commit 611b15d344

View File

@ -26,7 +26,7 @@
#include <crypto/xts.h>
#include <linux/unaligned.h>
#define CAAM_CRA_PRIORITY 2000
#define CAAM_CRA_PRIORITY 100
/* max key is sum of AES_MAX_KEY_SIZE, max split key size */
#define CAAM_MAX_KEY_SIZE (AES_MAX_KEY_SIZE + CTR_RFC3686_NONCE_SIZE + \