Fixup errors introduced from not running yolocrypto tests by default

This commit is contained in:
Henry & Isis 2017-03-10 22:16:11 -08:00 committed by Henry de Valence
parent e757959bb8
commit f312160d2c

View file

@ -253,7 +253,7 @@ impl BasepointMult<Scalar> for DecafPoint {
// XXX is this actually in the image of the isogeny, // XXX is this actually in the image of the isogeny,
// or do we need a different basepoint? // or do we need a different basepoint?
fn basepoint() -> DecafPoint { fn basepoint() -> DecafPoint {
DecafPoint(constants::BASEPOINT) DecafPoint(ExtendedPoint::basepoint())
} }
fn basepoint_mult(scalar: &Scalar) -> DecafPoint { 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 // Check that bp_recaf differs from bp by a point of order 4
let diff = &ExtendedPoint::basepoint() - &bp_recaf; let diff = &ExtendedPoint::basepoint() - &bp_recaf;
let diff4 = diff.mult_by_pow_2(4); 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] #[test]