INNER CODE UNIT · Rust

alloc_keystream

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

    fn alloc_keystream(
        &mut self,
        vm: &mut dyn Vm<Binary>,
        len: usize,
    ) -> Result<Keystream<Self::Nonce, Self::Counter, Self::Block>, Self::Error>;
}

/// A block in counter mode.
#[derive(Debug, Clone, Copy)]
pub struct CtrBlock<N, C, O> {
    /// Explicit nonce reference.
    pub explicit_nonce: N,
    /// Counter reference.
    pub counter: C,
    /// Output reference.
    pub output: O,
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…