Go to the documentation of this file.
23 #ifndef ASCON_MASKED_CONFIG_H
24 #define ASCON_MASKED_CONFIG_H
31 #if defined(HAVE_CONFIG_H)
59 #ifndef ASCON_MASKED_MAX_SHARES
60 #define ASCON_MASKED_MAX_SHARES 4
62 #ifndef ASCON_MASKED_KEY_SHARES
63 #define ASCON_MASKED_KEY_SHARES 4
65 #ifndef ASCON_MASKED_DATA_SHARES
66 #define ASCON_MASKED_DATA_SHARES 2
70 #if defined(__AVR__) && ASCON_MASKED_MAX_SHARES > 3
71 #undef ASCON_MASKED_MAX_SHARES
72 #define ASCON_MASKED_MAX_SHARES 3
76 #if ASCON_MASKED_KEY_SHARES < 2 || ASCON_MASKED_KEY_SHARES > 4
77 #error "ASCON_MASKED_KEY_SHARES must be between 2 and 4"
79 #if ASCON_MASKED_DATA_SHARES < 1 || ASCON_MASKED_DATA_SHARES > ASCON_MASKED_KEY_SHARES
80 #error "ASCON_MASKED_DATA_SHARES must be between 1 and ASCON_MASKED_KEY_SHARES"
85 #if ASCON_MASKED_KEY_SHARES > ASCON_MASKED_MAX_SHARES
86 #undef ASCON_MASKED_KEY_SHARES
87 #define ASCON_MASKED_KEY_SHARES ASCON_MASKED_MAX_SHARES
89 #if ASCON_MASKED_DATA_SHARES > ASCON_MASKED_MAX_SHARES
90 #undef ASCON_MASKED_DATA_SHARES
91 #define ASCON_MASKED_DATA_SHARES ASCON_MASKED_MAX_SHARES