Change CompressedPoint in constants module to CompressedEdwardsY.

This commit is contained in:
Isis Lovecruft 2017-01-27 00:33:59 +00:00
parent 1d964fa4b7
commit 3f900e60bd
Failed to extract signature

View file

@ -19,7 +19,7 @@
use field::FieldElement;
use curve::PreComputedPoint;
use curve::CompressedPoint;
use curve::CompressedEdwardsY;
pub const d: FieldElement = FieldElement([
-10913610, 13857413, -15372611, 6949391, 114729,
@ -59,11 +59,11 @@ pub const HALF_Q_MINUS_1_BYTES: [u8; 32] = [ // halfQMinus1Bytes
///
/// Generated with Sage: these are the bytes of 4/5 in 𝔽_p. The
/// sign bit is 0 since the basepoint has x chosen to be positive.
pub const BASE_CMPRSSD: CompressedPoint =
CompressedPoint([0x58, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66,
0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66,
0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66,
0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66]);
pub const BASE_CMPRSSD: CompressedEdwardsY =
CompressedEdwardsY([0x58, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66,
0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66,
0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66,
0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66]);
pub const bi: [PreComputedPoint; 8] = [
PreComputedPoint{