mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-04 20:24:10 +00:00
Change CompressedPoint in constants module to CompressedEdwardsY.
This commit is contained in:
parent
1d964fa4b7
commit
3f900e60bd
1 changed files with 6 additions and 6 deletions
|
|
@ -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{
|
||||
|
|
|
|||
Loading…
Reference in a new issue