diff options
author | Jakub Kicinski <kuba@kernel.org> | 2022-04-08 05:38:19 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-04-08 12:49:08 +0200 |
commit | a8340cc02beed4ffbb5e7b1b0eadca445323fc6a (patch) | |
tree | 904d42752ec1f00e35de34706caa54058b8ff6f2 /include/net/tls.h | |
parent | tls: rx: init decrypted status in tls_read_size() (diff) | |
download | linux-a8340cc02beed4ffbb5e7b1b0eadca445323fc6a.tar.xz linux-a8340cc02beed4ffbb5e7b1b0eadca445323fc6a.zip |
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.h | 1 |
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. |