]> git.baikalelectronics.ru Git - kernel.git/commit
tls: Split decrypt_skb to two functions
authorBoris Pismenny <borisp@mellanox.com>
Fri, 13 Jul 2018 11:33:40 +0000 (14:33 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Jul 2018 07:13:10 +0000 (00:13 -0700)
commit49b32e2c99ad7ba5664b24cca11c05bdcbe5f2bd
tree38d8b887cf55df7ffc5887c80c4994fdfaa53e8b
parent2981eea71a36baf0875407499d96e964b76c9673
tls: Split decrypt_skb to two functions

Previously, decrypt_skb also updated the TLS context.
Now, decrypt_skb only decrypts the payload using the current context,
while decrypt_skb_update also updates the state.

Later, in the tls_device Rx flow, we will use decrypt_skb directly.

Signed-off-by: Boris Pismenny <borisp@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tls.h
net/tls/tls_sw.c