INNER CODE UNIT · Rust
fmt
RustCrypto/stream-ciphers · hc-256/src/lib.rs:129
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.write_str("Hc256Core { ... }")
}
}
impl Hc256Core {
#[inline]
fn g1(&self, x: u32, y: u32) -> u32 {
(x.rotate_right(10) ^ y.rotate_right(23))
.wrapping_add(self.qtable[(x ^ y) as usize & TABLE_MASK])
}
#[inline]
fn g2(&self, x: u32, y: u32) -> u32 {
(x.rotate_right(10) ^ y.rotate_right(23))
.wrapping_add(self.ptable[(x ^ y) as usize & TABLE_MASK])
}