mirror of
https://github.com/henrydcase/pqc.git
synced 2024-11-30 03:11:43 +00:00
30 lines
578 B
C
30 lines
578 B
C
#ifndef PQCLEAN_DILITHIUM4_CLEAN_PARAMS_H
|
|
#define PQCLEAN_DILITHIUM4_CLEAN_PARAMS_H
|
|
|
|
|
|
#define SEEDBYTES 32
|
|
#define CRHBYTES 48
|
|
#define N 256
|
|
#define Q 8380417
|
|
#define QBITS 23
|
|
#define D 14
|
|
#define GAMMA1 ((Q - 1)/16)
|
|
#define GAMMA2 (GAMMA1/2)
|
|
#define ALPHA (2*GAMMA2)
|
|
|
|
#define K 6
|
|
#define L 5
|
|
#define ETA 3
|
|
#define SETABITS 3
|
|
#define BETA 175
|
|
#define OMEGA 120
|
|
|
|
|
|
#define POLT1_SIZE_PACKED ((N*(QBITS - D))/8)
|
|
#define POLT0_SIZE_PACKED ((N*D)/8)
|
|
#define POLETA_SIZE_PACKED ((N*SETABITS)/8)
|
|
#define POLZ_SIZE_PACKED ((N*(QBITS - 3))/8)
|
|
#define POLW1_SIZE_PACKED ((N*4)/8)
|
|
|
|
#endif
|