Lightweight Cryptography Primitives
 All Data Structures Files Functions Variables Typedefs Macros Pages
Data Fields
grain128_compact_state_t Struct Reference

Compact form of the Grain-128 state. More...

Data Fields

uint32_t lfsr [4]
 
uint32_t nfsr [4]
 

Detailed Description

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.

Field Documentation

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


The documentation for this struct was generated from the following file: