We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ebf7b9 commit c7ee7c9Copy full SHA for c7ee7c9
crates/bitwarden-core/src/mobile/crypto.rs
@@ -586,7 +586,7 @@ pub fn make_user_signing_keys(client: &Client) -> Result<MakeUserSigningKeysResp
586
let wrapping_key = ctx
587
.dangerous_get_symmetric_key(SymmetricKeyId::User)
588
.map_err(|_| CryptoError::InvalidKey)?;
589
- let signature_keypair = SigningKey::make(SignatureAlgorithm::Ed25519).unwrap();
+ let signature_keypair = SigningKey::make(SignatureAlgorithm::Ed25519).map_err(|_| CryptoError::InvalidKey)?;
590
// This needs to be changed to use the correct cose content format before rolling out to real
591
// accounts
592
let encrypted_signing_key = signature_keypair.to_cose()?;
0 commit comments