mirror of
https://github.com/henrydcase/pqc.git
synced 2024-11-22 23:48:58 +00:00
fix a bug where error array is allocated way too big
This commit is contained in:
parent
42256ec189
commit
9190172f1a
@ -109,8 +109,8 @@ int PQCLEAN_LEDAKEMLT12_LEAKTIME_niederreiter_decrypt(DIGIT *err, const privateK
|
|||||||
POSITION_T QtrPosOnes[N0][M];
|
POSITION_T QtrPosOnes[N0][M];
|
||||||
POSITION_T auxSparse[DV * M];
|
POSITION_T auxSparse[DV * M];
|
||||||
POSITION_T Ln0trSparse[DV * M];
|
POSITION_T Ln0trSparse[DV * M];
|
||||||
DIGIT err_computed[N0 * NUM_DIGITS_GF2X_ELEMENT * DIGIT_SIZE_B] = {0};
|
DIGIT err_computed[N0 * NUM_DIGITS_GF2X_ELEMENT] = {0};
|
||||||
DIGIT err_mockup[N0 * NUM_DIGITS_GF2X_ELEMENT * DIGIT_SIZE_B];
|
DIGIT err_mockup[N0 * NUM_DIGITS_GF2X_ELEMENT];
|
||||||
DIGIT privateSyndrome[NUM_DIGITS_GF2X_ELEMENT];
|
DIGIT privateSyndrome[NUM_DIGITS_GF2X_ELEMENT];
|
||||||
uint8_t processedQOnes[N0];
|
uint8_t processedQOnes[N0];
|
||||||
int rejections = sk->rejections;
|
int rejections = sk->rejections;
|
||||||
|
@ -109,8 +109,8 @@ int PQCLEAN_LEDAKEMLT32_LEAKTIME_niederreiter_decrypt(DIGIT *err, const privateK
|
|||||||
POSITION_T QtrPosOnes[N0][M];
|
POSITION_T QtrPosOnes[N0][M];
|
||||||
POSITION_T auxSparse[DV * M];
|
POSITION_T auxSparse[DV * M];
|
||||||
POSITION_T Ln0trSparse[DV * M];
|
POSITION_T Ln0trSparse[DV * M];
|
||||||
DIGIT err_computed[N0 * NUM_DIGITS_GF2X_ELEMENT * DIGIT_SIZE_B] = {0};
|
DIGIT err_computed[N0 * NUM_DIGITS_GF2X_ELEMENT] = {0};
|
||||||
DIGIT err_mockup[N0 * NUM_DIGITS_GF2X_ELEMENT * DIGIT_SIZE_B];
|
DIGIT err_mockup[N0 * NUM_DIGITS_GF2X_ELEMENT];
|
||||||
DIGIT privateSyndrome[NUM_DIGITS_GF2X_ELEMENT];
|
DIGIT privateSyndrome[NUM_DIGITS_GF2X_ELEMENT];
|
||||||
uint8_t processedQOnes[N0];
|
uint8_t processedQOnes[N0];
|
||||||
int rejections = sk->rejections;
|
int rejections = sk->rejections;
|
||||||
|
@ -109,8 +109,8 @@ int PQCLEAN_LEDAKEMLT52_LEAKTIME_niederreiter_decrypt(DIGIT *err, const privateK
|
|||||||
POSITION_T QtrPosOnes[N0][M];
|
POSITION_T QtrPosOnes[N0][M];
|
||||||
POSITION_T auxSparse[DV * M];
|
POSITION_T auxSparse[DV * M];
|
||||||
POSITION_T Ln0trSparse[DV * M];
|
POSITION_T Ln0trSparse[DV * M];
|
||||||
DIGIT err_computed[N0 * NUM_DIGITS_GF2X_ELEMENT * DIGIT_SIZE_B] = {0};
|
DIGIT err_computed[N0 * NUM_DIGITS_GF2X_ELEMENT] = {0};
|
||||||
DIGIT err_mockup[N0 * NUM_DIGITS_GF2X_ELEMENT * DIGIT_SIZE_B];
|
DIGIT err_mockup[N0 * NUM_DIGITS_GF2X_ELEMENT];
|
||||||
DIGIT privateSyndrome[NUM_DIGITS_GF2X_ELEMENT];
|
DIGIT privateSyndrome[NUM_DIGITS_GF2X_ELEMENT];
|
||||||
uint8_t processedQOnes[N0];
|
uint8_t processedQOnes[N0];
|
||||||
int rejections = sk->rejections;
|
int rejections = sk->rejections;
|
||||||
|
Loading…
Reference in New Issue
Block a user