Software APIs
Data Fields
kmac_config Struct Reference

KMAC configuration parameters. More...

Data Fields

bool entropy_fast_process
 Entropy fast process mode when enabled prevents the KMAC unit consuming entropy unless it is processing a secret key. More...
 
bool msg_mask
 Message Masking with PRNG. More...
 
bool sideload
 Enable KMAC sideload mode.
 
bool kmac_en
 Whether or not to use enable KMAC mode.
 
uint8_t mode
 The algorithm: SHA3, SHAKE or cSHAKE.
 

Detailed Description

KMAC configuration parameters.

Definition at line 65 of file kmac.c.

Field Documentation

◆ entropy_fast_process

bool kmac_config::entropy_fast_process

Entropy fast process mode when enabled prevents the KMAC unit consuming entropy unless it is processing a secret key.

This process should not be used when resistance against side-channel attacks is required, because it may lead to leakage of the secret key in the power trace.

Definition at line 72 of file kmac.c.

◆ kmac_en

bool kmac_config::kmac_en

Whether or not to use enable KMAC mode.

Definition at line 86 of file kmac.c.

◆ mode

uint8_t kmac_config::mode

The algorithm: SHA3, SHAKE or cSHAKE.

Definition at line 91 of file kmac.c.

◆ msg_mask

bool kmac_config::msg_mask

Message Masking with PRNG.

If true, KMAC applies PRNG to the input messages to the Keccak module when KMAC mode is on.

Definition at line 78 of file kmac.c.

◆ sideload

bool kmac_config::sideload

Enable KMAC sideload mode.

Definition at line 82 of file kmac.c.