INNER CODE UNIT · Rust

default

tlsnotary/tlsn · crates/components/cipher/src/lib.rs:105

    fn default() -> Self {
        Self {
            blocks: VecDeque::new(),
        }
    }
}

impl<N, C, O> Keystream<N, C, O>
where
    N: Repr<Binary> + StaticSize<Binary> + Copy,
    C: Repr<Binary> + StaticSize<Binary> + Copy,
    O: Repr<Binary> + StaticSize<Binary> + Copy,
{
    /// Creates a new keystream from the provided blocks.
    pub fn new(blocks: &[CtrBlock<N, C, O>]) -> Self {
        Self {
            blocks: VecDeque::from_iter(blocks.iter().copied()),
        }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…