diff --git a/crates/bitwarden-wasm-internal/src/crypto.rs b/crates/bitwarden-wasm-internal/src/crypto.rs index 3abf3f87..ced8dcb2 100644 --- a/crates/bitwarden-wasm-internal/src/crypto.rs +++ b/crates/bitwarden-wasm-internal/src/crypto.rs @@ -37,11 +37,16 @@ impl ClientCrypto { authenticated_data: &[u8], key: &[u8], ) -> Result> { + println!("encrypt_xchacha20_poly1305"); + println!("secret_data {:?}", secret_data); + println!("authenticated_data {:?}", authenticated_data); + println!("key {:?}", key); let key_len32 = key[..32].try_into().unwrap(); let (nonce, ciphertext) = chacha20::encrypt_xchacha20_poly1305(secret_data, authenticated_data, key_len32)?; - + println!("encrytped"); let result: Vec = nonce.into_iter().chain(ciphertext.into_iter()).collect(); + println!("result {:?}", result); Ok(result) } }