mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-06 20:41:14 +00:00
Removed unnecessary 'pub use'
This commit is contained in:
parent
8a41a29939
commit
cd9378e6fd
1 changed files with 1 additions and 10 deletions
|
|
@ -39,11 +39,6 @@ use crate::constants;
|
||||||
|
|
||||||
cfg_if! {
|
cfg_if! {
|
||||||
if #[cfg(curve25519_dalek_backend = "fiat")] {
|
if #[cfg(curve25519_dalek_backend = "fiat")] {
|
||||||
#[cfg(curve25519_dalek_bits = "32")]
|
|
||||||
pub use backend::serial::fiat_u32::field::*;
|
|
||||||
#[cfg(curve25519_dalek_bits = "64")]
|
|
||||||
pub use backend::serial::fiat_u64::field::*;
|
|
||||||
|
|
||||||
/// A `FieldElement` represents an element of the field
|
/// A `FieldElement` represents an element of the field
|
||||||
/// \\( \mathbb Z / (2\^{255} - 19)\\).
|
/// \\( \mathbb Z / (2\^{255} - 19)\\).
|
||||||
///
|
///
|
||||||
|
|
@ -64,8 +59,6 @@ cfg_if! {
|
||||||
#[cfg(curve25519_dalek_bits = "64")]
|
#[cfg(curve25519_dalek_bits = "64")]
|
||||||
pub type FieldElement = backend::serial::fiat_u64::field::FieldElement51;
|
pub type FieldElement = backend::serial::fiat_u64::field::FieldElement51;
|
||||||
} else if #[cfg(curve25519_dalek_bits = "64")] {
|
} else if #[cfg(curve25519_dalek_bits = "64")] {
|
||||||
pub use crate::backend::serial::u64::field::*;
|
|
||||||
|
|
||||||
/// A `FieldElement` represents an element of the field
|
/// A `FieldElement` represents an element of the field
|
||||||
/// \\( \mathbb Z / (2\^{255} - 19)\\).
|
/// \\( \mathbb Z / (2\^{255} - 19)\\).
|
||||||
///
|
///
|
||||||
|
|
@ -73,14 +66,12 @@ cfg_if! {
|
||||||
/// implementations.
|
/// implementations.
|
||||||
pub type FieldElement = backend::serial::u64::field::FieldElement51;
|
pub type FieldElement = backend::serial::u64::field::FieldElement51;
|
||||||
} else {
|
} else {
|
||||||
pub use backend::serial::u32::field::*;
|
|
||||||
|
|
||||||
/// A `FieldElement` represents an element of the field
|
/// A `FieldElement` represents an element of the field
|
||||||
/// \\( \mathbb Z / (2\^{255} - 19)\\).
|
/// \\( \mathbb Z / (2\^{255} - 19)\\).
|
||||||
///
|
///
|
||||||
/// The `FieldElement` type is an alias for one of the platform-specific
|
/// The `FieldElement` type is an alias for one of the platform-specific
|
||||||
/// implementations.
|
/// implementations.
|
||||||
pub type FieldElement = backend::serial::u32::field::FieldElement2625;
|
type FieldElement = backend::serial::u32::field::FieldElement2625;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue