]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
crypto: hisilicon/sec2 - lower priority for hisilicon crypto implementations
authorlizhi <lizhi206@huawei.com>
Mon, 11 May 2026 00:49:27 +0000 (08:49 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 May 2026 12:25:28 +0000 (20:25 +0800)
Lower the priority of HiSilicon's crypto implementations to allow more
suitable alternatives to be selected. For example, certain kernel
use-cases do not benefit from HiSilicon's symmetric crypto algorithms.
This change ensures that more appropriate options are chosen first while
retaining HiSilicon's implementations as alternatives.

Signed-off-by: lizhi <lizhi206@huawei.com>
Signed-off-by: Chenghai Huang <huangchenghai2@huawei.com>
Reviewed-by: Longfang Liu <liulongfang@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/hisilicon/sec2/sec_crypto.c

index 2471a4dd0b508a46b3fa70b4b81ee451cdef69e5..77e0e03cbcab985a654fc4b53b83d8f41efb5d79 100644 (file)
@@ -20,7 +20,7 @@
 #include "sec.h"
 #include "sec_crypto.h"
 
-#define SEC_PRIORITY           4001
+#define SEC_PRIORITY           80
 #define SEC_XTS_MIN_KEY_SIZE   (2 * AES_MIN_KEY_SIZE)
 #define SEC_XTS_MID_KEY_SIZE   (3 * AES_MIN_KEY_SIZE)
 #define SEC_XTS_MAX_KEY_SIZE   (2 * AES_MAX_KEY_SIZE)