Skip to content

Add DTLS 1.3 Unified Header#793

Draft
theodorsm wants to merge 3 commits intomasterfrom
theodorsm/record_layer_13
Draft

Add DTLS 1.3 Unified Header#793
theodorsm wants to merge 3 commits intomasterfrom
theodorsm/record_layer_13

Conversation

@theodorsm
Copy link
Copy Markdown
Member

Description

This PR implements the new DTLS 1.3 Unified Header that is part of the new record layer encoding.

https://datatracker.ietf.org/doc/html/rfc9147#name-the-dtls-record-layer:

    0 1 2 3 4 5 6 7
    +-+-+-+-+-+-+-+-+
    |0|0|1|C|S|L|E E|
    +-+-+-+-+-+-+-+-+
    | Connection ID |   Legend:
    | (if any,      |
    /  length as    /   C   - Connection ID (CID) present
    |  negotiated)  |   S   - Sequence number length
    +-+-+-+-+-+-+-+-+   L   - Length present
    |  8 or 16 bit  |   E   - Epoch
    |Sequence Number|
    +-+-+-+-+-+-+-+-+
    | 16 bit Length |
    | (if present)  |
    +-+-+-+-+-+-+-+-+

Reference issue

Partly fixes #755

@codecov
Copy link
Copy Markdown

codecov bot commented Feb 5, 2026

Codecov Report

❌ Patch coverage is 75.43860% with 14 lines in your changes missing coverage. Please review.
✅ Project coverage is 82.47%. Comparing base (956d41d) to head (291de58).

Files with missing lines Patch % Lines
pkg/protocol/recordlayer/header_13.go 74.54% 7 Missing and 7 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #793      +/-   ##
==========================================
- Coverage   82.53%   82.47%   -0.06%     
==========================================
  Files         120      122       +2     
  Lines        6802     6859      +57     
==========================================
+ Hits         5614     5657      +43     
- Misses        778      785       +7     
- Partials      410      417       +7     
Flag Coverage Δ
go 82.47% <75.43%> (-0.06%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DTLS 1.3 record layer encoding

1 participant