INNER CODE UNIT · Rust
KEY_WORDS
RustCrypto/stream-ciphers · hc-256/src/lib.rs:27
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 {
ptable: [u32; TABLE_SIZE],
qtable: [u32; TABLE_SIZE],
idx: u32,