Trait ark_crypto_primitives::crh::FixedLengthCRH [−][src]
Associated Types
type Output: ToBytes + Clone + Eq + Debug + Hash + Default
[src]
type Parameters: Clone + Default
[src]
Associated Constants
const INPUT_SIZE_BITS: usize
[src]
Required methods
fn setup<R: Rng>(r: &mut R) -> Result<Self::Parameters, Error>
[src]
fn evaluate(
parameters: &Self::Parameters,
input: &[u8]
) -> Result<Self::Output, Error>
[src]
parameters: &Self::Parameters,
input: &[u8]
) -> Result<Self::Output, Error>
Implementors
impl<C: ProjectiveCurve, I: InjectiveMap<C>, W: Window> FixedLengthCRH for PedersenCRHCompressor<C, I, W>
[src]
const INPUT_SIZE_BITS: usize
[src]
type Output = I::Output
type Parameters = Parameters<C>
fn setup<R: Rng>(rng: &mut R) -> Result<Self::Parameters, Error>
[src]
fn evaluate(
parameters: &Self::Parameters,
input: &[u8]
) -> Result<Self::Output, Error>
[src]
parameters: &Self::Parameters,
input: &[u8]
) -> Result<Self::Output, Error>
impl<C: ProjectiveCurve, W: Window> FixedLengthCRH for ark_crypto_primitives::crh::pedersen::CRH<C, W>
[src]
const INPUT_SIZE_BITS: usize
[src]
type Output = C::Affine
type Parameters = Parameters<C>
fn setup<R: Rng>(rng: &mut R) -> Result<Self::Parameters, Error>
[src]
fn evaluate(
parameters: &Self::Parameters,
input: &[u8]
) -> Result<Self::Output, Error>
[src]
parameters: &Self::Parameters,
input: &[u8]
) -> Result<Self::Output, Error>
impl<F: PrimeField, P: PoseidonRoundParams<F>> FixedLengthCRH for PoseidonCRH<F, P>
[src]
const INPUT_SIZE_BITS: usize
[src]
type Output = F
type Parameters = Poseidon<F, P>
fn setup<R: Rng>(rng: &mut R) -> Result<Self::Parameters, Error>
[src]
fn evaluate(
parameters: &Self::Parameters,
input: &[u8]
) -> Result<Self::Output, Error>
[src]
parameters: &Self::Parameters,
input: &[u8]
) -> Result<Self::Output, Error>
impl<P: TEModelParameters, W: Window> FixedLengthCRH for ark_crypto_primitives::crh::bowe_hopwood::CRH<P, W>
[src]
const INPUT_SIZE_BITS: usize
[src]
type Output = TEProjective<P>
type Parameters = Parameters<P>
fn setup<R: Rng>(rng: &mut R) -> Result<Self::Parameters, Error>
[src]
fn evaluate(
parameters: &Self::Parameters,
input: &[u8]
) -> Result<Self::Output, Error>
[src]
parameters: &Self::Parameters,
input: &[u8]
) -> Result<Self::Output, Error>