File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ version = "3.0.0-pre.2"
13
13
14
14
[features]
15
15
argon2 = ["dep:argon2"]
16
- curve25519 = ["dep:curve25519-dalek", "curve25519-dalek?/precomputed-tables" ]
16
+ curve25519 = ["dep:curve25519-dalek"]
17
17
default = ["ristretto255-voprf", "serde"]
18
18
ristretto255 = ["dep:curve25519-dalek", "voprf/ristretto255"]
19
19
ristretto255-voprf = ["ristretto255", "voprf/ristretto255-ciphersuite"]
Original file line number Diff line number Diff line change 7
7
8
8
//! Key Exchange group implementation for Curve25519
9
9
10
- use curve25519_dalek::constants::ED25519_BASEPOINT_TABLE ;
10
+ use curve25519_dalek::constants::X25519_BASEPOINT ;
11
11
use curve25519_dalek::montgomery::MontgomeryPoint;
12
12
use curve25519_dalek::scalar::Scalar;
13
13
use curve25519_dalek::traits::Identity;
@@ -83,7 +83,7 @@ impl KeGroup for Curve25519 {
83
83
}
84
84
85
85
fn public_key(sk: Self::Sk) -> Self::Pk {
86
- (ED25519_BASEPOINT_TABLE * &sk).to_montgomery()
86
+ X25519_BASEPOINT * sk
87
87
}
88
88
89
89
fn diffie_hellman(pk: Self::Pk, sk: Self::Sk) -> GenericArray<u8, Self::PkLen> {
You can’t perform that action at this time.
0 commit comments