[repo] Undo cargo fmt churn in files this branch does not change; CLAUDE.md: the trap
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user