1 //! Groups from [RFC 5054](https://tools.ietf.org/html/rfc5054)
3 //! It is strongly recommended to use them instead of custom generated
4 //! groups. Additionally it is not recommended to use `G_1024` and `G_1536`,
5 //! they are provided only for compatibility with the legacy software.
10 pub static ref G_1024: SrpGroup = SrpGroup {
11 n: BigUint::from_bytes_be(include_bytes!("groups/1024.bin")),
12 g: BigUint::from_bytes_be(&[2]),
17 pub static ref G_1536: SrpGroup = SrpGroup {
18 n: BigUint::from_bytes_be(include_bytes!("groups/1536.bin")),
19 g: BigUint::from_bytes_be(&[2]),
24 pub static ref G_2048: SrpGroup = SrpGroup {
25 n: BigUint::from_bytes_be(include_bytes!("groups/2048.bin")),
26 g: BigUint::from_bytes_be(&[2]),
31 pub static ref G_3072: SrpGroup = SrpGroup {
32 n: BigUint::from_bytes_be(include_bytes!("groups/3072.bin")),
33 g: BigUint::from_bytes_be(&[5]),
38 pub static ref G_4096: SrpGroup = SrpGroup {
39 n: BigUint::from_bytes_be(include_bytes!("groups/4096.bin")),
40 g: BigUint::from_bytes_be(&[5]),
45 pub static ref G_6144: SrpGroup = SrpGroup {
46 n: BigUint::from_bytes_be(include_bytes!("groups/6144.bin")),
47 g: BigUint::from_bytes_be(&[5]),
52 pub static ref G_8192: SrpGroup = SrpGroup {
53 n: BigUint::from_bytes_be(include_bytes!("groups/8192.bin")),
54 g: BigUint::from_bytes_be(&[19]),