diff options
author | Vakul Garg <vakul.garg@nxp.com> | 2018-09-26 12:52:08 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-09-29 20:41:28 +0200 |
commit | 80ece6a03aaf3f3215475826bdd2bb9f326bccfd (patch) | |
tree | ce32bc34ac083fcfa9a64ad3db0e497b34319467 /COPYING | |
parent | Merge branch 'tipc-next' (diff) | |
download | linux-80ece6a03aaf3f3215475826bdd2bb9f326bccfd.tar.xz linux-80ece6a03aaf3f3215475826bdd2bb9f326bccfd.zip |
tls: Remove redundant vars from tls record structure
Structure 'tls_rec' contains sg_aead_in and sg_aead_out which point
to a aad_space and then chain scatterlists sg_plaintext_data,
sg_encrypted_data respectively. Rather than using chained scatterlists
for plaintext and encrypted data in aead_req, it is efficient to store
aad_space in sg_encrypted_data and sg_plaintext_data itself in the
first index and get rid of sg_aead_in, sg_aead_in and further chaining.
This requires increasing size of sg_encrypted_data & sg_plaintext_data
arrarys by 1 to accommodate entry for aad_space. The code which uses
sg_encrypted_data and sg_plaintext_data has been modified to skip first
index as it points to aad_space.
Signed-off-by: Vakul Garg <vakul.garg@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions