dcrypt_params/utils/symmetric.rs
1//! Constants for symmetric encryption algorithms
2
3/// AES-128 key size in bytes
4pub const AES128_KEY_SIZE: usize = 16;
5
6/// AES-192 key size in bytes
7pub const AES192_KEY_SIZE: usize = 24;
8
9/// AES-256 key size in bytes
10pub const AES256_KEY_SIZE: usize = 32;
11
12/// AES block size in bytes
13pub const AES_BLOCK_SIZE: usize = 16;
14
15/// ChaCha20 key size in bytes
16pub const CHACHA20_KEY_SIZE: usize = 32;
17
18/// ChaCha20 nonce size in bytes
19pub const CHACHA20_NONCE_SIZE: usize = 12;
20
21/// ChaCha20 block size in bytes
22pub const CHACHA20_BLOCK_SIZE: usize = 64;
23
24/// Poly1305 key size in bytes
25pub const POLY1305_KEY_SIZE: usize = 32;
26
27/// Poly1305 tag size in bytes
28pub const POLY1305_TAG_SIZE: usize = 16;