Skip to main content

XofReader

Trait XofReader 

Source
pub trait XofReader {
    // Required method
    fn read(&mut self, out: &mut [u8]);

    // Provided method
    fn read_n<N: ArrayLength>(&mut self) -> GenericArray<u8, N> { ... }
}
Expand description

Output bytes from an XOF.

Required Methods§

Source

fn read(&mut self, out: &mut [u8])

Reads output bytes from the XOF into out.

Provided Methods§

Source

fn read_n<N: ArrayLength>(&mut self) -> GenericArray<u8, N>

Reads N output bytes from the XOF into out.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<R> XofReader for R
where R: XofReader,

Available on crate feature rust-crypto only.