summaryrefslogtreecommitdiffstats
path: root/src/dh.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-04-18 04:24:54 -0400
committerJesse Luehrs <doy@tozt.net>2019-04-18 04:24:54 -0400
commit1c663ca4e0cf4584e941e18d967d38ee628c9e0d (patch)
treefd5ce6f2b874899bfac87bfd721afd1d7572cded /src/dh.rs
parentcaaf7016fcecd3a95df53e65150666d50bd0fbcf (diff)
downloadmatasano-1c663ca4e0cf4584e941e18d967d38ee628c9e0d.tar.gz
matasano-1c663ca4e0cf4584e941e18d967d38ee628c9e0d.zip
problem 35
Diffstat (limited to 'src/dh.rs')
-rw-r--r--src/dh.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/dh.rs b/src/dh.rs
index 0db0bb2..5e368d9 100644
--- a/src/dh.rs
+++ b/src/dh.rs
@@ -1,12 +1,10 @@
use num_bigint::RandBigInt;
-use serde_derive::{Deserialize, Serialize};
-#[derive(Debug, Clone, Serialize, Deserialize)]
+#[derive(Debug)]
pub struct DHKeyPair {
pub p: num_bigint::BigUint,
pub g: num_bigint::BigUint,
pub pubkey: num_bigint::BigUint,
- #[serde(skip)]
privkey: Option<num_bigint::BigUint>,
}