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 efa1310 commit 34cf082Copy full SHA for 34cf082
crates/bitwarden-crypto/src/safe/key_wrap.rs
@@ -113,7 +113,7 @@ impl SymmetricCryptoKey {
113
// content format to be either octet stream, in case the wrapped key is a Aes256CbcHmacKey
114
// or `Aes256CbcKey`, or by specifying the content format to be CoseKey, in case the
115
// wrapped key is a `XChaCha20Poly1305Key`.
116
- match (&wrapping_key, self) {
+ match (wrapping_key, self) {
117
(Aes256CbcHmacKey(_), Aes256CbcHmacKey(_) | Aes256CbcKey(_)) => {
118
let encoded = self.to_encoded();
119
let enc_string = encoded.encrypt_with_key(wrapping_key)?;
0 commit comments