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 a42b1e7 commit 5447cbbCopy full SHA for 5447cbb
crates/bitwarden-crypto/src/store/context.rs
@@ -185,6 +185,18 @@ impl<Ids: KeyIds> KeyStoreContext<'_, Ids> {
185
key_to_wrap_instance.to_encoded().as_slice(),
186
ContentFormat::OctetStream,
187
),
188
+ (XChaCha20Poly1305Key(_), Aes256CbcHmacKey(_) | Aes256CbcKey(_)) => self
189
+ .encrypt_data_with_symmetric_key(
190
+ wrapping_key,
191
+ key_to_wrap_instance.to_encoded().as_slice(),
192
+ ContentFormat::OctetStream,
193
+ ),
194
+ (XChaCha20Poly1305Key(_), XChaCha20Poly1305Key(_)) => self
195
196
197
+ key_to_wrap_instance.to_encoded_raw().as_slice(),
198
+ ContentFormat::CoseKey,
199
200
_ => Err(CryptoError::OperationNotSupported(
201
UnsupportedOperation::EncryptionNotImplementedForKey,
202
)),
0 commit comments