Skip to content

test: pass the recipient protected header to Unwrap - #5

Merged
bajtos merged 1 commit into
mainfrom
fix-ci
Aug 4, 2026
Merged

test: pass the recipient protected header to Unwrap#5
bajtos merged 1 commit into
mainfrom
fix-ci

Conversation

@bajtos

@bajtos bajtos commented Aug 4, 2026

Copy link
Copy Markdown
Member

The CEK-recovery helper still called ecdhkw.Unwrap with the old two-argument signature, breaking the build. Feed it the recipient's protected header bytes, the same way unwrapper.go does.

The CEK-recovery helper still called ecdhkw.Unwrap with the old
two-argument signature, breaking the build. Feed it the recipient's
protected header bytes, the same way unwrapper.go does.

Signed-off-by: Miroslav Bajtoš <oss@bajtos.net>
Assisted-by: Claude:claude-opus-5[1m]
@bajtos
bajtos requested review from alanshaw and a lite review from Copilot August 4, 2026 07:12
@bajtos
bajtos enabled auto-merge (squash) August 4, 2026 07:12

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a build break caused by an outdated ecdhkw.Unwrap call in the CEK-recovery test helper by passing the recipient protected header bytes, matching the current ecdhkw.Unwrap signature and the production unwrapper behavior.

Changes:

  • Extract the recipient’s protected header bytes via rcpt.Headers.ProtectedBytes().
  • Pass the protected header bytes into ecdhkw.Unwrap(...) as the third argument.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@bajtos
bajtos merged commit 8a4f3dc into main Aug 4, 2026
8 checks passed
@bajtos
bajtos deleted the fix-ci branch August 4, 2026 10:09
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.

3 participants