diff --git a/crypto_kem/ledakemlt12/leaktime/niederreiter.c b/crypto_kem/ledakemlt12/leaktime/niederreiter.c index 9d7cb7b5..1e81a6da 100644 --- a/crypto_kem/ledakemlt12/leaktime/niederreiter.c +++ b/crypto_kem/ledakemlt12/leaktime/niederreiter.c @@ -109,8 +109,8 @@ int PQCLEAN_LEDAKEMLT12_LEAKTIME_niederreiter_decrypt(DIGIT *err, const privateK POSITION_T QtrPosOnes[N0][M]; POSITION_T auxSparse[DV * M]; POSITION_T Ln0trSparse[DV * M]; - DIGIT err_computed[N0 * NUM_DIGITS_GF2X_ELEMENT * DIGIT_SIZE_B] = {0}; - DIGIT err_mockup[N0 * NUM_DIGITS_GF2X_ELEMENT * DIGIT_SIZE_B]; + DIGIT err_computed[N0 * NUM_DIGITS_GF2X_ELEMENT] = {0}; + DIGIT err_mockup[N0 * NUM_DIGITS_GF2X_ELEMENT]; DIGIT privateSyndrome[NUM_DIGITS_GF2X_ELEMENT]; uint8_t processedQOnes[N0]; int rejections = sk->rejections; diff --git a/crypto_kem/ledakemlt32/leaktime/niederreiter.c b/crypto_kem/ledakemlt32/leaktime/niederreiter.c index 214ec030..e567bbf2 100644 --- a/crypto_kem/ledakemlt32/leaktime/niederreiter.c +++ b/crypto_kem/ledakemlt32/leaktime/niederreiter.c @@ -109,8 +109,8 @@ int PQCLEAN_LEDAKEMLT32_LEAKTIME_niederreiter_decrypt(DIGIT *err, const privateK POSITION_T QtrPosOnes[N0][M]; POSITION_T auxSparse[DV * M]; POSITION_T Ln0trSparse[DV * M]; - DIGIT err_computed[N0 * NUM_DIGITS_GF2X_ELEMENT * DIGIT_SIZE_B] = {0}; - DIGIT err_mockup[N0 * NUM_DIGITS_GF2X_ELEMENT * DIGIT_SIZE_B]; + DIGIT err_computed[N0 * NUM_DIGITS_GF2X_ELEMENT] = {0}; + DIGIT err_mockup[N0 * NUM_DIGITS_GF2X_ELEMENT]; DIGIT privateSyndrome[NUM_DIGITS_GF2X_ELEMENT]; uint8_t processedQOnes[N0]; int rejections = sk->rejections; diff --git a/crypto_kem/ledakemlt52/leaktime/niederreiter.c b/crypto_kem/ledakemlt52/leaktime/niederreiter.c index 6e9c90ff..8a8d5916 100644 --- a/crypto_kem/ledakemlt52/leaktime/niederreiter.c +++ b/crypto_kem/ledakemlt52/leaktime/niederreiter.c @@ -109,8 +109,8 @@ int PQCLEAN_LEDAKEMLT52_LEAKTIME_niederreiter_decrypt(DIGIT *err, const privateK POSITION_T QtrPosOnes[N0][M]; POSITION_T auxSparse[DV * M]; POSITION_T Ln0trSparse[DV * M]; - DIGIT err_computed[N0 * NUM_DIGITS_GF2X_ELEMENT * DIGIT_SIZE_B] = {0}; - DIGIT err_mockup[N0 * NUM_DIGITS_GF2X_ELEMENT * DIGIT_SIZE_B]; + DIGIT err_computed[N0 * NUM_DIGITS_GF2X_ELEMENT] = {0}; + DIGIT err_mockup[N0 * NUM_DIGITS_GF2X_ELEMENT]; DIGIT privateSyndrome[NUM_DIGITS_GF2X_ELEMENT]; uint8_t processedQOnes[N0]; int rejections = sk->rejections;