|
|
@ -195,8 +195,8 @@ pub fn dec_encrypted_block( |
|
|
|
|
|
|
|
|
|
|
|
pub fn derive_key_from_pass(mut pass: Vec<u8>, salt: [u8; 16], wallet_id: WalletId) -> [u8; 32] { |
|
|
|
pub fn derive_key_from_pass(mut pass: Vec<u8>, salt: [u8; 16], wallet_id: WalletId) -> [u8; 32] { |
|
|
|
let params = ParamsBuilder::new() |
|
|
|
let params = ParamsBuilder::new() |
|
|
|
.m_cost(50 * 1024) |
|
|
|
.m_cost(10 * 1024) |
|
|
|
.t_cost(2) |
|
|
|
.t_cost(12) |
|
|
|
.p_cost(1) |
|
|
|
.p_cost(1) |
|
|
|
.data(AssociatedData::new(wallet_id.slice()).unwrap()) |
|
|
|
.data(AssociatedData::new(wallet_id.slice()).unwrap()) |
|
|
|
.output_len(32) |
|
|
|
.output_len(32) |
|
|
|