Trait coins_bip32::ecdsa::signature::digest::ExtendableOutput
source · pub trait ExtendableOutput: Sized + Update {
type Reader: XofReader;
// Required method
fn finalize_xof(self) -> Self::Reader;
// Provided methods
fn finalize_xof_into(self, out: &mut [u8]) { ... }
fn digest_xof(input: impl AsRef<[u8]>, output: &mut [u8])
where Self: Default { ... }
fn finalize_boxed(self, output_size: usize) -> Box<[u8], Global> { ... }
}
Expand description
Trait for hash functions with extendable-output (XOF).
Required Associated Types§
Required Methods§
sourcefn finalize_xof(self) -> Self::Reader
fn finalize_xof(self) -> Self::Reader
Retrieve XOF reader and consume hasher instance.
Provided Methods§
sourcefn finalize_xof_into(self, out: &mut [u8])
fn finalize_xof_into(self, out: &mut [u8])
Finalize XOF and write result into out
.