Fix: unused warning
This commit is contained in:
parent
78a73bba1a
commit
22d0056298
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue