Skip to content

Commit 1fa82e7

Browse files
committed
Update deprecated note to be comment
1 parent 7cbf5cb commit 1fa82e7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

crates/bitwarden-wasm-internal/src/pure_crypto.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ pub struct PureCrypto {}
1515
// Encryption
1616
#[wasm_bindgen]
1717
impl PureCrypto {
18-
#[allow(deprecated)]
19-
#[deprecated]
18+
/// DEPRECATED: Use `symmetric_decrypt_string` instead.
19+
/// Cleanup ticket: https://bitwarden.atlassian.net/browse/PM-21247
2020
pub fn symmetric_decrypt(enc_string: String, key: Vec<u8>) -> Result<String, CryptoError> {
2121
Self::symmetric_decrypt_string(enc_string, key)
2222
}
@@ -35,8 +35,8 @@ impl PureCrypto {
3535
EncString::from_str(&enc_string)?.decrypt_with_key(&SymmetricCryptoKey::try_from(key)?)
3636
}
3737

38-
#[allow(deprecated)]
39-
#[deprecated]
38+
/// DEPRECATED: Use `symmetric_decrypt_filedata` instead.
39+
/// Cleanup ticket: https://bitwarden.atlassian.net/browse/PM-21247
4040
pub fn symmetric_decrypt_array_buffer(
4141
enc_bytes: Vec<u8>,
4242
key: Vec<u8>,

0 commit comments

Comments
 (0)