diff options
author | Kai Ye <yekai13@huawei.com> | 2022-07-21 10:18:31 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2022-07-29 18:29:17 +0800 |
commit | 45f5d0176d8426cc1ab0bab84fbd8ef5c57526c6 (patch) | |
tree | 114257d1110020d3be76c129257be7996e164b9a /drivers/crypto/hisilicon/sec2/sec_crypto.h | |
parent | crypto: ccree - Remove a useless dma_supported() call (diff) | |
download | linux-dev-45f5d0176d8426cc1ab0bab84fbd8ef5c57526c6.tar.xz linux-dev-45f5d0176d8426cc1ab0bab84fbd8ef5c57526c6.zip |
crypto: hisilicon/sec - fix auth key size error
The authentication algorithm supports a maximum of 128-byte keys.
The allocated key memory is insufficient.
Fixes: 2f072d75d1ab ("crypto: hisilicon - Add aead support on SEC2")
Signed-off-by: Kai Ye <yekai13@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
-rw-r--r-- | drivers/crypto/hisilicon/sec2/sec_crypto.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/crypto/hisilicon/sec2/sec_crypto.h b/drivers/crypto/hisilicon/sec2/sec_crypto.h index 5e039b50e9d4..d033f63b583f 100644 --- a/drivers/crypto/hisilicon/sec2/sec_crypto.h +++ b/drivers/crypto/hisilicon/sec2/sec_crypto.h @@ -7,6 +7,7 @@ #define SEC_AIV_SIZE 12 #define SEC_IV_SIZE 24 #define SEC_MAX_KEY_SIZE 64 +#define SEC_MAX_AKEY_SIZE 128 #define SEC_COMM_SCENE 0 #define SEC_MIN_BLOCK_SZ 1 |