2021-02-01 05:32:40 +00:00
|
|
|
#ifndef PQCLEAN_DILITHIUM5_AVX2_PARAMS_H
|
|
|
|
#define PQCLEAN_DILITHIUM5_AVX2_PARAMS_H
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define SEEDBYTES 32
|
2021-02-09 15:13:25 +00:00
|
|
|
#define CRHBYTES 64
|
2021-02-01 05:32:40 +00:00
|
|
|
#define N 256
|
|
|
|
#define Q 8380417
|
|
|
|
#define D 13
|
|
|
|
#define ROOT_OF_UNITY 1753
|
|
|
|
|
|
|
|
#define K 8
|
|
|
|
#define L 7
|
|
|
|
#define ETA 2
|
|
|
|
#define TAU 60
|
|
|
|
#define BETA 120
|
|
|
|
#define GAMMA1 (1 << 19)
|
|
|
|
#define GAMMA2 ((Q-1)/32)
|
|
|
|
#define OMEGA 75
|
|
|
|
#define PQCLEAN_DILITHIUM5_AVX2_CRYPTO_ALGNAME "Dilithium5"
|
|
|
|
|
|
|
|
|
|
|
|
#define POLYT1_PACKEDBYTES 320
|
|
|
|
#define POLYT0_PACKEDBYTES 416
|
|
|
|
#define POLYVECH_PACKEDBYTES (OMEGA + K)
|
|
|
|
|
|
|
|
#define POLYZ_PACKEDBYTES 640
|
|
|
|
|
|
|
|
#define POLYW1_PACKEDBYTES 128
|
|
|
|
|
|
|
|
#define POLYETA_PACKEDBYTES 96
|
|
|
|
|
|
|
|
#define PQCLEAN_DILITHIUM5_AVX2_CRYPTO_PUBLICKEYBYTES (SEEDBYTES + K*POLYT1_PACKEDBYTES)
|
2021-02-09 15:13:25 +00:00
|
|
|
#define PQCLEAN_DILITHIUM5_AVX2_CRYPTO_SECRETKEYBYTES (3*SEEDBYTES \
|
2021-02-01 05:32:40 +00:00
|
|
|
+ L*POLYETA_PACKEDBYTES \
|
|
|
|
+ K*POLYETA_PACKEDBYTES \
|
|
|
|
+ K*POLYT0_PACKEDBYTES)
|
|
|
|
#define PQCLEAN_DILITHIUM5_AVX2_CRYPTO_BYTES (SEEDBYTES + L*POLYZ_PACKEDBYTES + POLYVECH_PACKEDBYTES)
|
|
|
|
|
|
|
|
#endif
|