File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
crates/bitwarden-crypto/src/keys Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ impl DeviceKey {
65
65
protected_user_key : UnsignedSharedKey ,
66
66
) -> Result < SymmetricCryptoKey > {
67
67
let device_private_key: Vec < u8 > = protected_device_private_key. decrypt_with_key ( & self . 0 ) ?;
68
- let device_private_key: Pkcs8PrivateKeyBytes = Bytes :: from ( device_private_key) ;
68
+ let device_private_key = Pkcs8PrivateKeyBytes :: from ( device_private_key) ;
69
69
let device_private_key = AsymmetricCryptoKey :: from_der ( & device_private_key) ?;
70
70
71
71
let user_key: SymmetricCryptoKey =
Original file line number Diff line number Diff line change @@ -150,12 +150,12 @@ impl SymmetricCryptoKey {
150
150
match encoded_key {
151
151
EncodedSymmetricKey :: BitwardenLegacyKey ( _) => {
152
152
let encoded_key: Vec < u8 > = encoded_key. into ( ) ;
153
- Bytes :: from ( encoded_key)
153
+ BitwardenLegacyKeyBytes :: from ( encoded_key)
154
154
}
155
155
EncodedSymmetricKey :: CoseKey ( _) => {
156
156
let mut encoded_key: Vec < u8 > = encoded_key. into ( ) ;
157
157
pad_key ( & mut encoded_key, Self :: AES256_CBC_HMAC_KEY_LEN + 1 ) ;
158
- Bytes :: from ( encoded_key)
158
+ BitwardenLegacyKeyBytes :: from ( encoded_key)
159
159
}
160
160
}
161
161
}
You can’t perform that action at this time.
0 commit comments