Skip to content

Commit 6fd28c2

Browse files
Update crates/bitwarden-crypto/src/safe/password_protected_key_envelope.rs
Co-authored-by: Thomas Avery <[email protected]>
1 parent 32aacd7 commit 6fd28c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/bitwarden-crypto/src/safe/password_protected_key_envelope.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ impl<Ids: KeyIds> PasswordProtectedKeyEnvelope<Ids> {
157157
})?;
158158
let envelope_key = derive_key(&kdf_settings, password)
159159
.map_err(|_| PasswordProtectedKeyEnvelopeError::KdfError)?;
160-
let nonce: [u8; 24] = self
160+
let nonce: [u8; crate::xchacha20::NONCE_SIZE] = self
161161
.cose_encrypt
162162
.unprotected
163163
.iv

0 commit comments

Comments
 (0)