[repo] Undo cargo fmt churn in files this branch does not change; CLAUDE.md: the trap

This commit is contained in:
2026-11-04 00:27:37 +01:00
parent 06410ab3be
commit 510d5eecd1
7 changed files with 34 additions and 113 deletions
+1 -3
View File
@@ -52,9 +52,7 @@ fn random<const N: usize>() -> Zeroizing<[u8; N]> {
fn derive(ikm: &[u8], salt: &[u8], info: &[&[u8]]) -> Zeroizing<[u8; 32]> {
let mut k = Zeroizing::new([0u8; 32]);
hkdf::Hkdf::<Sha256>::new(Some(salt), ikm)
.expand(&info.concat(), k.as_mut())
.expect("32 bytes is a valid HKDF length");
hkdf::Hkdf::<Sha256>::new(Some(salt), ikm).expand(&info.concat(), k.as_mut()).expect("32 bytes is a valid HKDF length");
k
}