diff options
author | Andrew Davis <afd@ti.com> | 2022-07-06 14:11:43 -0500 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2022-07-15 16:43:22 +0800 |
commit | a65c9a2a0b43118ee6f00eeeb73aefdcbd89728f (patch) | |
tree | ee1a78ba4de3779e85138aac5d192fafb29bdf1c /drivers/crypto | |
parent | 6c14a9650b8729882995f5fcd6c62336b40aeb26 (diff) | |
download | linux-stable-a65c9a2a0b43118ee6f00eeeb73aefdcbd89728f.tar.gz linux-stable-a65c9a2a0b43118ee6f00eeeb73aefdcbd89728f.tar.bz2 linux-stable-a65c9a2a0b43118ee6f00eeeb73aefdcbd89728f.zip |
crypto: sa2ul - Set the supported_algos bits individually
Setting these individually gives a better picture of supported
functions at a glance. Plus if the list changes an unwanted
one will not accidentally get set with GENMASK.
Signed-off-by: Andrew Davis <afd@ti.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto')
-rw-r--r-- | drivers/crypto/sa2ul.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/crypto/sa2ul.c b/drivers/crypto/sa2ul.c index 6957a125b447..1d732113b81e 100644 --- a/drivers/crypto/sa2ul.c +++ b/drivers/crypto/sa2ul.c @@ -2361,7 +2361,15 @@ static int sa_link_child(struct device *dev, void *data) static struct sa_match_data am654_match_data = { .priv = 1, .priv_id = 1, - .supported_algos = GENMASK(SA_ALG_AUTHENC_SHA256_AES, 0), + .supported_algos = BIT(SA_ALG_CBC_AES) | + BIT(SA_ALG_EBC_AES) | + BIT(SA_ALG_CBC_DES3) | + BIT(SA_ALG_ECB_DES3) | + BIT(SA_ALG_SHA1) | + BIT(SA_ALG_SHA256) | + BIT(SA_ALG_SHA512) | + BIT(SA_ALG_AUTHENC_SHA1_AES) | + BIT(SA_ALG_AUTHENC_SHA256_AES), }; static struct sa_match_data am64_match_data = { |