Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153481012
D22801.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
826 B
Referenced Files
None
Subscribers
None
D22801.id.diff
View Options
Index: head/sys/sys/ktls.h
===================================================================
--- head/sys/sys/ktls.h
+++ head/sys/sys/ktls.h
@@ -50,7 +50,7 @@
#define TLS_RLTYPE_APP 23
/*
- * Nonce for GCM.
+ * Nonce for GCM for TLS 1.2 per RFC 5288.
*/
struct tls_nonce_data {
uint8_t fixed[TLS_AEAD_GCM_LEN];
@@ -58,7 +58,7 @@
} __packed;
/*
- * AEAD additional data format per RFC.
+ * AEAD additional data format for TLS 1.2 per RFC 5246.
*/
struct tls_aead_data {
uint64_t seq; /* In network order */
@@ -66,6 +66,16 @@
uint8_t tls_vmajor;
uint8_t tls_vminor;
uint16_t tls_length;
+} __packed;
+
+/*
+ * AEAD additional data format for TLS 1.3 per RFC 8446.
+ */
+struct tls_aead_data_13 {
+ uint8_t type;
+ uint8_t tls_vmajor;
+ uint8_t tls_vminor;
+ uint16_t tls_length;
} __packed;
/*
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 22, 9:59 AM (35 m, 49 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31936274
Default Alt Text
D22801.id.diff (826 B)
Attached To
Mode
D22801: Add a structure for the AAD used in TLS 1.3.
Attached
Detach File
Event Timeline
Log In to Comment