mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-04 20:24:10 +00:00
Fixup errors introduced from not running yolocrypto tests by default
This commit is contained in:
parent
e757959bb8
commit
f312160d2c
1 changed files with 2 additions and 2 deletions
|
|
@ -253,7 +253,7 @@ impl BasepointMult<Scalar> for DecafPoint {
|
|||
// XXX is this actually in the image of the isogeny,
|
||||
// or do we need a different basepoint?
|
||||
fn basepoint() -> DecafPoint {
|
||||
DecafPoint(constants::BASEPOINT)
|
||||
DecafPoint(ExtendedPoint::basepoint())
|
||||
}
|
||||
|
||||
fn basepoint_mult(scalar: &Scalar) -> DecafPoint {
|
||||
|
|
@ -322,7 +322,7 @@ mod test {
|
|||
// Check that bp_recaf differs from bp by a point of order 4
|
||||
let diff = &ExtendedPoint::basepoint() - &bp_recaf;
|
||||
let diff4 = diff.mult_by_pow_2(4);
|
||||
assert_eq!(diff4.compress_edwards(), ExtendedPoint::identity().compress_edwards());
|
||||
assert_eq!(diff4.compress_edwards(), CompressedEdwardsY::identity());
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
|
|||
Loading…
Reference in a new issue