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>
This commit is contained in:
parent
863533e316
commit
a8340cc02b
2 changed files with 3 additions and 2 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue