1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
pub const VAULT_VERSION: u16 = 1;
pub const SUPPORTED_VAULT_VERSIONS: = ;
/// Argon2i parameters for password hashing.
/// Note: orion only supports Argon2i (not Argon2id) with p=1.
pub const SECURE_MEMORY_VAULT_CHUNK_SIZE: usize = 4 * 1024; // 4 KiB
pub const MIN_KDF_MEMORY: u32 = 8; // orion Argon2i minimum: 8 * LANES KiB
pub const MIN_KDF_ITERATIONS: u32 = 1;
pub const MIN_PASSWORD_LEN: usize = 8;
pub const MAX_ENTRY_NAME_LEN: usize = 255;
pub const MAX_ENTRY_DATA_SIZE: usize = 64 * 1024 * 1024; // 64 MiB