fix: use existing pattern to support SEC1 format EC keys for nanoTDF unwraps#3756
Conversation
Signed-off-by: Antonio Escalera <antonio@defenseunicorns.com>
|
Caution The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased. |
📝 WalkthroughWalkthrough
ChangesEC key decoding
Estimated code review effort: 2 (Simple) | ~10 minutes Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
With a SEC1 EC key, the server starts cleanly because StandardCrypto parses EC keys lazily, then fails at request time in two places:
Proposed Changes
platform/lib/ocrypto/asym_decryption.go
Lines 82 to 83 in 21e95e0
Checklist
Testing Instructions
Summary by CodeRabbit