INNER CODE UNIT · Rust

assign

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

    pub fn assign(
        &self,
        vm: &mut dyn Vm<Binary>,
        explicit_nonce: N::Clear,
        mut ctr: impl FnMut() -> C::Clear,
    ) -> Result<(), CipherError>
    where
        N::Clear: Copy,
        C::Clear: Copy,
    {
        for block in &self.blocks {
            vm.assign(block.explicit_nonce, explicit_nonce)
                .map_err(CipherError::new)?;
            vm.commit(block.explicit_nonce).map_err(CipherError::new)?;
            vm.assign(block.counter, ctr()).map_err(CipherError::new)?;
            vm.commit(block.counter).map_err(CipherError::new)?;
        }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…