Skip to content

dtls13: reject malformed KeyUpdate bodies#131

Merged
algesten merged 2 commits into
algesten:mainfrom
zRedShift:fix/dtls13-keyupdate-body-length
May 27, 2026
Merged

dtls13: reject malformed KeyUpdate bodies#131
algesten merged 2 commits into
algesten:mainfrom
zRedShift:fix/dtls13-keyupdate-body-length

Conversation

@zRedShift
Copy link
Copy Markdown
Contributor

Summary

  • Reject DTLS 1.3 KeyUpdate bodies with trailing bytes after the request byte.
  • Keep valid one-byte KeyUpdate bodies unchanged.
  • Add a defragmentation regression for malformed KeyUpdate bodies.

Validation

  • cargo fmt --check
  • git diff --check
  • cargo test --all-targets --features rcgen
  • cargo clippy --all-targets --features rcgen -- -D warnings
  • cargo test --no-default-features --features rust-crypto
  • cargo clippy --no-default-features --features rust-crypto -- -D warnings
  • cargo test --doc --features rcgen

@algesten algesten merged commit 66f0b02 into algesten:main May 27, 2026
45 checks passed
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.

2 participants