mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-07 20:50:39 +00:00
Make ExtendedPoint attrs pub as we need them in constants.rs
This commit is contained in:
parent
82041c2c67
commit
dd23a48ade
1 changed files with 8 additions and 4 deletions
12
src/curve.rs
12
src/curve.rs
|
|
@ -174,12 +174,16 @@ impl CompressedEdwardsY {
|
||||||
|
|
||||||
/// An `ExtendedPoint` is a point on the curve in 𝗣³(𝔽ₚ).
|
/// An `ExtendedPoint` is a point on the curve in 𝗣³(𝔽ₚ).
|
||||||
/// A point (x,y) in the affine model corresponds to (x:y:1:xy).
|
/// A point (x,y) in the affine model corresponds to (x:y:1:xy).
|
||||||
|
// XXX members should not be public, but that's needed for the
|
||||||
|
// constants module. Fix when RFC #1422 lands:
|
||||||
|
// https://github.com/rust-lang/rust/issues/32409
|
||||||
#[derive(Copy, Clone)]
|
#[derive(Copy, Clone)]
|
||||||
|
#[allow(missing_docs)]
|
||||||
pub struct ExtendedPoint {
|
pub struct ExtendedPoint {
|
||||||
X: FieldElement,
|
pub X: FieldElement,
|
||||||
Y: FieldElement,
|
pub Y: FieldElement,
|
||||||
Z: FieldElement,
|
pub Z: FieldElement,
|
||||||
T: FieldElement,
|
pub T: FieldElement,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A `ProjectivePoint` is a point on the curve in 𝗣²(𝔽ₚ).
|
/// A `ProjectivePoint` is a point on the curve in 𝗣²(𝔽ₚ).
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue