1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-14 07:23:45 +00:00

Cargo fmt

This commit is contained in:
Bernd Schoolmann
2025-08-29 15:29:50 +02:00
parent 22a8f12f38
commit e3e21b94b4

View File

@@ -270,8 +270,9 @@ fn windows_hello_authenticate_with_crypto(challenge: &[u8; 16]) -> Result<[u8; 3
}
let signature_buffer = signature.Result()?;
let mut signature_value =
windows::core::Array::<u8>::with_len(signature_buffer.Length().map_err(|e| anyhow!(e))? as usize);
let mut signature_value = windows::core::Array::<u8>::with_len(
signature_buffer.Length().map_err(|e| anyhow!(e))? as usize,
);
CryptographicBuffer::CopyToByteArray(&signature_buffer, &mut signature_value)?;
// The signature is deterministic based on the challenge and keychain key. Thus, it can be hashed to a key.
// It is unclear what entropy this key provides.