summaryrefslogtreecommitdiffstats
path: root/include/net/tls.h
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2022-04-07 20:38:19 -0700
committerDavid S. Miller <davem@davemloft.net>2022-04-08 11:49:08 +0100
commita8340cc02beed4ffbb5e7b1b0eadca445323fc6a (patch)
tree904d42752ec1f00e35de34706caa54058b8ff6f2 /include/net/tls.h
parent863533e316b235d40c07e49cd39bbd6dcb9f5a1d (diff)
downloadlinux-a8340cc02beed4ffbb5e7b1b0eadca445323fc6a.tar.bz2
tls: rx: use a define for tag length
TLS 1.3 has to strip padding, and it starts out 16 bytes from the end of the record. Make it clear this is because of the auth tag. Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/tls.h')
-rw-r--r--include/net/tls.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/tls.h b/include/net/tls.h
index f040edc97c50..a01c264e5f15 100644
--- a/include/net/tls.h
+++ b/include/net/tls.h
@@ -64,6 +64,7 @@
#define TLS_AAD_SPACE_SIZE 13
#define MAX_IV_SIZE 16
+#define TLS_TAG_SIZE 16
#define TLS_MAX_REC_SEQ_SIZE 8
/* For CCM mode, the full 16-bytes of IV is made of '4' fields of given sizes.