Fix: unused warning

This commit is contained in:
Dorian Zedler 2023-02-17 14:36:05 +01:00
parent 78a73bba1a
commit 22d0056298
Signed by: dorian
GPG key ID: 989DE36109AFA354

View file

@ -22,6 +22,8 @@ type IV = GenericArray<u8, UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>>;
impl Crypto {
#[wasm_bindgen(constructor)]
pub fn new(password: &str, salt: &str) -> Self {
super::utils::set_panic_hook();
let key = Self::_pbkdf2(password, salt, 1000, 32);
let iv = Self::_pbkdf2(password, salt, 5000, 12);