Make FieldElement limbs private to the curve25519-dalek crate.

Limbs are no longer accessible outside of the curve25519-dalek crate.
If you were relying on this behaviour, first you probably shouldn't be
doing that, second please contact us so we can determine the best way
forward for your use case.
This commit is contained in:
Isis Lovecruft 2017-10-01 23:36:57 +00:00
parent e27bcd0057
commit ecef4d836e
Failed to extract signature
2 changed files with 2 additions and 2 deletions

View file

@ -56,7 +56,7 @@ use utils::{load3, load4};
/// faster. However, the `FieldElement64` implementation requires Rust's /// faster. However, the `FieldElement64` implementation requires Rust's
/// `u128`, which is not yet stable. /// `u128`, which is not yet stable.
#[derive(Copy, Clone)] #[derive(Copy, Clone)]
pub struct FieldElement32(pub [i32; 10]); pub struct FieldElement32(pub (crate) [i32; 10]);
impl Debug for FieldElement32 { impl Debug for FieldElement32 {
fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result { fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {

View file

@ -51,7 +51,7 @@ pub type Limb = u64;
/// which gives even better performance. This implementation requires Rust's /// which gives even better performance. This implementation requires Rust's
/// `u128`, which is not yet stable. /// `u128`, which is not yet stable.
#[derive(Copy, Clone)] #[derive(Copy, Clone)]
pub struct FieldElement64(pub [u64; 5]); pub struct FieldElement64(pub (crate) [u64; 5]);
impl Debug for FieldElement64 { impl Debug for FieldElement64 {
fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result { fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {