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