File tree 5 files changed +28
-18
lines changed
5 files changed +28
-18
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,6 @@ noinst_HEADERS += src/hash_impl.h
58
58
noinst_HEADERS += src/field.h
59
59
noinst_HEADERS += src/field_impl.h
60
60
noinst_HEADERS += src/bench.h
61
- noinst_HEADERS += src/basic-config.h
62
61
noinst_HEADERS += contrib/lax_der_parsing.h
63
62
noinst_HEADERS += contrib/lax_der_parsing.c
64
63
noinst_HEADERS += contrib/lax_der_privatekey_parsing.h
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11
11
#include "scalar.h"
12
12
#include "scratch.h"
13
13
14
+ #ifndef ECMULT_WINDOW_SIZE
15
+ # define ECMULT_WINDOW_SIZE 15
16
+ # ifdef DEBUG_CONFIG
17
+ # pragma message DEBUG_CONFIG_MSG("ECMULT_WINDOW_SIZE undefined, assuming default value")
18
+ # endif
19
+ #endif
20
+
21
+ #ifdef DEBUG_CONFIG
22
+ # pragma message DEBUG_CONFIG_DEF(ECMULT_WINDOW_SIZE)
23
+ #endif
24
+
14
25
/* Noone will ever need more than a window size of 24. The code might
15
26
* be correct for larger values of ECMULT_WINDOW_SIZE but this is not
16
27
* tested.
Original file line number Diff line number Diff line change 10
10
#include "scalar.h"
11
11
#include "group.h"
12
12
13
+ #ifndef ECMULT_GEN_PREC_BITS
14
+ # define ECMULT_GEN_PREC_BITS 4
15
+ # ifdef DEBUG_CONFIG
16
+ # pragma message DEBUG_CONFIG_MSG("ECMULT_GEN_PREC_BITS undefined, assuming default value")
17
+ # endif
18
+ #endif
19
+
20
+ #ifdef DEBUG_CONFIG
21
+ # pragma message DEBUG_CONFIG_DEF(ECMULT_GEN_PREC_BITS)
22
+ #endif
23
+
13
24
#if ECMULT_GEN_PREC_BITS != 2 && ECMULT_GEN_PREC_BITS != 4 && ECMULT_GEN_PREC_BITS != 8
14
25
# error "Set ECMULT_GEN_PREC_BITS to 2, 4 or 8."
15
26
#endif
27
+
16
28
#define ECMULT_GEN_PREC_G (bits ) (1 << bits)
17
29
#define ECMULT_GEN_PREC_N (bits ) (256 / bits)
18
30
Original file line number Diff line number Diff line change 16
16
#include <stdio.h>
17
17
#include <limits.h>
18
18
19
+ #define STR_ (x ) #x
20
+ #define STR (x ) STR_(x)
21
+ #define DEBUG_CONFIG_MSG (x ) "DEBUG_CONFIG: " x
22
+ #define DEBUG_CONFIG_DEF (x ) DEBUG_CONFIG_MSG(#x "=" STR(x))
23
+
19
24
typedef struct {
20
25
void (* fn )(const char * text , void * data );
21
26
const void * data ;
You can’t perform that action at this time.
0 commit comments