RE: [PATCH net-next] net/tls: Move protocol constants from cipher context to tls context

2019-02-19 Thread Vakul Garg
> -Original Message- > From: David Miller > Sent: Sunday, February 17, 2019 7:45 AM > To: Vakul Garg > Cc: netdev@vger.kernel.org; bor...@mellanox.com; > avia...@mellanox.com; davejwat...@fb.com; doro...@fb.com > Subject: Re: [PATCH net-next] net/tls: Move pr

Re: [PATCH net-next] net/tls: Move protocol constants from cipher context to tls context

2019-02-16 Thread David Miller
From: Vakul Garg Date: Thu, 14 Feb 2019 07:11:35 + > 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

[PATCH net-next] net/tls: Move protocol constants from cipher context to tls context

2019-02-13 Thread Vakul Garg
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 fr