2019-06-03 20:51:05 +01:00
|
|
|
#ifndef _H_RAINBOW_CONFIG_H_
|
|
|
|
#define _H_RAINBOW_CONFIG_H_
|
2019-06-16 11:28:32 +01:00
|
|
|
|
2019-06-03 16:58:59 +01:00
|
|
|
/// @file rainbow_config.h
|
|
|
|
/// @brief Defining the parameters of the Rainbow and the corresponding constants.
|
|
|
|
///
|
|
|
|
|
|
|
|
#define _USE_GF16
|
|
|
|
#define _GFSIZE 16
|
|
|
|
#define _V1 32
|
|
|
|
#define _O1 32
|
|
|
|
#define _O2 32
|
|
|
|
#define _HASH_LEN 32
|
|
|
|
|
|
|
|
|
2019-07-24 09:15:48 +01:00
|
|
|
#define _V2 ((_V1) + (_O1))
|
2019-06-03 16:58:59 +01:00
|
|
|
|
|
|
|
/// size of N, in # of gf elements.
|
2019-07-24 09:15:48 +01:00
|
|
|
#define _PUB_N (_V1 + _O1 + _O2)
|
2019-06-03 16:58:59 +01:00
|
|
|
|
|
|
|
/// size of M, in # gf elements.
|
2019-07-24 09:15:48 +01:00
|
|
|
#define _PUB_M (_O1 + _O2)
|
2019-06-03 16:58:59 +01:00
|
|
|
|
|
|
|
/// size of variables, in # bytes.
|
|
|
|
|
|
|
|
// GF16
|
2019-07-24 09:15:48 +01:00
|
|
|
#define _V1_BYTE (_V1 / 2)
|
|
|
|
#define _V2_BYTE (_V2 / 2)
|
|
|
|
#define _O1_BYTE (_O1 / 2)
|
|
|
|
#define _O2_BYTE (_O2 / 2)
|
|
|
|
#define _PUB_N_BYTE (_PUB_N / 2)
|
|
|
|
#define _PUB_M_BYTE (_PUB_M / 2)
|
2019-06-03 16:58:59 +01:00
|
|
|
|
|
|
|
|
|
|
|
/// length of seed for public key, in # bytes
|
|
|
|
#define LEN_PKSEED 32
|
|
|
|
|
|
|
|
/// length of seed for secret key, in # bytes
|
|
|
|
#define LEN_SKSEED 32
|
|
|
|
|
|
|
|
/// length of salt for a signature, in # bytes
|
|
|
|
#define _SALT_BYTE 16
|
|
|
|
|
|
|
|
/// length of a signature
|
2019-07-24 09:15:48 +01:00
|
|
|
#define _SIGNATURE_BYTE (_PUB_N_BYTE + _SALT_BYTE)
|
2019-06-03 16:58:59 +01:00
|
|
|
|
|
|
|
#endif // _H_RAINBOW_CONFIG_H_
|