aboutsummaryrefslogtreecommitdiff
path: root/src/groups.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/groups.rs')
-rw-r--r--src/groups.rs56
1 files changed, 0 insertions, 56 deletions
diff --git a/src/groups.rs b/src/groups.rs
deleted file mode 100644
index 246134e..0000000
--- a/src/groups.rs
+++ /dev/null
@@ -1,56 +0,0 @@
-//! Groups from [RFC 5054](https://tools.ietf.org/html/rfc5054)
-//!
-//! It is strongly recommended to use them instead of custom generated
-//! groups. Additionally it is not recommended to use `G_1024` and `G_1536`,
-//! they are provided only for compatability with the legacy software.
-use types::SrpGroup;
-use num::BigUint;
-
-lazy_static! {
- pub static ref G_1024: SrpGroup = SrpGroup {
- n: BigUint::from_bytes_be(include_bytes!("groups/1024.bin")),
- g: BigUint::from_bytes_be(&[2]),
- };
-}
-
-lazy_static! {
- pub static ref G_1536: SrpGroup = SrpGroup {
- n: BigUint::from_bytes_be(include_bytes!("groups/1536.bin")),
- g: BigUint::from_bytes_be(&[2]),
- };
-}
-
-lazy_static! {
- pub static ref G_2048: SrpGroup = SrpGroup {
- n: BigUint::from_bytes_be(include_bytes!("groups/2048.bin")),
- g: BigUint::from_bytes_be(&[2]),
- };
-}
-
-lazy_static! {
- pub static ref G_3072: SrpGroup = SrpGroup {
- n: BigUint::from_bytes_be(include_bytes!("groups/3072.bin")),
- g: BigUint::from_bytes_be(&[5]),
- };
-}
-
-lazy_static! {
- pub static ref G_4096: SrpGroup = SrpGroup {
- n: BigUint::from_bytes_be(include_bytes!("groups/4096.bin")),
- g: BigUint::from_bytes_be(&[5]),
- };
-}
-
-lazy_static! {
- pub static ref G_6144: SrpGroup = SrpGroup {
- n: BigUint::from_bytes_be(include_bytes!("groups/6144.bin")),
- g: BigUint::from_bytes_be(&[5]),
- };
-}
-
-lazy_static! {
- pub static ref G_8192: SrpGroup = SrpGroup {
- n: BigUint::from_bytes_be(include_bytes!("groups/8192.bin")),
- g: BigUint::from_bytes_be(&[19]),
- };
-}