pub trait Xof: Clone {
type Reader: XofReader;
// Required methods
fn new(s: &[u8]) -> Self;
fn update(&mut self, data: &[u8]);
fn finalize_xof(self) -> Self::Reader;
// Provided method
fn finalize_xof_into(self, out: &mut [u8]) { ... }
}Expand description
A extendable output function (XOF).
Required Associated Types§
Required Methods§
Sourcefn finalize_xof(self) -> Self::Reader
fn finalize_xof(self) -> Self::Reader
Returns the output of the XOF.
Provided Methods§
Sourcefn finalize_xof_into(self, out: &mut [u8])
fn finalize_xof_into(self, out: &mut [u8])
Writes the XOF output to out.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl Xof for CShake128
Available on crate feature rust-crypto only.
impl Xof for CShake128
Available on crate feature
rust-crypto only.type Reader = <CoreWrapper<CShake128Core> as ExtendableOutput>::Reader
fn new(s: &[u8]) -> Self
fn update(&mut self, data: &[u8])
fn finalize_xof(self) -> Self::Reader
Source§impl Xof for CShake256
Available on crate feature rust-crypto only.
impl Xof for CShake256
Available on crate feature
rust-crypto only.