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/net (1 of 2 files). Show all

Unified · Split

include/net/tls.h+1−0
@@ -64,6 +64,7 @@ · 63 unmodified lines
6464 #define TLS_AAD_SPACE_SIZE 13
6565
6666 #define MAX_IV_SIZE 16
67+#define TLS_TAG_SIZE 16
6768 #define TLS_MAX_REC_SEQ_SIZE 8
6869
6970 /* For CCM mode, the full 16-bytes of IV is made of '4' fields of given sizes.

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t