1 | /* mpi_class.h
|
---|
2 | *
|
---|
3 | * Copyright (C) 2006-2017 wolfSSL Inc.
|
---|
4 | *
|
---|
5 | * This file is part of wolfSSL.
|
---|
6 | *
|
---|
7 | * wolfSSL is free software; you can redistribute it and/or modify
|
---|
8 | * it under the terms of the GNU General Public License as published by
|
---|
9 | * the Free Software Foundation; either version 2 of the License, or
|
---|
10 | * (at your option) any later version.
|
---|
11 | *
|
---|
12 | * wolfSSL is distributed in the hope that it will be useful,
|
---|
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
15 | * GNU General Public License for more details.
|
---|
16 | *
|
---|
17 | * You should have received a copy of the GNU General Public License
|
---|
18 | * along with this program; if not, write to the Free Software
|
---|
19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
---|
20 | */
|
---|
21 |
|
---|
22 |
|
---|
23 |
|
---|
24 | #if !(defined(LTM1) && defined(LTM2) && defined(LTM3))
|
---|
25 | #if defined(LTM2)
|
---|
26 | #define LTM3
|
---|
27 | #endif
|
---|
28 | #if defined(LTM1)
|
---|
29 | #define LTM2
|
---|
30 | #endif
|
---|
31 | #define LTM1
|
---|
32 |
|
---|
33 | #if defined(LTM_ALL)
|
---|
34 | #define BN_ERROR_C
|
---|
35 | #define BN_FAST_MP_INVMOD_C
|
---|
36 | #define BN_FAST_MP_MONTGOMERY_REDUCE_C
|
---|
37 | #define BN_FAST_S_MP_MUL_DIGS_C
|
---|
38 | #define BN_FAST_S_MP_MUL_HIGH_DIGS_C
|
---|
39 | #define BN_FAST_S_MP_SQR_C
|
---|
40 | #define BN_MP_2EXPT_C
|
---|
41 | #define BN_MP_ABS_C
|
---|
42 | #define BN_MP_ADD_C
|
---|
43 | #define BN_MP_ADD_D_C
|
---|
44 | #define BN_MP_ADDMOD_C
|
---|
45 | #define BN_MP_AND_C
|
---|
46 | #define BN_MP_CLAMP_C
|
---|
47 | #define BN_MP_CLEAR_C
|
---|
48 | #define BN_MP_CLEAR_MULTI_C
|
---|
49 | #define BN_MP_CMP_C
|
---|
50 | #define BN_MP_CMP_D_C
|
---|
51 | #define BN_MP_CMP_MAG_C
|
---|
52 | #define BN_MP_CNT_LSB_C
|
---|
53 | #define BN_MP_COPY_C
|
---|
54 | #define BN_MP_COUNT_BITS_C
|
---|
55 | #define BN_MP_DIV_C
|
---|
56 | #define BN_MP_DIV_2_C
|
---|
57 | #define BN_MP_DIV_2D_C
|
---|
58 | #define BN_MP_DIV_3_C
|
---|
59 | #define BN_MP_DIV_D_C
|
---|
60 | #define BN_MP_DR_IS_MODULUS_C
|
---|
61 | #define BN_MP_DR_REDUCE_C
|
---|
62 | #define BN_MP_DR_SETUP_C
|
---|
63 | #define BN_MP_EXCH_C
|
---|
64 | #define BN_MP_EXPT_D_C
|
---|
65 | #define BN_MP_EXPTMOD_C
|
---|
66 | #define BN_MP_EXPTMOD_FAST_C
|
---|
67 | #define BN_MP_EXTEUCLID_C
|
---|
68 | #define BN_MP_FREAD_C
|
---|
69 | #define BN_MP_FWRITE_C
|
---|
70 | #define BN_MP_GCD_C
|
---|
71 | #define BN_MP_GET_INT_C
|
---|
72 | #define BN_MP_GROW_C
|
---|
73 | #define BN_MP_INIT_C
|
---|
74 | #define BN_MP_INIT_COPY_C
|
---|
75 | #define BN_MP_INIT_MULTI_C
|
---|
76 | #define BN_MP_INIT_SET_C
|
---|
77 | #define BN_MP_INIT_SET_INT_C
|
---|
78 | #define BN_MP_INIT_SIZE_C
|
---|
79 | #define BN_MP_INVMOD_C
|
---|
80 | #define BN_MP_INVMOD_SLOW_C
|
---|
81 | #define BN_MP_IS_SQUARE_C
|
---|
82 | #define BN_MP_JACOBI_C
|
---|
83 | #define BN_MP_KARATSUBA_MUL_C
|
---|
84 | #define BN_MP_KARATSUBA_SQR_C
|
---|
85 | #define BN_MP_LCM_C
|
---|
86 | #define BN_MP_LSHD_C
|
---|
87 | #define BN_MP_MOD_C
|
---|
88 | #define BN_MP_MOD_2D_C
|
---|
89 | #define BN_MP_MOD_D_C
|
---|
90 | #define BN_MP_MONTGOMERY_CALC_NORMALIZATION_C
|
---|
91 | #define BN_MP_MONTGOMERY_REDUCE_C
|
---|
92 | #define BN_MP_MONTGOMERY_SETUP_C
|
---|
93 | #define BN_MP_MUL_C
|
---|
94 | #define BN_MP_MUL_2_C
|
---|
95 | #define BN_MP_MUL_2D_C
|
---|
96 | #define BN_MP_MUL_D_C
|
---|
97 | #define BN_MP_MULMOD_C
|
---|
98 | #define BN_MP_N_ROOT_C
|
---|
99 | #define BN_MP_NEG_C
|
---|
100 | #define BN_MP_OR_C
|
---|
101 | #define BN_MP_PRIME_FERMAT_C
|
---|
102 | #define BN_MP_PRIME_IS_DIVISIBLE_C
|
---|
103 | #define BN_MP_PRIME_IS_PRIME_C
|
---|
104 | #define BN_MP_PRIME_MILLER_RABIN_C
|
---|
105 | #define BN_MP_PRIME_NEXT_PRIME_C
|
---|
106 | #define BN_MP_PRIME_RABIN_MILLER_TRIALS_C
|
---|
107 | #define BN_MP_PRIME_RANDOM_EX_C
|
---|
108 | #define BN_MP_RADIX_SIZE_C
|
---|
109 | #define BN_MP_RADIX_SMAP_C
|
---|
110 | #define BN_MP_RAND_C
|
---|
111 | #define BN_MP_READ_RADIX_C
|
---|
112 | #define BN_MP_READ_SIGNED_BIN_C
|
---|
113 | #define BN_MP_READ_UNSIGNED_BIN_C
|
---|
114 | #define BN_MP_REDUCE_C
|
---|
115 | #define BN_MP_REDUCE_2K_C
|
---|
116 | #define BN_MP_REDUCE_2K_L_C
|
---|
117 | #define BN_MP_REDUCE_2K_SETUP_C
|
---|
118 | #define BN_MP_REDUCE_2K_SETUP_L_C
|
---|
119 | #define BN_MP_REDUCE_IS_2K_C
|
---|
120 | #define BN_MP_REDUCE_IS_2K_L_C
|
---|
121 | #define BN_MP_REDUCE_SETUP_C
|
---|
122 | #define BN_MP_RSHD_C
|
---|
123 | #define BN_MP_SET_C
|
---|
124 | #define BN_MP_SET_INT_C
|
---|
125 | #define BN_MP_SHRINK_C
|
---|
126 | #define BN_MP_SIGNED_BIN_SIZE_C
|
---|
127 | #define BN_MP_SQR_C
|
---|
128 | #define BN_MP_SQRMOD_C
|
---|
129 | #define BN_MP_SQRT_C
|
---|
130 | #define BN_MP_SUB_C
|
---|
131 | #define BN_MP_SUB_D_C
|
---|
132 | #define BN_MP_SUBMOD_C
|
---|
133 | #define BN_MP_TO_SIGNED_BIN_C
|
---|
134 | #define BN_MP_TO_SIGNED_BIN_N_C
|
---|
135 | #define BN_MP_TO_UNSIGNED_BIN_C
|
---|
136 | #define BN_MP_TO_UNSIGNED_BIN_N_C
|
---|
137 | #define BN_MP_TOOM_MUL_C
|
---|
138 | #define BN_MP_TOOM_SQR_C
|
---|
139 | #define BN_MP_TORADIX_C
|
---|
140 | #define BN_MP_TORADIX_N_C
|
---|
141 | #define BN_MP_UNSIGNED_BIN_SIZE_C
|
---|
142 | #define BN_MP_XOR_C
|
---|
143 | #define BN_MP_ZERO_C
|
---|
144 | #define BN_PRIME_TAB_C
|
---|
145 | #define BN_REVERSE_C
|
---|
146 | #define BN_S_MP_ADD_C
|
---|
147 | #define BN_S_MP_EXPTMOD_C
|
---|
148 | #define BN_S_MP_MUL_DIGS_C
|
---|
149 | #define BN_S_MP_MUL_HIGH_DIGS_C
|
---|
150 | #define BN_S_MP_SQR_C
|
---|
151 | #define BN_S_MP_SUB_C
|
---|
152 | #define BNCORE_C
|
---|
153 | #endif
|
---|
154 |
|
---|
155 | #if defined(BN_ERROR_C)
|
---|
156 | #define BN_MP_ERROR_TO_STRING_C
|
---|
157 | #endif
|
---|
158 |
|
---|
159 | #if defined(BN_FAST_MP_INVMOD_C)
|
---|
160 | #define BN_MP_ISEVEN_C
|
---|
161 | #define BN_MP_INIT_MULTI_C
|
---|
162 | #define BN_MP_COPY_C
|
---|
163 | #define BN_MP_MOD_C
|
---|
164 | #define BN_MP_SET_C
|
---|
165 | #define BN_MP_DIV_2_C
|
---|
166 | #define BN_MP_ISODD_C
|
---|
167 | #define BN_MP_SUB_C
|
---|
168 | #define BN_MP_CMP_C
|
---|
169 | #define BN_MP_ISZERO_C
|
---|
170 | #define BN_MP_CMP_D_C
|
---|
171 | #define BN_MP_ADD_C
|
---|
172 | #define BN_MP_EXCH_C
|
---|
173 | #define BN_MP_CLEAR_MULTI_C
|
---|
174 | #endif
|
---|
175 |
|
---|
176 | #if defined(BN_FAST_MP_MONTGOMERY_REDUCE_C)
|
---|
177 | #define BN_MP_GROW_C
|
---|
178 | #define BN_MP_RSHD_C
|
---|
179 | #define BN_MP_CLAMP_C
|
---|
180 | #define BN_MP_CMP_MAG_C
|
---|
181 | #define BN_S_MP_SUB_C
|
---|
182 | #endif
|
---|
183 |
|
---|
184 | #if defined(BN_FAST_S_MP_MUL_DIGS_C)
|
---|
185 | #define BN_MP_GROW_C
|
---|
186 | #define BN_MP_CLAMP_C
|
---|
187 | #endif
|
---|
188 |
|
---|
189 | #if defined(BN_FAST_S_MP_MUL_HIGH_DIGS_C)
|
---|
190 | #define BN_MP_GROW_C
|
---|
191 | #define BN_MP_CLAMP_C
|
---|
192 | #endif
|
---|
193 |
|
---|
194 | #if defined(BN_FAST_S_MP_SQR_C)
|
---|
195 | #define BN_MP_GROW_C
|
---|
196 | #define BN_MP_CLAMP_C
|
---|
197 | #endif
|
---|
198 |
|
---|
199 | #if defined(BN_MP_2EXPT_C)
|
---|
200 | #define BN_MP_ZERO_C
|
---|
201 | #define BN_MP_GROW_C
|
---|
202 | #endif
|
---|
203 |
|
---|
204 | #if defined(BN_MP_ABS_C)
|
---|
205 | #define BN_MP_COPY_C
|
---|
206 | #endif
|
---|
207 |
|
---|
208 | #if defined(BN_MP_ADD_C)
|
---|
209 | #define BN_S_MP_ADD_C
|
---|
210 | #define BN_MP_CMP_MAG_C
|
---|
211 | #define BN_S_MP_SUB_C
|
---|
212 | #endif
|
---|
213 |
|
---|
214 | #if defined(BN_MP_ADD_D_C)
|
---|
215 | #define BN_MP_GROW_C
|
---|
216 | #define BN_MP_SUB_D_C
|
---|
217 | #define BN_MP_CLAMP_C
|
---|
218 | #endif
|
---|
219 |
|
---|
220 | #if defined(BN_MP_ADDMOD_C)
|
---|
221 | #define BN_MP_INIT_C
|
---|
222 | #define BN_MP_ADD_C
|
---|
223 | #define BN_MP_CLEAR_C
|
---|
224 | #define BN_MP_MOD_C
|
---|
225 | #endif
|
---|
226 |
|
---|
227 | #if defined(BN_MP_AND_C)
|
---|
228 | #define BN_MP_INIT_COPY_C
|
---|
229 | #define BN_MP_CLAMP_C
|
---|
230 | #define BN_MP_EXCH_C
|
---|
231 | #define BN_MP_CLEAR_C
|
---|
232 | #endif
|
---|
233 |
|
---|
234 | #if defined(BN_MP_CLAMP_C)
|
---|
235 | #endif
|
---|
236 |
|
---|
237 | #if defined(BN_MP_CLEAR_C)
|
---|
238 | #endif
|
---|
239 |
|
---|
240 | #if defined(BN_MP_CLEAR_MULTI_C)
|
---|
241 | #define BN_MP_CLEAR_C
|
---|
242 | #endif
|
---|
243 |
|
---|
244 | #if defined(BN_MP_CMP_C)
|
---|
245 | #define BN_MP_CMP_MAG_C
|
---|
246 | #endif
|
---|
247 |
|
---|
248 | #if defined(BN_MP_CMP_D_C)
|
---|
249 | #endif
|
---|
250 |
|
---|
251 | #if defined(BN_MP_CMP_MAG_C)
|
---|
252 | #endif
|
---|
253 |
|
---|
254 | #if defined(BN_MP_CNT_LSB_C)
|
---|
255 | #define BN_MP_ISZERO_C
|
---|
256 | #endif
|
---|
257 |
|
---|
258 | #if defined(BN_MP_COPY_C)
|
---|
259 | #define BN_MP_GROW_C
|
---|
260 | #endif
|
---|
261 |
|
---|
262 | #if defined(BN_MP_COUNT_BITS_C)
|
---|
263 | #endif
|
---|
264 |
|
---|
265 | #if defined(BN_MP_DIV_C)
|
---|
266 | #define BN_MP_ISZERO_C
|
---|
267 | #define BN_MP_CMP_MAG_C
|
---|
268 | #define BN_MP_COPY_C
|
---|
269 | #define BN_MP_ZERO_C
|
---|
270 | #define BN_MP_INIT_MULTI_C
|
---|
271 | #define BN_MP_SET_C
|
---|
272 | #define BN_MP_COUNT_BITS_C
|
---|
273 | #define BN_MP_ABS_C
|
---|
274 | #define BN_MP_MUL_2D_C
|
---|
275 | #define BN_MP_CMP_C
|
---|
276 | #define BN_MP_SUB_C
|
---|
277 | #define BN_MP_ADD_C
|
---|
278 | #define BN_MP_DIV_2D_C
|
---|
279 | #define BN_MP_EXCH_C
|
---|
280 | #define BN_MP_CLEAR_MULTI_C
|
---|
281 | #define BN_MP_INIT_SIZE_C
|
---|
282 | #define BN_MP_INIT_C
|
---|
283 | #define BN_MP_INIT_COPY_C
|
---|
284 | #define BN_MP_LSHD_C
|
---|
285 | #define BN_MP_RSHD_C
|
---|
286 | #define BN_MP_MUL_D_C
|
---|
287 | #define BN_MP_CLAMP_C
|
---|
288 | #define BN_MP_CLEAR_C
|
---|
289 | #endif
|
---|
290 |
|
---|
291 | #if defined(BN_MP_DIV_2_C)
|
---|
292 | #define BN_MP_GROW_C
|
---|
293 | #define BN_MP_CLAMP_C
|
---|
294 | #endif
|
---|
295 |
|
---|
296 | #if defined(BN_MP_DIV_2D_C)
|
---|
297 | #define BN_MP_COPY_C
|
---|
298 | #define BN_MP_ZERO_C
|
---|
299 | #define BN_MP_INIT_C
|
---|
300 | #define BN_MP_MOD_2D_C
|
---|
301 | #define BN_MP_CLEAR_C
|
---|
302 | #define BN_MP_RSHD_C
|
---|
303 | #define BN_MP_CLAMP_C
|
---|
304 | #define BN_MP_EXCH_C
|
---|
305 | #endif
|
---|
306 |
|
---|
307 | #if defined(BN_MP_DIV_3_C)
|
---|
308 | #define BN_MP_INIT_SIZE_C
|
---|
309 | #define BN_MP_CLAMP_C
|
---|
310 | #define BN_MP_EXCH_C
|
---|
311 | #define BN_MP_CLEAR_C
|
---|
312 | #endif
|
---|
313 |
|
---|
314 | #if defined(BN_MP_DIV_D_C)
|
---|
315 | #define BN_MP_ISZERO_C
|
---|
316 | #define BN_MP_COPY_C
|
---|
317 | #define BN_MP_DIV_2D_C
|
---|
318 | #define BN_MP_DIV_3_C
|
---|
319 | #define BN_MP_INIT_SIZE_C
|
---|
320 | #define BN_MP_CLAMP_C
|
---|
321 | #define BN_MP_EXCH_C
|
---|
322 | #define BN_MP_CLEAR_C
|
---|
323 | #endif
|
---|
324 |
|
---|
325 | #if defined(BN_MP_DR_IS_MODULUS_C)
|
---|
326 | #endif
|
---|
327 |
|
---|
328 | #if defined(BN_MP_DR_REDUCE_C)
|
---|
329 | #define BN_MP_GROW_C
|
---|
330 | #define BN_MP_CLAMP_C
|
---|
331 | #define BN_MP_CMP_MAG_C
|
---|
332 | #define BN_S_MP_SUB_C
|
---|
333 | #endif
|
---|
334 |
|
---|
335 | #if defined(BN_MP_DR_SETUP_C)
|
---|
336 | #endif
|
---|
337 |
|
---|
338 | #if defined(BN_MP_EXCH_C)
|
---|
339 | #endif
|
---|
340 |
|
---|
341 | #if defined(BN_MP_EXPT_D_C)
|
---|
342 | #define BN_MP_INIT_COPY_C
|
---|
343 | #define BN_MP_SET_C
|
---|
344 | #define BN_MP_SQR_C
|
---|
345 | #define BN_MP_CLEAR_C
|
---|
346 | #define BN_MP_MUL_C
|
---|
347 | #endif
|
---|
348 |
|
---|
349 | #if defined(BN_MP_EXPTMOD_C)
|
---|
350 | #define BN_MP_INIT_C
|
---|
351 | #define BN_MP_INVMOD_C
|
---|
352 | #define BN_MP_CLEAR_C
|
---|
353 | #define BN_MP_ABS_C
|
---|
354 | #define BN_MP_CLEAR_MULTI_C
|
---|
355 | #define BN_MP_REDUCE_IS_2K_L_C
|
---|
356 | #define BN_S_MP_EXPTMOD_C
|
---|
357 | #define BN_MP_DR_IS_MODULUS_C
|
---|
358 | #define BN_MP_REDUCE_IS_2K_C
|
---|
359 | #define BN_MP_ISODD_C
|
---|
360 | #define BN_MP_EXPTMOD_FAST_C
|
---|
361 | #endif
|
---|
362 |
|
---|
363 | #if defined(BN_MP_EXPTMOD_FAST_C)
|
---|
364 | #define BN_MP_COUNT_BITS_C
|
---|
365 | #define BN_MP_INIT_C
|
---|
366 | #define BN_MP_CLEAR_C
|
---|
367 | #define BN_MP_MONTGOMERY_SETUP_C
|
---|
368 | #define BN_FAST_MP_MONTGOMERY_REDUCE_C
|
---|
369 | #define BN_MP_MONTGOMERY_REDUCE_C
|
---|
370 | #define BN_MP_DR_SETUP_C
|
---|
371 | #define BN_MP_DR_REDUCE_C
|
---|
372 | #define BN_MP_REDUCE_2K_SETUP_C
|
---|
373 | #define BN_MP_REDUCE_2K_C
|
---|
374 | #define BN_MP_MONTGOMERY_CALC_NORMALIZATION_C
|
---|
375 | #define BN_MP_MULMOD_C
|
---|
376 | #define BN_MP_SET_C
|
---|
377 | #define BN_MP_MOD_C
|
---|
378 | #define BN_MP_COPY_C
|
---|
379 | #define BN_MP_SQR_C
|
---|
380 | #define BN_MP_MUL_C
|
---|
381 | #define BN_MP_EXCH_C
|
---|
382 | #endif
|
---|
383 |
|
---|
384 | #if defined(BN_MP_EXTEUCLID_C)
|
---|
385 | #define BN_MP_INIT_MULTI_C
|
---|
386 | #define BN_MP_SET_C
|
---|
387 | #define BN_MP_COPY_C
|
---|
388 | #define BN_MP_ISZERO_C
|
---|
389 | #define BN_MP_DIV_C
|
---|
390 | #define BN_MP_MUL_C
|
---|
391 | #define BN_MP_SUB_C
|
---|
392 | #define BN_MP_NEG_C
|
---|
393 | #define BN_MP_EXCH_C
|
---|
394 | #define BN_MP_CLEAR_MULTI_C
|
---|
395 | #endif
|
---|
396 |
|
---|
397 | #if defined(BN_MP_FREAD_C)
|
---|
398 | #define BN_MP_ZERO_C
|
---|
399 | #define BN_MP_S_RMAP_C
|
---|
400 | #define BN_MP_MUL_D_C
|
---|
401 | #define BN_MP_ADD_D_C
|
---|
402 | #define BN_MP_CMP_D_C
|
---|
403 | #endif
|
---|
404 |
|
---|
405 | #if defined(BN_MP_FWRITE_C)
|
---|
406 | #define BN_MP_RADIX_SIZE_C
|
---|
407 | #define BN_MP_TORADIX_C
|
---|
408 | #endif
|
---|
409 |
|
---|
410 | #if defined(BN_MP_GCD_C)
|
---|
411 | #define BN_MP_ISZERO_C
|
---|
412 | #define BN_MP_ABS_C
|
---|
413 | #define BN_MP_ZERO_C
|
---|
414 | #define BN_MP_INIT_COPY_C
|
---|
415 | #define BN_MP_CNT_LSB_C
|
---|
416 | #define BN_MP_DIV_2D_C
|
---|
417 | #define BN_MP_CMP_MAG_C
|
---|
418 | #define BN_MP_EXCH_C
|
---|
419 | #define BN_S_MP_SUB_C
|
---|
420 | #define BN_MP_MUL_2D_C
|
---|
421 | #define BN_MP_CLEAR_C
|
---|
422 | #endif
|
---|
423 |
|
---|
424 | #if defined(BN_MP_GET_INT_C)
|
---|
425 | #endif
|
---|
426 |
|
---|
427 | #if defined(BN_MP_GROW_C)
|
---|
428 | #endif
|
---|
429 |
|
---|
430 | #if defined(BN_MP_INIT_C)
|
---|
431 | #endif
|
---|
432 |
|
---|
433 | #if defined(BN_MP_INIT_COPY_C)
|
---|
434 | #define BN_MP_COPY_C
|
---|
435 | #endif
|
---|
436 |
|
---|
437 | #if defined(BN_MP_INIT_MULTI_C)
|
---|
438 | #define BN_MP_ERR_C
|
---|
439 | #define BN_MP_INIT_C
|
---|
440 | #define BN_MP_CLEAR_C
|
---|
441 | #endif
|
---|
442 |
|
---|
443 | #if defined(BN_MP_INIT_SET_C)
|
---|
444 | #define BN_MP_INIT_C
|
---|
445 | #define BN_MP_SET_C
|
---|
446 | #endif
|
---|
447 |
|
---|
448 | #if defined(BN_MP_INIT_SET_INT_C)
|
---|
449 | #define BN_MP_INIT_C
|
---|
450 | #define BN_MP_SET_INT_C
|
---|
451 | #endif
|
---|
452 |
|
---|
453 | #if defined(BN_MP_INIT_SIZE_C)
|
---|
454 | #define BN_MP_INIT_C
|
---|
455 | #endif
|
---|
456 |
|
---|
457 | #if defined(BN_MP_INVMOD_C)
|
---|
458 | #define BN_MP_ISZERO_C
|
---|
459 | #define BN_MP_ISODD_C
|
---|
460 | #define BN_FAST_MP_INVMOD_C
|
---|
461 | #define BN_MP_INVMOD_SLOW_C
|
---|
462 | #endif
|
---|
463 |
|
---|
464 | #if defined(BN_MP_INVMOD_SLOW_C)
|
---|
465 | #define BN_MP_ISZERO_C
|
---|
466 | #define BN_MP_INIT_MULTI_C
|
---|
467 | #define BN_MP_MOD_C
|
---|
468 | #define BN_MP_COPY_C
|
---|
469 | #define BN_MP_ISEVEN_C
|
---|
470 | #define BN_MP_SET_C
|
---|
471 | #define BN_MP_DIV_2_C
|
---|
472 | #define BN_MP_ISODD_C
|
---|
473 | #define BN_MP_ADD_C
|
---|
474 | #define BN_MP_SUB_C
|
---|
475 | #define BN_MP_CMP_C
|
---|
476 | #define BN_MP_CMP_D_C
|
---|
477 | #define BN_MP_CMP_MAG_C
|
---|
478 | #define BN_MP_EXCH_C
|
---|
479 | #define BN_MP_CLEAR_MULTI_C
|
---|
480 | #endif
|
---|
481 |
|
---|
482 | #if defined(BN_MP_IS_SQUARE_C)
|
---|
483 | #define BN_MP_MOD_D_C
|
---|
484 | #define BN_MP_INIT_SET_INT_C
|
---|
485 | #define BN_MP_MOD_C
|
---|
486 | #define BN_MP_GET_INT_C
|
---|
487 | #define BN_MP_SQRT_C
|
---|
488 | #define BN_MP_SQR_C
|
---|
489 | #define BN_MP_CMP_MAG_C
|
---|
490 | #define BN_MP_CLEAR_C
|
---|
491 | #endif
|
---|
492 |
|
---|
493 | #if defined(BN_MP_JACOBI_C)
|
---|
494 | #define BN_MP_CMP_D_C
|
---|
495 | #define BN_MP_ISZERO_C
|
---|
496 | #define BN_MP_INIT_COPY_C
|
---|
497 | #define BN_MP_CNT_LSB_C
|
---|
498 | #define BN_MP_DIV_2D_C
|
---|
499 | #define BN_MP_MOD_C
|
---|
500 | #define BN_MP_CLEAR_C
|
---|
501 | #endif
|
---|
502 |
|
---|
503 | #if defined(BN_MP_KARATSUBA_MUL_C)
|
---|
504 | #define BN_MP_MUL_C
|
---|
505 | #define BN_MP_INIT_SIZE_C
|
---|
506 | #define BN_MP_CLAMP_C
|
---|
507 | #define BN_MP_SUB_C
|
---|
508 | #define BN_MP_ADD_C
|
---|
509 | #define BN_MP_LSHD_C
|
---|
510 | #define BN_MP_CLEAR_C
|
---|
511 | #endif
|
---|
512 |
|
---|
513 | #if defined(BN_MP_KARATSUBA_SQR_C)
|
---|
514 | #define BN_MP_INIT_SIZE_C
|
---|
515 | #define BN_MP_CLAMP_C
|
---|
516 | #define BN_MP_SQR_C
|
---|
517 | #define BN_MP_SUB_C
|
---|
518 | #define BN_S_MP_ADD_C
|
---|
519 | #define BN_MP_LSHD_C
|
---|
520 | #define BN_MP_ADD_C
|
---|
521 | #define BN_MP_CLEAR_C
|
---|
522 | #endif
|
---|
523 |
|
---|
524 | #if defined(BN_MP_LCM_C)
|
---|
525 | #define BN_MP_INIT_MULTI_C
|
---|
526 | #define BN_MP_GCD_C
|
---|
527 | #define BN_MP_CMP_MAG_C
|
---|
528 | #define BN_MP_DIV_C
|
---|
529 | #define BN_MP_MUL_C
|
---|
530 | #define BN_MP_CLEAR_MULTI_C
|
---|
531 | #endif
|
---|
532 |
|
---|
533 | #if defined(BN_MP_LSHD_C)
|
---|
534 | #define BN_MP_GROW_C
|
---|
535 | #define BN_MP_RSHD_C
|
---|
536 | #endif
|
---|
537 |
|
---|
538 | #if defined(BN_MP_MOD_C)
|
---|
539 | #define BN_MP_INIT_C
|
---|
540 | #define BN_MP_DIV_C
|
---|
541 | #define BN_MP_CLEAR_C
|
---|
542 | #define BN_MP_ADD_C
|
---|
543 | #define BN_MP_EXCH_C
|
---|
544 | #endif
|
---|
545 |
|
---|
546 | #if defined(BN_MP_MOD_2D_C)
|
---|
547 | #define BN_MP_ZERO_C
|
---|
548 | #define BN_MP_COPY_C
|
---|
549 | #define BN_MP_CLAMP_C
|
---|
550 | #endif
|
---|
551 |
|
---|
552 | #if defined(BN_MP_MOD_D_C)
|
---|
553 | #define BN_MP_DIV_D_C
|
---|
554 | #endif
|
---|
555 |
|
---|
556 | #if defined(BN_MP_MONTGOMERY_CALC_NORMALIZATION_C)
|
---|
557 | #define BN_MP_COUNT_BITS_C
|
---|
558 | #define BN_MP_2EXPT_C
|
---|
559 | #define BN_MP_SET_C
|
---|
560 | #define BN_MP_MUL_2_C
|
---|
561 | #define BN_MP_CMP_MAG_C
|
---|
562 | #define BN_S_MP_SUB_C
|
---|
563 | #endif
|
---|
564 |
|
---|
565 | #if defined(BN_MP_MONTGOMERY_REDUCE_C)
|
---|
566 | #define BN_FAST_MP_MONTGOMERY_REDUCE_C
|
---|
567 | #define BN_MP_GROW_C
|
---|
568 | #define BN_MP_CLAMP_C
|
---|
569 | #define BN_MP_RSHD_C
|
---|
570 | #define BN_MP_CMP_MAG_C
|
---|
571 | #define BN_S_MP_SUB_C
|
---|
572 | #endif
|
---|
573 |
|
---|
574 | #if defined(BN_MP_MONTGOMERY_SETUP_C)
|
---|
575 | #endif
|
---|
576 |
|
---|
577 | #if defined(BN_MP_MUL_C)
|
---|
578 | #define BN_MP_TOOM_MUL_C
|
---|
579 | #define BN_MP_KARATSUBA_MUL_C
|
---|
580 | #define BN_FAST_S_MP_MUL_DIGS_C
|
---|
581 | #define BN_S_MP_MUL_C
|
---|
582 | #define BN_S_MP_MUL_DIGS_C
|
---|
583 | #endif
|
---|
584 |
|
---|
585 | #if defined(BN_MP_MUL_2_C)
|
---|
586 | #define BN_MP_GROW_C
|
---|
587 | #endif
|
---|
588 |
|
---|
589 | #if defined(BN_MP_MUL_2D_C)
|
---|
590 | #define BN_MP_COPY_C
|
---|
591 | #define BN_MP_GROW_C
|
---|
592 | #define BN_MP_LSHD_C
|
---|
593 | #define BN_MP_CLAMP_C
|
---|
594 | #endif
|
---|
595 |
|
---|
596 | #if defined(BN_MP_MUL_D_C)
|
---|
597 | #define BN_MP_GROW_C
|
---|
598 | #define BN_MP_CLAMP_C
|
---|
599 | #endif
|
---|
600 |
|
---|
601 | #if defined(BN_MP_MULMOD_C)
|
---|
602 | #define BN_MP_INIT_C
|
---|
603 | #define BN_MP_MUL_C
|
---|
604 | #define BN_MP_CLEAR_C
|
---|
605 | #define BN_MP_MOD_C
|
---|
606 | #endif
|
---|
607 |
|
---|
608 | #if defined(BN_MP_N_ROOT_C)
|
---|
609 | #define BN_MP_INIT_C
|
---|
610 | #define BN_MP_SET_C
|
---|
611 | #define BN_MP_COPY_C
|
---|
612 | #define BN_MP_EXPT_D_C
|
---|
613 | #define BN_MP_MUL_C
|
---|
614 | #define BN_MP_SUB_C
|
---|
615 | #define BN_MP_MUL_D_C
|
---|
616 | #define BN_MP_DIV_C
|
---|
617 | #define BN_MP_CMP_C
|
---|
618 | #define BN_MP_SUB_D_C
|
---|
619 | #define BN_MP_EXCH_C
|
---|
620 | #define BN_MP_CLEAR_C
|
---|
621 | #endif
|
---|
622 |
|
---|
623 | #if defined(BN_MP_NEG_C)
|
---|
624 | #define BN_MP_COPY_C
|
---|
625 | #define BN_MP_ISZERO_C
|
---|
626 | #endif
|
---|
627 |
|
---|
628 | #if defined(BN_MP_OR_C)
|
---|
629 | #define BN_MP_INIT_COPY_C
|
---|
630 | #define BN_MP_CLAMP_C
|
---|
631 | #define BN_MP_EXCH_C
|
---|
632 | #define BN_MP_CLEAR_C
|
---|
633 | #endif
|
---|
634 |
|
---|
635 | #if defined(BN_MP_PRIME_FERMAT_C)
|
---|
636 | #define BN_MP_CMP_D_C
|
---|
637 | #define BN_MP_INIT_C
|
---|
638 | #define BN_MP_EXPTMOD_C
|
---|
639 | #define BN_MP_CMP_C
|
---|
640 | #define BN_MP_CLEAR_C
|
---|
641 | #endif
|
---|
642 |
|
---|
643 | #if defined(BN_MP_PRIME_IS_DIVISIBLE_C)
|
---|
644 | #define BN_MP_MOD_D_C
|
---|
645 | #endif
|
---|
646 |
|
---|
647 | #if defined(BN_MP_PRIME_IS_PRIME_C)
|
---|
648 | #define BN_MP_CMP_D_C
|
---|
649 | #define BN_MP_PRIME_IS_DIVISIBLE_C
|
---|
650 | #define BN_MP_INIT_C
|
---|
651 | #define BN_MP_SET_C
|
---|
652 | #define BN_MP_PRIME_MILLER_RABIN_C
|
---|
653 | #define BN_MP_CLEAR_C
|
---|
654 | #endif
|
---|
655 |
|
---|
656 | #if defined(BN_MP_PRIME_MILLER_RABIN_C)
|
---|
657 | #define BN_MP_CMP_D_C
|
---|
658 | #define BN_MP_INIT_COPY_C
|
---|
659 | #define BN_MP_SUB_D_C
|
---|
660 | #define BN_MP_CNT_LSB_C
|
---|
661 | #define BN_MP_DIV_2D_C
|
---|
662 | #define BN_MP_EXPTMOD_C
|
---|
663 | #define BN_MP_CMP_C
|
---|
664 | #define BN_MP_SQRMOD_C
|
---|
665 | #define BN_MP_CLEAR_C
|
---|
666 | #endif
|
---|
667 |
|
---|
668 | #if defined(BN_MP_PRIME_NEXT_PRIME_C)
|
---|
669 | #define BN_MP_CMP_D_C
|
---|
670 | #define BN_MP_SET_C
|
---|
671 | #define BN_MP_SUB_D_C
|
---|
672 | #define BN_MP_ISEVEN_C
|
---|
673 | #define BN_MP_MOD_D_C
|
---|
674 | #define BN_MP_INIT_C
|
---|
675 | #define BN_MP_ADD_D_C
|
---|
676 | #define BN_MP_PRIME_MILLER_RABIN_C
|
---|
677 | #define BN_MP_CLEAR_C
|
---|
678 | #endif
|
---|
679 |
|
---|
680 | #if defined(BN_MP_PRIME_RABIN_MILLER_TRIALS_C)
|
---|
681 | #endif
|
---|
682 |
|
---|
683 | #if defined(BN_MP_PRIME_RANDOM_EX_C)
|
---|
684 | #define BN_MP_READ_UNSIGNED_BIN_C
|
---|
685 | #define BN_MP_PRIME_IS_PRIME_C
|
---|
686 | #define BN_MP_SUB_D_C
|
---|
687 | #define BN_MP_DIV_2_C
|
---|
688 | #define BN_MP_MUL_2_C
|
---|
689 | #define BN_MP_ADD_D_C
|
---|
690 | #endif
|
---|
691 |
|
---|
692 | #if defined(BN_MP_RADIX_SIZE_C)
|
---|
693 | #define BN_MP_COUNT_BITS_C
|
---|
694 | #define BN_MP_INIT_COPY_C
|
---|
695 | #define BN_MP_ISZERO_C
|
---|
696 | #define BN_MP_DIV_D_C
|
---|
697 | #define BN_MP_CLEAR_C
|
---|
698 | #endif
|
---|
699 |
|
---|
700 | #if defined(BN_MP_RADIX_SMAP_C)
|
---|
701 | #define BN_MP_S_RMAP_C
|
---|
702 | #endif
|
---|
703 |
|
---|
704 | #if defined(BN_MP_RAND_C)
|
---|
705 | #define BN_MP_ZERO_C
|
---|
706 | #define BN_MP_ADD_D_C
|
---|
707 | #define BN_MP_LSHD_C
|
---|
708 | #endif
|
---|
709 |
|
---|
710 | #if defined(BN_MP_READ_RADIX_C)
|
---|
711 | #define BN_MP_ZERO_C
|
---|
712 | #define BN_MP_S_RMAP_C
|
---|
713 | #define BN_MP_RADIX_SMAP_C
|
---|
714 | #define BN_MP_MUL_D_C
|
---|
715 | #define BN_MP_ADD_D_C
|
---|
716 | #define BN_MP_ISZERO_C
|
---|
717 | #endif
|
---|
718 |
|
---|
719 | #if defined(BN_MP_READ_SIGNED_BIN_C)
|
---|
720 | #define BN_MP_READ_UNSIGNED_BIN_C
|
---|
721 | #endif
|
---|
722 |
|
---|
723 | #if defined(BN_MP_READ_UNSIGNED_BIN_C)
|
---|
724 | #define BN_MP_GROW_C
|
---|
725 | #define BN_MP_ZERO_C
|
---|
726 | #define BN_MP_MUL_2D_C
|
---|
727 | #define BN_MP_CLAMP_C
|
---|
728 | #endif
|
---|
729 |
|
---|
730 | #if defined(BN_MP_REDUCE_C)
|
---|
731 | #define BN_MP_REDUCE_SETUP_C
|
---|
732 | #define BN_MP_INIT_COPY_C
|
---|
733 | #define BN_MP_RSHD_C
|
---|
734 | #define BN_MP_MUL_C
|
---|
735 | #define BN_S_MP_MUL_HIGH_DIGS_C
|
---|
736 | #define BN_FAST_S_MP_MUL_HIGH_DIGS_C
|
---|
737 | #define BN_MP_MOD_2D_C
|
---|
738 | #define BN_S_MP_MUL_DIGS_C
|
---|
739 | #define BN_MP_SUB_C
|
---|
740 | #define BN_MP_CMP_D_C
|
---|
741 | #define BN_MP_SET_C
|
---|
742 | #define BN_MP_LSHD_C
|
---|
743 | #define BN_MP_ADD_C
|
---|
744 | #define BN_MP_CMP_C
|
---|
745 | #define BN_S_MP_SUB_C
|
---|
746 | #define BN_MP_CLEAR_C
|
---|
747 | #endif
|
---|
748 |
|
---|
749 | #if defined(BN_MP_REDUCE_2K_C)
|
---|
750 | #define BN_MP_INIT_C
|
---|
751 | #define BN_MP_COUNT_BITS_C
|
---|
752 | #define BN_MP_DIV_2D_C
|
---|
753 | #define BN_MP_MUL_D_C
|
---|
754 | #define BN_S_MP_ADD_C
|
---|
755 | #define BN_MP_CMP_MAG_C
|
---|
756 | #define BN_S_MP_SUB_C
|
---|
757 | #define BN_MP_CLEAR_C
|
---|
758 | #endif
|
---|
759 |
|
---|
760 | #if defined(BN_MP_REDUCE_2K_L_C)
|
---|
761 | #define BN_MP_INIT_C
|
---|
762 | #define BN_MP_COUNT_BITS_C
|
---|
763 | #define BN_MP_DIV_2D_C
|
---|
764 | #define BN_MP_MUL_C
|
---|
765 | #define BN_S_MP_ADD_C
|
---|
766 | #define BN_MP_CMP_MAG_C
|
---|
767 | #define BN_S_MP_SUB_C
|
---|
768 | #define BN_MP_CLEAR_C
|
---|
769 | #endif
|
---|
770 |
|
---|
771 | #if defined(BN_MP_REDUCE_2K_SETUP_C)
|
---|
772 | #define BN_MP_INIT_C
|
---|
773 | #define BN_MP_COUNT_BITS_C
|
---|
774 | #define BN_MP_2EXPT_C
|
---|
775 | #define BN_MP_CLEAR_C
|
---|
776 | #define BN_S_MP_SUB_C
|
---|
777 | #endif
|
---|
778 |
|
---|
779 | #if defined(BN_MP_REDUCE_2K_SETUP_L_C)
|
---|
780 | #define BN_MP_INIT_C
|
---|
781 | #define BN_MP_2EXPT_C
|
---|
782 | #define BN_MP_COUNT_BITS_C
|
---|
783 | #define BN_S_MP_SUB_C
|
---|
784 | #define BN_MP_CLEAR_C
|
---|
785 | #endif
|
---|
786 |
|
---|
787 | #if defined(BN_MP_REDUCE_IS_2K_C)
|
---|
788 | #define BN_MP_REDUCE_2K_C
|
---|
789 | #define BN_MP_COUNT_BITS_C
|
---|
790 | #endif
|
---|
791 |
|
---|
792 | #if defined(BN_MP_REDUCE_IS_2K_L_C)
|
---|
793 | #endif
|
---|
794 |
|
---|
795 | #if defined(BN_MP_REDUCE_SETUP_C)
|
---|
796 | #define BN_MP_2EXPT_C
|
---|
797 | #define BN_MP_DIV_C
|
---|
798 | #endif
|
---|
799 |
|
---|
800 | #if defined(BN_MP_RSHD_C)
|
---|
801 | #define BN_MP_ZERO_C
|
---|
802 | #endif
|
---|
803 |
|
---|
804 | #if defined(BN_MP_SET_C)
|
---|
805 | #define BN_MP_ZERO_C
|
---|
806 | #endif
|
---|
807 |
|
---|
808 | #if defined(BN_MP_SET_INT_C)
|
---|
809 | #define BN_MP_ZERO_C
|
---|
810 | #define BN_MP_MUL_2D_C
|
---|
811 | #define BN_MP_CLAMP_C
|
---|
812 | #endif
|
---|
813 |
|
---|
814 | #if defined(BN_MP_SHRINK_C)
|
---|
815 | #endif
|
---|
816 |
|
---|
817 | #if defined(BN_MP_SIGNED_BIN_SIZE_C)
|
---|
818 | #define BN_MP_UNSIGNED_BIN_SIZE_C
|
---|
819 | #endif
|
---|
820 |
|
---|
821 | #if defined(BN_MP_SQR_C)
|
---|
822 | #define BN_MP_TOOM_SQR_C
|
---|
823 | #define BN_MP_KARATSUBA_SQR_C
|
---|
824 | #define BN_FAST_S_MP_SQR_C
|
---|
825 | #define BN_S_MP_SQR_C
|
---|
826 | #endif
|
---|
827 |
|
---|
828 | #if defined(BN_MP_SQRMOD_C)
|
---|
829 | #define BN_MP_INIT_C
|
---|
830 | #define BN_MP_SQR_C
|
---|
831 | #define BN_MP_CLEAR_C
|
---|
832 | #define BN_MP_MOD_C
|
---|
833 | #endif
|
---|
834 |
|
---|
835 | #if defined(BN_MP_SQRT_C)
|
---|
836 | #define BN_MP_N_ROOT_C
|
---|
837 | #define BN_MP_ISZERO_C
|
---|
838 | #define BN_MP_ZERO_C
|
---|
839 | #define BN_MP_INIT_COPY_C
|
---|
840 | #define BN_MP_RSHD_C
|
---|
841 | #define BN_MP_DIV_C
|
---|
842 | #define BN_MP_ADD_C
|
---|
843 | #define BN_MP_DIV_2_C
|
---|
844 | #define BN_MP_CMP_MAG_C
|
---|
845 | #define BN_MP_EXCH_C
|
---|
846 | #define BN_MP_CLEAR_C
|
---|
847 | #endif
|
---|
848 |
|
---|
849 | #if defined(BN_MP_SUB_C)
|
---|
850 | #define BN_S_MP_ADD_C
|
---|
851 | #define BN_MP_CMP_MAG_C
|
---|
852 | #define BN_S_MP_SUB_C
|
---|
853 | #endif
|
---|
854 |
|
---|
855 | #if defined(BN_MP_SUB_D_C)
|
---|
856 | #define BN_MP_GROW_C
|
---|
857 | #define BN_MP_ADD_D_C
|
---|
858 | #define BN_MP_CLAMP_C
|
---|
859 | #endif
|
---|
860 |
|
---|
861 | #if defined(BN_MP_SUBMOD_C)
|
---|
862 | #define BN_MP_INIT_C
|
---|
863 | #define BN_MP_SUB_C
|
---|
864 | #define BN_MP_CLEAR_C
|
---|
865 | #define BN_MP_MOD_C
|
---|
866 | #endif
|
---|
867 |
|
---|
868 | #if defined(BN_MP_TO_SIGNED_BIN_C)
|
---|
869 | #define BN_MP_TO_UNSIGNED_BIN_C
|
---|
870 | #endif
|
---|
871 |
|
---|
872 | #if defined(BN_MP_TO_SIGNED_BIN_N_C)
|
---|
873 | #define BN_MP_SIGNED_BIN_SIZE_C
|
---|
874 | #define BN_MP_TO_SIGNED_BIN_C
|
---|
875 | #endif
|
---|
876 |
|
---|
877 | #if defined(BN_MP_TO_UNSIGNED_BIN_C)
|
---|
878 | #define BN_MP_INIT_COPY_C
|
---|
879 | #define BN_MP_ISZERO_C
|
---|
880 | #define BN_MP_DIV_2D_C
|
---|
881 | #define BN_MP_CLEAR_C
|
---|
882 | #endif
|
---|
883 |
|
---|
884 | #if defined(BN_MP_TO_UNSIGNED_BIN_N_C)
|
---|
885 | #define BN_MP_UNSIGNED_BIN_SIZE_C
|
---|
886 | #define BN_MP_TO_UNSIGNED_BIN_C
|
---|
887 | #endif
|
---|
888 |
|
---|
889 | #if defined(BN_MP_TOOM_MUL_C)
|
---|
890 | #define BN_MP_INIT_MULTI_C
|
---|
891 | #define BN_MP_MOD_2D_C
|
---|
892 | #define BN_MP_COPY_C
|
---|
893 | #define BN_MP_RSHD_C
|
---|
894 | #define BN_MP_MUL_C
|
---|
895 | #define BN_MP_MUL_2_C
|
---|
896 | #define BN_MP_ADD_C
|
---|
897 | #define BN_MP_SUB_C
|
---|
898 | #define BN_MP_DIV_2_C
|
---|
899 | #define BN_MP_MUL_2D_C
|
---|
900 | #define BN_MP_MUL_D_C
|
---|
901 | #define BN_MP_DIV_3_C
|
---|
902 | #define BN_MP_LSHD_C
|
---|
903 | #define BN_MP_CLEAR_MULTI_C
|
---|
904 | #endif
|
---|
905 |
|
---|
906 | #if defined(BN_MP_TOOM_SQR_C)
|
---|
907 | #define BN_MP_INIT_MULTI_C
|
---|
908 | #define BN_MP_MOD_2D_C
|
---|
909 | #define BN_MP_COPY_C
|
---|
910 | #define BN_MP_RSHD_C
|
---|
911 | #define BN_MP_SQR_C
|
---|
912 | #define BN_MP_MUL_2_C
|
---|
913 | #define BN_MP_ADD_C
|
---|
914 | #define BN_MP_SUB_C
|
---|
915 | #define BN_MP_DIV_2_C
|
---|
916 | #define BN_MP_MUL_2D_C
|
---|
917 | #define BN_MP_MUL_D_C
|
---|
918 | #define BN_MP_DIV_3_C
|
---|
919 | #define BN_MP_LSHD_C
|
---|
920 | #define BN_MP_CLEAR_MULTI_C
|
---|
921 | #endif
|
---|
922 |
|
---|
923 | #if defined(BN_MP_TORADIX_C)
|
---|
924 | #define BN_MP_ISZERO_C
|
---|
925 | #define BN_MP_INIT_COPY_C
|
---|
926 | #define BN_MP_DIV_D_C
|
---|
927 | #define BN_MP_CLEAR_C
|
---|
928 | #define BN_MP_S_RMAP_C
|
---|
929 | #endif
|
---|
930 |
|
---|
931 | #if defined(BN_MP_TORADIX_N_C)
|
---|
932 | #define BN_MP_ISZERO_C
|
---|
933 | #define BN_MP_INIT_COPY_C
|
---|
934 | #define BN_MP_DIV_D_C
|
---|
935 | #define BN_MP_CLEAR_C
|
---|
936 | #define BN_MP_S_RMAP_C
|
---|
937 | #endif
|
---|
938 |
|
---|
939 | #if defined(BN_MP_UNSIGNED_BIN_SIZE_C)
|
---|
940 | #define BN_MP_COUNT_BITS_C
|
---|
941 | #endif
|
---|
942 |
|
---|
943 | #if defined(BN_MP_XOR_C)
|
---|
944 | #define BN_MP_INIT_COPY_C
|
---|
945 | #define BN_MP_CLAMP_C
|
---|
946 | #define BN_MP_EXCH_C
|
---|
947 | #define BN_MP_CLEAR_C
|
---|
948 | #endif
|
---|
949 |
|
---|
950 | #if defined(BN_MP_ZERO_C)
|
---|
951 | #endif
|
---|
952 |
|
---|
953 | #if defined(BN_PRIME_TAB_C)
|
---|
954 | #endif
|
---|
955 |
|
---|
956 | #if defined(BN_REVERSE_C)
|
---|
957 | #endif
|
---|
958 |
|
---|
959 | #if defined(BN_S_MP_ADD_C)
|
---|
960 | #define BN_MP_GROW_C
|
---|
961 | #define BN_MP_CLAMP_C
|
---|
962 | #endif
|
---|
963 |
|
---|
964 | #if defined(BN_S_MP_EXPTMOD_C)
|
---|
965 | #define BN_MP_COUNT_BITS_C
|
---|
966 | #define BN_MP_INIT_C
|
---|
967 | #define BN_MP_CLEAR_C
|
---|
968 | #define BN_MP_REDUCE_SETUP_C
|
---|
969 | #define BN_MP_REDUCE_C
|
---|
970 | #define BN_MP_REDUCE_2K_SETUP_L_C
|
---|
971 | #define BN_MP_REDUCE_2K_L_C
|
---|
972 | #define BN_MP_MOD_C
|
---|
973 | #define BN_MP_COPY_C
|
---|
974 | #define BN_MP_SQR_C
|
---|
975 | #define BN_MP_MUL_C
|
---|
976 | #define BN_MP_SET_C
|
---|
977 | #define BN_MP_EXCH_C
|
---|
978 | #endif
|
---|
979 |
|
---|
980 | #if defined(BN_S_MP_MUL_DIGS_C)
|
---|
981 | #define BN_FAST_S_MP_MUL_DIGS_C
|
---|
982 | #define BN_MP_INIT_SIZE_C
|
---|
983 | #define BN_MP_CLAMP_C
|
---|
984 | #define BN_MP_EXCH_C
|
---|
985 | #define BN_MP_CLEAR_C
|
---|
986 | #endif
|
---|
987 |
|
---|
988 | #if defined(BN_S_MP_MUL_HIGH_DIGS_C)
|
---|
989 | #define BN_FAST_S_MP_MUL_HIGH_DIGS_C
|
---|
990 | #define BN_MP_INIT_SIZE_C
|
---|
991 | #define BN_MP_CLAMP_C
|
---|
992 | #define BN_MP_EXCH_C
|
---|
993 | #define BN_MP_CLEAR_C
|
---|
994 | #endif
|
---|
995 |
|
---|
996 | #if defined(BN_S_MP_SQR_C)
|
---|
997 | #define BN_MP_INIT_SIZE_C
|
---|
998 | #define BN_MP_CLAMP_C
|
---|
999 | #define BN_MP_EXCH_C
|
---|
1000 | #define BN_MP_CLEAR_C
|
---|
1001 | #endif
|
---|
1002 |
|
---|
1003 | #if defined(BN_S_MP_SUB_C)
|
---|
1004 | #define BN_MP_GROW_C
|
---|
1005 | #define BN_MP_CLAMP_C
|
---|
1006 | #endif
|
---|
1007 |
|
---|
1008 | #if defined(BNCORE_C)
|
---|
1009 | #endif
|
---|
1010 |
|
---|
1011 | #ifdef LTM3
|
---|
1012 | #define LTM_LAST
|
---|
1013 | #endif
|
---|
1014 | #include "mpi_superclass.h"
|
---|
1015 | #include "mpi_class.h"
|
---|
1016 | #else
|
---|
1017 | #define LTM_LAST
|
---|
1018 | #endif
|
---|
1019 |
|
---|