linux/drivers/crypto/chelsio
Devulapally Shiva Krishna d91a3159e8 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>
2020-05-06 17:44:11 -07:00
..
chtls Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 2020-04-01 14:47:40 -07:00
chcr_algo.c Crypto/chcr: fix gcm-aes and rfc4106-gcm failed tests 2020-05-06 17:44:11 -07:00
chcr_algo.h crypto: chelsio - switch to skcipher API 2019-11-17 09:02:47 +08:00
chcr_common.h chcr: Handle first or middle part of record 2020-03-08 21:16:23 -07:00
chcr_core.c Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 2020-04-01 14:47:40 -07:00
chcr_core.h Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 2020-04-01 14:47:40 -07:00
chcr_crypto.h crypto: chelsio - Use multiple txq/rxq per tfm to process the requests 2020-03-06 12:28:20 +11:00
chcr_ipsec.c Revert "crypto: chelsio - Inline single pdu only" 2020-05-06 14:51:59 -07:00
chcr_ktls.c chcr: Fix CPU hard lockup 2020-04-23 15:51:37 -07:00
chcr_ktls.h cxgb4/chcr: Add ipv6 support and statistics 2020-03-08 21:16:23 -07:00
Kconfig cxgb4/chcr : Register to tls add and del callback 2020-03-08 21:16:23 -07:00
Makefile cxgb4/chcr : Register to tls add and del callback 2020-03-08 21:16:23 -07:00