]> 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)
commitb5be830b18da066b1bf4ff443bd033e68f65b35c
treed841f8e239698390fa70d105fb739ba1735157a4
parent7c0c228b435ffdb14412cc2fb94cccc2b405f2c6
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