ASCON Suite
Macros
ascon-masked-config.h File Reference

Configures the number of shares to use for masked AEAD modes. More...

Go to the source code of this file.

Macros

#define ASCON_MASKED_MAX_SHARES   4
 Maximum number of shares to use in the library. More...
 
#define ASCON_MASKED_KEY_SHARES   4
 Number of shares to use for key material, between 2 and 4 with the default being 4. More...
 
#define ASCON_MASKED_DATA_SHARES   2
 Number of shares to use for plaintext data and associated data, between 1 and ASCON_MASKED_KEY_SHARES. Default is 2. More...
 

Detailed Description

Configures the number of shares to use for masked AEAD modes.

Definition in file ascon-masked-config.h.

Macro Definition Documentation

◆ ASCON_MASKED_DATA_SHARES

#define ASCON_MASKED_DATA_SHARES   2

Number of shares to use for plaintext data and associated data, between 1 and ASCON_MASKED_KEY_SHARES. Default is 2.

Definition at line 66 of file ascon-masked-config.h.

◆ ASCON_MASKED_KEY_SHARES

#define ASCON_MASKED_KEY_SHARES   4

Number of shares to use for key material, between 2 and 4 with the default being 4.

Definition at line 63 of file ascon-masked-config.h.

◆ ASCON_MASKED_MAX_SHARES

#define ASCON_MASKED_MAX_SHARES   4

Maximum number of shares to use in the library.

This will clamp ASCON_MASKED_KEY_SHARES and ASCON_MASKED_DATA_SHARES.

Definition at line 60 of file ascon-masked-config.h.