Skip to main content

ed25519_simd/
lib.rs

1#![doc = include_str!("../README.md")]
2#[cfg(all(
3    not(doc),
4    not(all(
5        target_arch = "x86_64",
6        target_feature = "avx512f",
7        target_feature = "avx512bw",
8        target_feature = "avx512dq",
9        target_feature = "avx512ifma",
10    )),
11))]
12compile_error!(
13    "ed25519-simd requires x86_64 with AVX-512F, AVX-512BW, AVX-512DQ, and AVX-512IFMA enabled"
14);
15
16mod batch;
17mod cache;
18mod edwards;
19mod field;
20mod hot_key_cache;
21mod input;
22mod scalar;
23mod sha512;
24mod verifier;
25mod wide;
26
27pub use cache::{CachedPublicKey, KeyCache, NullKeyCache};
28pub use hot_key_cache::HotKeyCache;
29pub use input::{PUBLIC_KEY_LEN, SIGNATURE_LEN, VerifyInput};
30pub use verifier::{
31    DalekPolicy, DalekVerifier, RuntimeVerifier, VerificationPolicy, Verifier, VerifyPolicy,
32    Zip215Policy, Zip215Verifier,
33};