INNER CODE UNIT · Rust

IV_WORDS

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

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 {
    ptable: [u32; TABLE_SIZE],
    qtable: [u32; TABLE_SIZE],
    idx: u32,
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…