2019-05-24 17:38:54 +01:00
|
|
|
#ifndef BF_DECODING_H
|
|
|
|
#define BF_DECODING_H
|
|
|
|
|
2019-06-07 12:40:02 +01:00
|
|
|
#include "gf2x_arith.h"
|
2019-05-27 19:17:53 +01:00
|
|
|
#include "qc_ldpc_parameters.h"
|
2019-05-19 18:14:46 +01:00
|
|
|
|
2019-05-24 17:38:54 +01:00
|
|
|
/* Definitions for DFR level 2^-SL with SL=128 */
|
|
|
|
#define ITERATIONS_MAX (2)
|
|
|
|
#define B0 (43)
|
|
|
|
#define T_BAR (4)
|
2019-05-19 18:14:46 +01:00
|
|
|
|
2019-06-16 16:01:29 +01:00
|
|
|
int PQCLEAN_LEDAKEMLT12_LEAKTIME_bf_decoding(DIGIT err[],
|
2019-05-24 17:38:54 +01:00
|
|
|
const POSITION_T HtrPosOnes[N0][DV],
|
2019-06-07 12:40:02 +01:00
|
|
|
const POSITION_T QtrPosOnes[N0][M],
|
2019-06-14 13:23:58 +01:00
|
|
|
DIGIT privateSyndrome[],
|
|
|
|
uint8_t threshold); // B2
|
2019-05-19 18:14:46 +01:00
|
|
|
|
|
|
|
#endif
|