-
Notifications
You must be signed in to change notification settings - Fork 1
Add HMAC-based LUKS2 auth #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
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 implements HMAC-based LUKS2 authentication by adding header integrity verification using HMAC-SHA256. The changes enable detached LUKS header storage with MAC verification to protect against header tampering.
Key changes:
- Adds HMAC-based header verification using SHA256 for LUKS2 authentication
- Implements detached header workflow with MAC storage on disk
- Refactors disk setup and mounting to use header verification
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 10 comments.
| File | Description |
|---|---|
| tdx-init.go | Adds headerFile constant for temporary header storage |
| passphrase.go | Implements HMAC verification functions and refactors LUKS operations to use detached headers with MAC authentication |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
|
I'm going to go ahead and merge this, but I'm not going to update the Bob image until I get the green light from @astarinmymind |
No description provided.