Lightweight Cryptography Primitives
|
Compact form of the Grain-128 state. More...
Data Fields | |
uint32_t | lfsr [4] |
uint32_t | nfsr [4] |
Compact form of the Grain-128 state.
We don't need most of the fields in grain128_state_t for the PRNG so create a compact form that is identical to grain128_state_t in the first two fields (LFSR and NFSR).
The compact form can only be used with grain128_core() and grain128_preoutput(). The other helper functions in "internal-grain128.h" must not be used.
uint32_t grain128_compact_state_t::lfsr[4] |
128-bit LFSR state for Grain-128
uint32_t grain128_compact_state_t::nfsr[4] |
128-bit NFSR state for Grain-128