Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torvalds/linux.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2022-07-06 02:59:23 +0300
committerDavid S. Miller <davem@davemloft.net>2022-07-06 14:56:35 +0300
commitce61327ce989b63c0bd1cc7afee00e218ee696ac (patch)
treebc988ed5ef9f3a025aa4fa69d3f4cf41e42e1fbd /include/uapi/linux/tls.h
parent603380f54f837a7837c30713de25cb146254a0d7 (diff)
tls: rx: support optimistic decrypt to user buffer with TLS 1.3
We currently don't support decrypt to user buffer with TLS 1.3 because we don't know the record type and how much padding record contains before decryption. In practice data records are by far most common and padding gets used rarely so we can assume data record, no padding, and if we find out that wasn't the case - retry the crypto in place (decrypt to skb). To safeguard from user overwriting content type and padding before we can check it attach a 1B sg entry where last byte of the record will land. Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/tls.h')
0 files changed, 0 insertions, 0 deletions