Trait ark_sponge::FieldBasedCryptographicSponge[][src]

pub trait FieldBasedCryptographicSponge<CF: PrimeField>: CryptographicSponge {
    fn squeeze_native_field_elements(&mut self, num_elements: usize) -> Vec<CF>;

    fn squeeze_native_field_elements_with_sizes(
        &mut self,
        sizes: &[FieldElementSize]
    ) -> Vec<CF> { ... } }
Expand description

The interface for field-based cryptographic sponge. CF is the native field used by the cryptographic sponge implementation.

Required methods

Squeeze num_elements field elements from the sponge.

Provided methods

Squeeze sizes.len() field elements from the sponge, where the i-th element of the output has size sizes[i].

Implementors