diff options
| author | Devulapally Shiva Krishna <[email protected]> | 2020-05-05 08:42:53 +0530 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2020-05-06 17:44:11 -0700 |
| commit | d91a3159e8d9a1bf58c2aaad1ef10a09bc91350c (patch) | |
| tree | 0347a03d3b041a845f7042dadb995f10fc19ed96 /tools/perf/scripts/python/bin | |
| parent | 33395f4a5c1b68a4eaa49af62ff3bbed71d98598 (diff) | |
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 <[email protected]>
Signed-off-by: Devulapally Shiva Krishna <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions