mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-04 20:24:10 +00:00
Add a new 'avx2_backend' yolocrypto feature
This commit is contained in:
parent
841e0d5b64
commit
f28635ab4e
2 changed files with 4 additions and 4 deletions
|
|
@ -70,11 +70,11 @@ nightly = ["radix_51", "subtle/nightly"]
|
|||
default = ["std"]
|
||||
std = ["rand", "subtle/std"]
|
||||
alloc = []
|
||||
# This isn't used at the moment, but keep it around for future yolocrypto features.
|
||||
yolocrypto = []
|
||||
yolocrypto = ["avx2_backend"]
|
||||
bench = []
|
||||
# Radix-51 arithmetic using u128
|
||||
radix_51 = []
|
||||
# Include precomputed basepoint tables. This is off by default so that build.rs can generate the tables, and then re-enabled by build.rs in the main-stage compilation.
|
||||
precomputed_tables = []
|
||||
|
||||
# experimental avx2 support
|
||||
avx2_backend = ["radix_51"]
|
||||
|
|
|
|||
|
|
@ -29,6 +29,6 @@ pub mod u32;
|
|||
pub mod u64;
|
||||
|
||||
/// Code using AVX2.
|
||||
#[cfg(all(feature="yolocrypto", feature="radix_51"))]
|
||||
#[cfg(all(feature="yolocrypto", feature="avx2_backend"))]
|
||||
pub mod avx2;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue