INNER CODE UNIT · Rust

TABLE_MASK

RustCrypto/stream-ciphers · hc-256/src/lib.rs:24

const TABLE_MASK: usize = TABLE_SIZE - 1;
const INIT_SIZE: usize = 2660;
const KEY_BITS: usize = 256;
const KEY_WORDS: usize = KEY_BITS / 32;
const IV_BITS: usize = 256;
const IV_WORDS: usize = IV_BITS / 32;

/// HC-256 stream cipher key.
pub type Key = cipher::Key<Hc256Core>;

/// HC-256 stream cipher initialization vector.
pub type Iv = cipher::Iv<Hc256Core>;

/// The HC-256 stream cipher.
pub type Hc256 = StreamCipherCoreWrapper<Hc256Core>;

/// Core state of the HC-256 stream cipher.
pub struct Hc256Core {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…