[PM-35105] Add HighEntropySecret to bitwarden-crypto#1201
Conversation
A high-entropy secret wraps secret bytes guaranteed to be high-entropy, making them safe as input keying material for a cheap KDF. Adds the HighEntropySecret type, its safe-module export, the bitwarden-sensitive-value dependency, and the UniFFI custom-type binding.
🔍 SDK Breaking Change DetectionSDK Version:
Breaking change detection uses the build of the SDK from this branch, including any incompatibities pre-existing on or merged into this branch. Check the workflow logs to confirm. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1201 +/- ##
==========================================
- Coverage 85.09% 85.09% -0.01%
==========================================
Files 464 465 +1
Lines 63866 63947 +81
==========================================
+ Hits 54348 54415 +67
- Misses 9518 9532 +14 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
…ernal into km/high-entropy-secret
|
🤖 Bitwarden Claude Code ReviewOverall Assessment: APPROVE Reviewed the new Code Review DetailsNo blocking findings. Notes considered and intentionally not flagged:
Test coverage exercises redaction, length rejection/acceptance, distinct generation, byte preservation, and clone behavior. |



🎟️ Tracking
https://bitwarden.atlassian.net/browse/PM-35105
📔 Objective
Stacked PR 1/4 splitting the secret-protected key envelope work.
Adds
HighEntropySecretto thebitwarden-cryptosafemodule: a wrapper around secret bytes guaranteed to be high-entropy, safe to use as input keying material for a cheap KDF. Includes thebitwarden-sensitive-valuedependency and the UniFFI custom-type binding.Base:
main.