aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.clang-format
diff options
context:
space:
mode:
authorDevulapally Shiva Krishna <shiva@chelsio.com>2020-05-05 08:42:53 +0530
committerDavid S. Miller <davem@davemloft.net>2020-05-06 17:44:11 -0700
commitd91a3159e8d9a1bf58c2aaad1ef10a09bc91350c (patch)
tree0347a03d3b041a845f7042dadb995f10fc19ed96 /.clang-format
parentMerge branch 'net-ipa-kill-endpoint-stop-workaround' (diff)
downloadwireguard-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 '.clang-format')
0 files changed, 0 insertions, 0 deletions