Expand description
Common utilities shared across HCTR2/HCTR3 cipher implementations.
Enums§
Constants§
- BLOCK_
LENGTH - AES block length in bytes.
Functions§
- absorb
- Absorb message into Polyval with HCTR2/HCTR3-style padding.
- elk
- ELK mode: Encrypted LFSR Keystream.
- lfsr_
next_ 128 - LFSR next state function for 128-bit state.
- lfsr_
next_ 256 - LFSR next state function for 256-bit state.
- xctr
- XCTR mode: counter-based stream cipher using AES.
- xor_
block - XOR two 16-byte blocks, storing result in the first argument.
- xor_
blocks - XOR two 16-byte blocks, returning a new block.
- xor_
blocks_ 3 - XOR three 16-byte blocks, returning a new block.