]> 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)
commitc309a48fee6a77c5b9e12aa9e8609684b6163c47
tree7b0e29e68ef0c1e526eed22713d0168ea7654b1f
parenteaea7bf6bf92bfa66cb931a9f7492d37cbef30ea
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