Crypto/chtls: add/delete TLS header in driver
authorRohit Maheshwari <rohitm@chelsio.com>
Thu, 19 Mar 2020 04:41:21 +0000 (10:11 +0530)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 Mar 2020 20:04:48 +0000 (13:04 -0700)
commit6919a8264a3248dc0d7f945bb42f2c380f76b01e
tree5cc3dc9a0c9bcb7e20df57a439e9da3c8f9e4c00
parent1454c9fa91065847d77f619330c3f4cfb5328cd3
Crypto/chtls: add/delete TLS header in driver

Kernel TLS forms TLS header in kernel during encryption and removes
while decryption before giving packet back to user application. The
similar logic is introduced in chtls code as well.

v1->v2:
- tls_proccess_cmsg() uses tls_handle_open_record() which is not required
  in TOE-TLS. Don't mix TOE with other TLS types.

Signed-off-by: Vinay Kumar Yadav <vinay.yadav@chelsio.com>
Signed-off-by: Rohit Maheshwari <rohitm@chelsio.com>
Acked-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/crypto/chelsio/chtls/chtls_io.c