]> git.baikalelectronics.ru Git - kernel.git/commit
tls: rx: always allocate max possible aad size for decrypt
authorJakub Kicinski <kuba@kernel.org>
Fri, 8 Jul 2022 01:03:10 +0000 (18:03 -0700)
committerJakub Kicinski <kuba@kernel.org>
Sat, 9 Jul 2022 01:38:45 +0000 (18:38 -0700)
commit9ae14594fc3f125e2b53337aaf9123dd6d1c8fe6
treed841f8e239698390fa70d105fb739ba1735157a4
parentfdfb30ac5b248600c3930d91b7f0a3f225a83862
tls: rx: always allocate max possible aad size for decrypt

AAD size is either 5 or 13. Really no point complicating
the code for the 8B of difference. This will also let us
turn the chunked up buffer into a sane struct.

Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/tls.h
net/tls/tls_sw.c