tls: store iv directly within cipher_context
authorSabrina Dubroca <sd@queasysnail.net>
Mon, 9 Oct 2023 20:50:45 +0000 (22:50 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 Oct 2023 10:26:10 +0000 (11:26 +0100)
commit1c1cb3110d7ed2897e65d9a352a8fb709723e057
tree62d5148e58b862da82f0f027b7b2ea225d81697c
parentbee6b7b30706e7693d91cb28c8ff3cb69e094f65
tls: store iv directly within cipher_context

TLS_MAX_IV_SIZE + TLS_MAX_SALT_SIZE is 20B, we don't get much benefit
in cipher_context's size and can simplify the init code a bit.

Signed-off-by: Sabrina Dubroca <sd@queasysnail.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tls.h
net/tls/tls_device.c
net/tls/tls_main.c
net/tls/tls_sw.c