mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-04 20:24:10 +00:00
Move cfgs into outer module.
This commit is contained in:
parent
00675b4c56
commit
5daff66079
2 changed files with 1 additions and 8 deletions
|
|
@ -21,4 +21,5 @@ pub mod variable_base;
|
|||
#[cfg(feature = "stage2_build")]
|
||||
pub mod vartime_double_base;
|
||||
|
||||
#[cfg(feature = "alloc")]
|
||||
pub mod straus;
|
||||
|
|
|
|||
|
|
@ -12,16 +12,11 @@
|
|||
|
||||
#![allow(non_snake_case)]
|
||||
|
||||
#[cfg(any(feature = "alloc", feature = "std"))]
|
||||
use core::borrow::Borrow;
|
||||
|
||||
#[cfg(any(feature = "alloc", feature = "std"))]
|
||||
use edwards::EdwardsPoint;
|
||||
#[cfg(any(feature = "alloc", feature = "std"))]
|
||||
use scalar::Scalar;
|
||||
#[cfg(any(feature = "alloc", feature = "std"))]
|
||||
use traits::MultiscalarMul;
|
||||
#[cfg(any(feature = "alloc", feature = "std"))]
|
||||
use traits::VartimeMultiscalarMul;
|
||||
|
||||
#[allow(unused_imports)]
|
||||
|
|
@ -48,10 +43,8 @@ use prelude::*;
|
|||
///
|
||||
/// [solution]: https://www.jstor.org/stable/2310929
|
||||
/// [problem]: https://www.jstor.org/stable/2312273
|
||||
#[cfg(any(feature = "alloc", feature = "std"))]
|
||||
pub struct Straus {}
|
||||
|
||||
#[cfg(feature = "alloc")]
|
||||
impl MultiscalarMul for Straus {
|
||||
type Point = EdwardsPoint;
|
||||
|
||||
|
|
@ -148,7 +141,6 @@ impl MultiscalarMul for Straus {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "alloc")]
|
||||
impl VartimeMultiscalarMul for Straus {
|
||||
type Point = EdwardsPoint;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue