diff options
author | Devulapally Shiva Krishna <shiva@chelsio.com> | 2020-05-05 08:42:53 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-05-06 17:44:11 -0700 |
commit | d91a3159e8d9a1bf58c2aaad1ef10a09bc91350c (patch) | |
tree | 0347a03d3b041a845f7042dadb995f10fc19ed96 /drivers/Kconfig | |
parent | Merge branch 'net-ipa-kill-endpoint-stop-workaround' (diff) | |
download | wireguard-linux-d91a3159e8d9a1bf58c2aaad1ef10a09bc91350c.tar.xz wireguard-linux-d91a3159e8d9a1bf58c2aaad1ef10a09bc91350c.zip |
Crypto/chcr: fix gcm-aes and rfc4106-gcm failed tests
This patch fixes two issues observed during self tests with
CONFIG_CRYPTO_MANAGER_EXTRA_TESTS enabled.
1. gcm(aes) hang issue , that happens during decryption.
2. rfc4106-gcm-aes-chcr encryption unexpectedly succeeded.
For gcm-aes decryption , authtag is not mapped due to
sg_nents_for_len(upto size: assoclen+ cryptlen - authsize).
So fix it by dma_mapping authtag.
Also replaced sg_nents() to sg_nents_for_len() in case of aead_dma_unmap().
For rfc4106-gcm-aes-chcr, used crypto_ipsec_check_assoclen() for checking
the validity of assoclen.
Signed-off-by: Ayush Sawal <ayush.sawal@chelsio.com>
Signed-off-by: Devulapally Shiva Krishna <shiva@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/Kconfig')
0 files changed, 0 insertions, 0 deletions