v0.5.2-pre.004
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// file: ks-wallet/src/constants.rs
|
||||
// version: 5
|
||||
// version: 6
|
||||
|
||||
//! Local constants for the `ks-wallet` crate.
|
||||
|
||||
@@ -27,8 +27,16 @@ pub(crate) const KSWALLET_AEAD_XCHACHA20_POLY1305: u8 = 1;
|
||||
pub(crate) const KSWALLET_SALT_LENGTH: usize = 16;
|
||||
/// Nonce length used by XChaCha20-Poly1305.
|
||||
pub(crate) const KSWALLET_NONCE_LENGTH: usize = 24;
|
||||
/// Encryption-key length required by XChaCha20-Poly1305.
|
||||
pub(crate) const KSWALLET_AEAD_KEY_LENGTH: usize = 32;
|
||||
/// Authentication tag length appended by XChaCha20-Poly1305.
|
||||
const KSWALLET_AEAD_TAG_LENGTH: usize = 16;
|
||||
/// Default Argon2id memory cost in KiB used for new native wallets.
|
||||
pub(crate) const KSWALLET_ARGON2_DEFAULT_MEMORY_KIB: u32 = 65_536;
|
||||
/// Default Argon2id pass count used for new native wallets.
|
||||
pub(crate) const KSWALLET_ARGON2_DEFAULT_ITERATIONS: u32 = 3;
|
||||
/// Default Argon2id lane count used for new native wallets.
|
||||
pub(crate) const KSWALLET_ARGON2_DEFAULT_PARALLELISM: u32 = 4;
|
||||
/// Minimum accepted Argon2id memory cost in KiB.
|
||||
pub(crate) const KSWALLET_ARGON2_MIN_MEMORY_KIB: u32 = 65_536;
|
||||
/// Maximum accepted Argon2id memory cost in KiB.
|
||||
|
||||
Reference in New Issue
Block a user