dcrypt_params/traditional/
dsa.rs

1//! Constants for Digital Signature Algorithm (DSA)
2
3/// DSA with 2048-bit modulus and 256-bit subgroup
4pub const DSA_2048_256: (usize, usize) = (2048, 256);
5
6/// DSA with 3072-bit modulus and 256-bit subgroup
7pub const DSA_3072_256: (usize, usize) = (3072, 256);
8
9/// Size of DSA signatures in bytes (r and s concatenated)
10pub const DSA_SIGNATURE_SIZE: usize = 64;
11
12/// Byte length for DSA 2048-bit modulus
13pub const DSA_2048_P_BYTE_LENGTH: usize = 2048 / 8;
14
15/// Byte length for DSA 3072-bit modulus
16pub const DSA_3072_P_BYTE_LENGTH: usize = 3072 / 8;
17
18/// Byte length for DSA 256-bit subgroup order
19pub const DSA_256_Q_BYTE_LENGTH: usize = 256 / 8;