#![deny(missing_docs)]
#![no_std]
#![doc = include_str!("../README.md")]
#![deprecated = "This crate is deprecated. The code was moved to dusk-poseidon."]
mod mds_matrix;
mod round_constants;
mod strategies;
pub const TOTAL_FULL_ROUNDS: usize = 8;
pub const PARTIAL_ROUNDS: usize = 59;
pub const WIDTH: usize = 5;
#[cfg(feature = "plonk")]
pub use strategies::GadgetStrategy;
pub use strategies::{ScalarStrategy, Strategy};
pub(crate) const fn u64_from_buffer<const N: usize>(buf: &[u8; N], i: usize) -> u64 {
u64::from_le_bytes([
buf[i],
buf[i + 1],
buf[i + 2],
buf[i + 3],
buf[i + 4],
buf[i + 5],
buf[i + 6],
buf[i + 7],
])
}