Skip to content

fix: bind secure session ivs to context - #20

Merged
kakahuote1 merged 1 commit into
kakahuote1:mainfrom
gby04:work
May 26, 2026
Merged

kakahuote1 merged 1 commit into
kakahuote1:mainfrom
gby04:work

Conversation

@gby04

@gby04 gby04 commented May 26, 2026

Copy link
Copy Markdown
Collaborator

What changed

  • Derive a fixed session context from the canonical ephemeral public key pair and handshake transcript after secure session establishment.
  • Bind AEAD IV derivation to the session context in addition to key, mode, role, and packet sequence.
  • Require non-null, full-length, non-zero session context when initializing secure sessions.
  • Add regression tests for context mismatch rejection and parameter defense.

Verification

  • powershell -ExecutionPolicy Bypass -File tools\check_format.ps1
  • cmake --build build-gby -j 1
  • ctest --test-dir build-gby --output-on-failure
  • .\build-gby\test_all.exe

@kakahuote1
kakahuote1 merged commit 85a21cf into kakahuote1:main May 26, 2026
2 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