anemoi/lib.rs
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
//! This crate provides an implementation of different instantiations
//! of the Anemoi permutation, and applications to a Sponge mode and a
//! novel Jive compression mode.
//!
//! All hash instantiations are defined using a `Sponge` trait and can both
//! process sequences of bytes or native field elements.
#![allow(incomplete_features)]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![deny(rustdoc::broken_intra_doc_links)]
#![deny(missing_debug_implementations)]
#![deny(missing_docs)]
#![deny(unsafe_code)]
#![cfg_attr(not(feature = "std"), no_std)]
#![allow(non_camel_case_types)]
#[cfg(not(feature = "std"))]
#[macro_use]
extern crate alloc;
mod traits;
pub use traits::*;
/// An implementation of instantiations of the Anemoi permutation
/// in Sponge and Jive modes targetting the 128-bit security level
/// over BLS12-377 base field.
#[cfg(feature = "bls12_377")]
pub mod bls12_377;
/// An implementation of instantiations of the Anemoi permutation
/// in Sponge and Jive modes targetting the 128-bit security level
/// over BLS12-381 base field.
#[cfg(feature = "bls12_381")]
pub mod bls12_381;
/// An implementation of instantiations of the Anemoi permutation
/// in Sponge and Jive modes targetting the 128-bit security level
/// over BN-254 base field.
#[cfg(feature = "bn_254")]
pub mod bn_254;
/// An implementation of instantiations of the Anemoi permutation
/// in Sponge and Jive modes targetting the 128-bit security level
/// over ED_ON_BLS12-377 base field.
#[cfg(feature = "ed_on_bls12_377")]
pub mod ed_on_bls12_377;
/// An implementation of instantiations of the Anemoi permutation
/// in Sponge and Jive modes targetting the 128-bit security level
/// over Jubjub base field.
#[cfg(feature = "jubjub")]
pub mod jubjub;
/// An implementation of instantiations of the Anemoi permutation
/// in Sponge and Jive modes targetting the 128-bit security level
/// over Pallas base field.
#[cfg(feature = "pallas")]
pub mod pallas;
/// An implementation of instantiations of the Anemoi permutation
/// in Sponge and Jive modes targetting the 128-bit security level
/// over Vesta base field.
#[cfg(feature = "vesta")]
pub mod vesta;