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)
commit4509de14680084141d3514c3b87bd9d070fc366d
tree7b0e29e68ef0c1e526eed22713d0168ea7654b1f
parentc9b747dbc2036c917b1067fbb78dc38b105c4454
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