Skip to content

Commit

Permalink
expose from_le_limbs
Browse files Browse the repository at this point in the history
  • Loading branch information
TalDerei committed Mar 3, 2024
1 parent 190a251 commit aeb17ba
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/fields/fp/u32/wrapper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ impl zeroize::Zeroize for Fp {
}

impl Fp {
pub(crate) fn from_le_limbs(limbs: [u64; N_64]) -> Fp {
pub fn from_le_limbs(limbs: [u64; N_64]) -> Fp {
let limbs = {
let mut out = [0u32; N];
for i in 0..N_64 {
Expand Down
2 changes: 1 addition & 1 deletion src/fields/fp/u64/wrapper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ impl zeroize::Zeroize for Fp {
}

impl Fp {
pub(crate) fn from_le_limbs(limbs: [u64; N_64]) -> Fp {
pub fn from_le_limbs(limbs: [u64; N_64]) -> Fp {
let x_non_monty = fiat::FpNonMontgomeryDomainFieldElement(limbs);
let mut x = fiat::FpMontgomeryDomainFieldElement([0; N]);
fiat::fp_to_montgomery(&mut x, &x_non_monty);
Expand Down
2 changes: 1 addition & 1 deletion src/fields/fq/u32/wrapper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ impl zeroize::Zeroize for Fq {
}

impl Fq {
pub(crate) fn from_le_limbs(limbs: [u64; N_64]) -> Fq {
pub fn from_le_limbs(limbs: [u64; N_64]) -> Fq {
let limbs = {
let mut out = [0u32; N];
for i in 0..N_64 {
Expand Down
2 changes: 1 addition & 1 deletion src/fields/fq/u64/wrapper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ impl zeroize::Zeroize for Fq {
}

impl Fq {
pub(crate) fn from_le_limbs(limbs: [u64; N_64]) -> Fq {
pub fn from_le_limbs(limbs: [u64; N_64]) -> Fq {
let x_non_monty = fiat::FqNonMontgomeryDomainFieldElement(limbs);
let mut x = fiat::FqMontgomeryDomainFieldElement([0; N]);
fiat::fq_to_montgomery(&mut x, &x_non_monty);
Expand Down
2 changes: 1 addition & 1 deletion src/fields/fr/u32/wrapper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ impl zeroize::Zeroize for Fr {
}

impl Fr {
pub(crate) fn from_le_limbs(limbs: [u64; N_64]) -> Fr {
pub fn from_le_limbs(limbs: [u64; N_64]) -> Fr {
let limbs = {
let mut out = [0u32; N];
for i in 0..N_64 {
Expand Down
2 changes: 1 addition & 1 deletion src/fields/fr/u64/wrapper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ impl zeroize::Zeroize for Fr {
}

impl Fr {
pub(crate) fn from_le_limbs(limbs: [u64; N_64]) -> Fr {
pub fn from_le_limbs(limbs: [u64; N_64]) -> Fr {
let x_non_monty = fiat::FrNonMontgomeryDomainFieldElement(limbs);
let mut x = fiat::FrMontgomeryDomainFieldElement([0; N]);
fiat::fr_to_montgomery(&mut x, &x_non_monty);
Expand Down

0 comments on commit aeb17ba

Please sign in to comment.