From ecef4d836ea7f71cfbe3e39b91eb3286dabf8eb7 Mon Sep 17 00:00:00 2001 From: Isis Lovecruft Date: Sun, 1 Oct 2017 23:36:57 +0000 Subject: [PATCH] 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. --- src/field_32bit.rs | 2 +- src/field_64bit.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/field_32bit.rs b/src/field_32bit.rs index ad85599..8a5cc12 100644 --- a/src/field_32bit.rs +++ b/src/field_32bit.rs @@ -56,7 +56,7 @@ use utils::{load3, load4}; /// faster. However, the `FieldElement64` implementation requires Rust's /// `u128`, which is not yet stable. #[derive(Copy, Clone)] -pub struct FieldElement32(pub [i32; 10]); +pub struct FieldElement32(pub (crate) [i32; 10]); impl Debug for FieldElement32 { fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result { diff --git a/src/field_64bit.rs b/src/field_64bit.rs index a4da3a0..9eb8f6e 100644 --- a/src/field_64bit.rs +++ b/src/field_64bit.rs @@ -51,7 +51,7 @@ pub type Limb = u64; /// which gives even better performance. This implementation requires Rust's /// `u128`, which is not yet stable. #[derive(Copy, Clone)] -pub struct FieldElement64(pub [u64; 5]); +pub struct FieldElement64(pub (crate) [u64; 5]); impl Debug for FieldElement64 { fn fmt(&self, f: &mut ::core::fmt::Formatter) -> ::core::fmt::Result {