mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 09:36:22 +02:00
crypto: hisilicon/sec2 - lower priority for hisilicon crypto implementations
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>
This commit is contained in:
parent
6c9dddeb58
commit
7452b3a025
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user