aboutsummaryrefslogtreecommitdiff
path: root/spake2/src
diff options
context:
space:
mode:
authorBrian Warner <warner@lothar.com>2018-10-16 15:07:07 -0700
committerBrian Warner <warner@lothar.com>2018-10-16 15:11:15 -0700
commit5d9ca6ab306e713fc0282aebde5c9196ad86b7ab (patch)
tree18bfcce06f61da5aaee6c8f940d712c0b916dbed /spake2/src
parent6516978c0baa72df8ad0b6b66c07081eaa47cb18 (diff)
downloadPAKEs-5d9ca6ab306e713fc0282aebde5c9196ad86b7ab.tar.xz
reformat all code to match rustfmt-1.29.0
Diffstat (limited to 'spake2/src')
-rw-r--r--spake2/src/lib.rs2
-rw-r--r--spake2/src/spake2.rs6
2 files changed, 4 insertions, 4 deletions
diff --git a/spake2/src/lib.rs b/spake2/src/lib.rs
index c2858ba..d189d9c 100644
--- a/spake2/src/lib.rs
+++ b/spake2/src/lib.rs
@@ -13,7 +13,7 @@ pub use spake2::*;
#[cfg(test)]
mod tests {
- use spake2::{Ed25519Group, ErrorType, Identity, Password, SPAKE2, SPAKEErr};
+ use spake2::{Ed25519Group, ErrorType, Identity, Password, SPAKEErr, SPAKE2};
#[test]
fn test_basic() {
diff --git a/spake2/src/spake2.rs b/spake2/src/spake2.rs
index a258c4c..8f90bdf 100644
--- a/spake2/src/spake2.rs
+++ b/spake2/src/spake2.rs
@@ -101,7 +101,7 @@ impl Group for Ed25519Group {
0x96, 0x3b, 0x58, 0xe3, 0x43, 0x88, 0xc8, 0xe6, 0xda, 0xe8, 0x91, 0xdb, 0x75, 0x64,
0x81, 0xa0, 0x23, 0x12,
]).decompress()
- .unwrap()
+ .unwrap()
}
fn const_n() -> c2_Element {
@@ -112,7 +112,7 @@ impl Group for Ed25519Group {
0xc6, 0x32, 0x57, 0x6a, 0xc6, 0x4a, 0xea, 0x65, 0x0b, 0x49, 0x6a, 0x8a, 0x20, 0xff,
0x00, 0xe5, 0x83, 0xc3,
]).decompress()
- .unwrap()
+ .unwrap()
}
fn const_s() -> c2_Element {
@@ -123,7 +123,7 @@ impl Group for Ed25519Group {
0xd8, 0xf5, 0x78, 0x79, 0x56, 0x9c, 0x22, 0x2d, 0x22, 0xb1, 0xcd, 0x71, 0xe8, 0x54,
0x6a, 0xb8, 0xe6, 0xf1,
]).decompress()
- .unwrap()
+ .unwrap()
}
fn hash_to_scalar(s: &[u8]) -> c2_Scalar {