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 53aeeee commit 81b5a15Copy full SHA for 81b5a15
crates/bitwarden-core/src/client/encryption_settings.rs
@@ -61,7 +61,7 @@ impl EncryptionSettings {
61
let dec: Vec<u8> = private_key.decrypt_with_key(&user_key)?;
62
// FIXME: [PM-11690] - Temporarily ignore invalid private keys until we have a recovery
63
// process in place.
64
- AsymmetricCryptoKey::from_der(&Pkcs8PrivateKeyBytes::from(dec))
+ AsymmetricCryptoKey::from_der(&dec.into())
65
.map_err(|_| {
66
warn!("Invalid private key");
67
})
0 commit comments