]> git.baikalelectronics.ru Git - kernel.git/commit
net/tls: Move protocol constants from cipher context to tls context
authorVakul Garg <vakul.garg@nxp.com>
Thu, 14 Feb 2019 07:11:35 +0000 (07:11 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Feb 2019 18:40:36 +0000 (10:40 -0800)
commitc692ee286771e6374fd52a87072a5bf02cab127f
tree7b0e29e68ef0c1e526eed22713d0168ea7654b1f
parentff4f2e61fa24857371de6fbefeb7c90ebf5146b3
net/tls: Move protocol constants from cipher context to tls context

Each tls context maintains two cipher contexts (one each for tx and rx
directions). For each tls session, the constants such as protocol
version, ciphersuite, iv size, associated data size etc are same for
both the directions and need to be stored only once per tls context.
Hence these are moved from 'struct cipher_context' to 'struct
tls_prot_info' and stored only once in 'struct tls_context'.

Signed-off-by: Vakul Garg <vakul.garg@nxp.com>
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