pub trait ExtendableOutput: Update {
    type Reader: XofReader;

    fn finalize_xof(self) -> Self::Reader;

    fn finalize_xof_into(self, out: &mut [u8]) { ... }
    fn digest_xof(input: impl AsRef<[u8]>, output: &mut [u8])
    where
        Self: Default
, { ... } }
Expand description

Trait for hash functions with extendable-output (XOF).

Required Associated Types

Reader

Required Methods

Retrieve XOF reader and consume hasher instance.

Provided Methods

Finalize XOF and write result into out.

Compute hash of data and write it into output.

Implementors