History

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.

Jakub Kicinski committed 4 years ago

Commit a8340cc1 parent 863533e2 files · +3 −2Browse files

Showing the changes to include (1 of 2 files). Show all

Unified · Split

include/net/tls.h+1−0
@@ -64,6 +64,7 @@ · 63 unmodified lines
64#define TLS_AAD_SPACE_SIZE 1364#define TLS_AAD_SPACE_SIZE 13
65 65
66#define MAX_IV_SIZE 1666#define MAX_IV_SIZE 16
67#define TLS_TAG_SIZE 16
67#define TLS_MAX_REC_SEQ_SIZE 868#define TLS_MAX_REC_SEQ_SIZE 8
68 69
69/* For CCM mode, the full 16-bytes of IV is made of '4' fields of given sizes.70/* For CCM mode, the full 16-bytes of IV is made of '4' fields of given sizes.