1 #if !(defined(LTM1) && defined(LTM2) && defined(LTM3))
11 #define BN_MP_DIV_SMALL // -Pekka
13 #define BN_FAST_MP_INVMOD_C
14 #define BN_FAST_MP_MONTGOMERY_REDUCE_C
15 #define BN_FAST_S_MP_MUL_DIGS_C
16 #define BN_FAST_S_MP_MUL_HIGH_DIGS_C
17 #define BN_FAST_S_MP_SQR_C
22 #define BN_MP_ADDMOD_C
26 #define BN_MP_CLEAR_MULTI_C
29 #define BN_MP_CMP_MAG_C
30 #define BN_MP_CNT_LSB_C
32 #define BN_MP_COUNT_BITS_C
35 #define BN_MP_DIV_2D_C
38 #define BN_MP_DR_IS_MODULUS_C
39 #define BN_MP_DR_REDUCE_C
40 #define BN_MP_DR_SETUP_C
42 #define BN_MP_EXPT_D_C
43 #define BN_MP_EXPTMOD_C
44 #define BN_MP_EXPTMOD_FAST_C
45 #define BN_MP_EXTEUCLID_C
47 #define BN_MP_FWRITE_C
49 #define BN_MP_GET_INT_C
52 #define BN_MP_INIT_COPY_C
53 #define BN_MP_INIT_MULTI_C
54 #define BN_MP_INIT_SET_C
55 #define BN_MP_INIT_SET_INT_C
56 #define BN_MP_INIT_SIZE_C
57 #define BN_MP_INVMOD_C
58 #define BN_MP_INVMOD_SLOW_C
59 #define BN_MP_IS_SQUARE_C
60 #define BN_MP_JACOBI_C
61 #define BN_MP_KARATSUBA_MUL_C
62 #define BN_MP_KARATSUBA_SQR_C
66 #define BN_MP_MOD_2D_C
68 #define BN_MP_MONTGOMERY_CALC_NORMALIZATION_C
69 #define BN_MP_MONTGOMERY_REDUCE_C
70 #define BN_MP_MONTGOMERY_SETUP_C
73 #define BN_MP_MUL_2D_C
75 #define BN_MP_MULMOD_C
76 #define BN_MP_N_ROOT_C
79 #define BN_MP_PRIME_FERMAT_C
80 #define BN_MP_PRIME_IS_DIVISIBLE_C
81 #define BN_MP_PRIME_IS_PRIME_C
82 #define BN_MP_PRIME_MILLER_RABIN_C
83 #define BN_MP_PRIME_NEXT_PRIME_C
84 #define BN_MP_PRIME_RABIN_MILLER_TRIALS_C
85 #define BN_MP_PRIME_RANDOM_EX_C
86 #define BN_MP_RADIX_SIZE_C
87 #define BN_MP_RADIX_SMAP_C
89 #define BN_MP_READ_RADIX_C
90 #define BN_MP_READ_SIGNED_BIN_C
91 #define BN_MP_READ_UNSIGNED_BIN_C
92 #define BN_MP_REDUCE_C
93 #define BN_MP_REDUCE_2K_C
94 #define BN_MP_REDUCE_2K_L_C
95 #define BN_MP_REDUCE_2K_SETUP_C
96 #define BN_MP_REDUCE_2K_SETUP_L_C
97 #define BN_MP_REDUCE_IS_2K_C
98 #define BN_MP_REDUCE_IS_2K_L_C
99 #define BN_MP_REDUCE_SETUP_C
102 #define BN_MP_SET_INT_C
103 #define BN_MP_SHRINK_C
104 #define BN_MP_SIGNED_BIN_SIZE_C
106 #define BN_MP_SQRMOD_C
109 #define BN_MP_SUB_D_C
110 #define BN_MP_SUBMOD_C
111 #define BN_MP_TO_SIGNED_BIN_C
112 #define BN_MP_TO_SIGNED_BIN_N_C
113 #define BN_MP_TO_UNSIGNED_BIN_C
114 #define BN_MP_TO_UNSIGNED_BIN_N_C
115 #define BN_MP_TOOM_MUL_C
116 #define BN_MP_TOOM_SQR_C
117 #define BN_MP_TORADIX_C
118 #define BN_MP_TORADIX_N_C
119 #define BN_MP_UNSIGNED_BIN_SIZE_C
122 #define BN_PRIME_TAB_C
124 #define BN_S_MP_ADD_C
125 #define BN_S_MP_EXPTMOD_C
126 #define BN_S_MP_MUL_DIGS_C
127 #define BN_S_MP_MUL_HIGH_DIGS_C
128 #define BN_S_MP_SQR_C
129 #define BN_S_MP_SUB_C
133 #if defined(BN_ERROR_C)
134 #define BN_MP_ERROR_TO_STRING_C
137 #if defined(BN_FAST_MP_INVMOD_C)
138 #define BN_MP_ISEVEN_C
139 #define BN_MP_INIT_MULTI_C
143 #define BN_MP_DIV_2_C
144 #define BN_MP_ISODD_C
147 #define BN_MP_ISZERO_C
148 #define BN_MP_CMP_D_C
151 #define BN_MP_CLEAR_MULTI_C
154 #if defined(BN_FAST_MP_MONTGOMERY_REDUCE_C)
157 #define BN_MP_CLAMP_C
158 #define BN_MP_CMP_MAG_C
159 #define BN_S_MP_SUB_C
162 #if defined(BN_FAST_S_MP_MUL_DIGS_C)
164 #define BN_MP_CLAMP_C
167 #if defined(BN_FAST_S_MP_MUL_HIGH_DIGS_C)
169 #define BN_MP_CLAMP_C
172 #if defined(BN_FAST_S_MP_SQR_C)
174 #define BN_MP_CLAMP_C
177 #if defined(BN_MP_2EXPT_C)
182 #if defined(BN_MP_ABS_C)
186 #if defined(BN_MP_ADD_C)
187 #define BN_S_MP_ADD_C
188 #define BN_MP_CMP_MAG_C
189 #define BN_S_MP_SUB_C
192 #if defined(BN_MP_ADD_D_C)
194 #define BN_MP_SUB_D_C
195 #define BN_MP_CLAMP_C
198 #if defined(BN_MP_ADDMOD_C)
201 #define BN_MP_CLEAR_C
205 #if defined(BN_MP_AND_C)
206 #define BN_MP_INIT_COPY_C
207 #define BN_MP_CLAMP_C
209 #define BN_MP_CLEAR_C
212 #if defined(BN_MP_CLAMP_C)
215 #if defined(BN_MP_CLEAR_C)
218 #if defined(BN_MP_CLEAR_MULTI_C)
219 #define BN_MP_CLEAR_C
222 #if defined(BN_MP_CMP_C)
223 #define BN_MP_CMP_MAG_C
226 #if defined(BN_MP_CMP_D_C)
229 #if defined(BN_MP_CMP_MAG_C)
232 #if defined(BN_MP_CNT_LSB_C)
233 #define BN_MP_ISZERO_C
236 #if defined(BN_MP_COPY_C)
240 #if defined(BN_MP_COUNT_BITS_C)
243 #if defined(BN_MP_DIV_C)
244 #define BN_MP_ISZERO_C
245 #define BN_MP_CMP_MAG_C
248 #define BN_MP_INIT_MULTI_C
250 #define BN_MP_COUNT_BITS_C
252 #define BN_MP_MUL_2D_C
256 #define BN_MP_DIV_2D_C
258 #define BN_MP_CLEAR_MULTI_C
259 #define BN_MP_INIT_SIZE_C
261 #define BN_MP_INIT_COPY_C
264 #define BN_MP_MUL_D_C
265 #define BN_MP_CLAMP_C
266 #define BN_MP_CLEAR_C
269 #if defined(BN_MP_DIV_2_C)
271 #define BN_MP_CLAMP_C
274 #if defined(BN_MP_DIV_2D_C)
278 #define BN_MP_MOD_2D_C
279 #define BN_MP_CLEAR_C
281 #define BN_MP_CLAMP_C
285 #if defined(BN_MP_DIV_3_C)
286 #define BN_MP_INIT_SIZE_C
287 #define BN_MP_CLAMP_C
289 #define BN_MP_CLEAR_C
292 #if defined(BN_MP_DIV_D_C)
293 #define BN_MP_ISZERO_C
295 #define BN_MP_DIV_2D_C
296 #define BN_MP_DIV_3_C
297 #define BN_MP_INIT_SIZE_C
298 #define BN_MP_CLAMP_C
300 #define BN_MP_CLEAR_C
303 #if defined(BN_MP_DR_IS_MODULUS_C)
306 #if defined(BN_MP_DR_REDUCE_C)
308 #define BN_MP_CLAMP_C
309 #define BN_MP_CMP_MAG_C
310 #define BN_S_MP_SUB_C
313 #if defined(BN_MP_DR_SETUP_C)
316 #if defined(BN_MP_EXCH_C)
319 #if defined(BN_MP_EXPT_D_C)
320 #define BN_MP_INIT_COPY_C
323 #define BN_MP_CLEAR_C
327 #if defined(BN_MP_EXPTMOD_C)
329 #define BN_MP_INVMOD_C
330 #define BN_MP_CLEAR_C
332 #define BN_MP_CLEAR_MULTI_C
333 #define BN_MP_REDUCE_IS_2K_L_C
334 #define BN_S_MP_EXPTMOD_C
335 #define BN_MP_DR_IS_MODULUS_C
336 #define BN_MP_REDUCE_IS_2K_C
337 #define BN_MP_ISODD_C
338 #define BN_MP_EXPTMOD_FAST_C
341 #if defined(BN_MP_EXPTMOD_FAST_C)
342 #define BN_MP_COUNT_BITS_C
344 #define BN_MP_CLEAR_C
345 #define BN_MP_MONTGOMERY_SETUP_C
346 #define BN_FAST_MP_MONTGOMERY_REDUCE_C
347 #define BN_MP_MONTGOMERY_REDUCE_C
348 #define BN_MP_DR_SETUP_C
349 #define BN_MP_DR_REDUCE_C
350 #define BN_MP_REDUCE_2K_SETUP_C
351 #define BN_MP_REDUCE_2K_C
352 #define BN_MP_MONTGOMERY_CALC_NORMALIZATION_C
353 #define BN_MP_MULMOD_C
362 #if defined(BN_MP_EXTEUCLID_C)
363 #define BN_MP_INIT_MULTI_C
366 #define BN_MP_ISZERO_C
372 #define BN_MP_CLEAR_MULTI_C
375 #if defined(BN_MP_FREAD_C)
377 #define BN_MP_S_RMAP_C
378 #define BN_MP_MUL_D_C
379 #define BN_MP_ADD_D_C
380 #define BN_MP_CMP_D_C
383 #if defined(BN_MP_FWRITE_C)
384 #define BN_MP_RADIX_SIZE_C
385 #define BN_MP_TORADIX_C
388 #if defined(BN_MP_GCD_C)
389 #define BN_MP_ISZERO_C
392 #define BN_MP_INIT_COPY_C
393 #define BN_MP_CNT_LSB_C
394 #define BN_MP_DIV_2D_C
395 #define BN_MP_CMP_MAG_C
397 #define BN_S_MP_SUB_C
398 #define BN_MP_MUL_2D_C
399 #define BN_MP_CLEAR_C
402 #if defined(BN_MP_GET_INT_C)
405 #if defined(BN_MP_GROW_C)
408 #if defined(BN_MP_INIT_C)
411 #if defined(BN_MP_INIT_COPY_C)
415 #if defined(BN_MP_INIT_MULTI_C)
418 #define BN_MP_CLEAR_C
421 #if defined(BN_MP_INIT_SET_C)
426 #if defined(BN_MP_INIT_SET_INT_C)
428 #define BN_MP_SET_INT_C
431 #if defined(BN_MP_INIT_SIZE_C)
435 #if defined(BN_MP_INVMOD_C)
436 #define BN_MP_ISZERO_C
437 #define BN_MP_ISODD_C
438 #define BN_FAST_MP_INVMOD_C
439 #define BN_MP_INVMOD_SLOW_C
442 #if defined(BN_MP_INVMOD_SLOW_C)
443 #define BN_MP_ISZERO_C
444 #define BN_MP_INIT_MULTI_C
447 #define BN_MP_ISEVEN_C
449 #define BN_MP_DIV_2_C
450 #define BN_MP_ISODD_C
454 #define BN_MP_CMP_D_C
455 #define BN_MP_CMP_MAG_C
457 #define BN_MP_CLEAR_MULTI_C
460 #if defined(BN_MP_IS_SQUARE_C)
461 #define BN_MP_MOD_D_C
462 #define BN_MP_INIT_SET_INT_C
464 #define BN_MP_GET_INT_C
467 #define BN_MP_CMP_MAG_C
468 #define BN_MP_CLEAR_C
471 #if defined(BN_MP_JACOBI_C)
472 #define BN_MP_CMP_D_C
473 #define BN_MP_ISZERO_C
474 #define BN_MP_INIT_COPY_C
475 #define BN_MP_CNT_LSB_C
476 #define BN_MP_DIV_2D_C
478 #define BN_MP_CLEAR_C
481 #if defined(BN_MP_KARATSUBA_MUL_C)
483 #define BN_MP_INIT_SIZE_C
484 #define BN_MP_CLAMP_C
488 #define BN_MP_CLEAR_C
491 #if defined(BN_MP_KARATSUBA_SQR_C)
492 #define BN_MP_INIT_SIZE_C
493 #define BN_MP_CLAMP_C
496 #define BN_S_MP_ADD_C
499 #define BN_MP_CLEAR_C
502 #if defined(BN_MP_LCM_C)
503 #define BN_MP_INIT_MULTI_C
505 #define BN_MP_CMP_MAG_C
508 #define BN_MP_CLEAR_MULTI_C
511 #if defined(BN_MP_LSHD_C)
516 #if defined(BN_MP_MOD_C)
519 #define BN_MP_CLEAR_C
524 #if defined(BN_MP_MOD_2D_C)
527 #define BN_MP_CLAMP_C
530 #if defined(BN_MP_MOD_D_C)
531 #define BN_MP_DIV_D_C
534 #if defined(BN_MP_MONTGOMERY_CALC_NORMALIZATION_C)
535 #define BN_MP_COUNT_BITS_C
536 #define BN_MP_2EXPT_C
538 #define BN_MP_MUL_2_C
539 #define BN_MP_CMP_MAG_C
540 #define BN_S_MP_SUB_C
543 #if defined(BN_MP_MONTGOMERY_REDUCE_C)
544 #define BN_FAST_MP_MONTGOMERY_REDUCE_C
546 #define BN_MP_CLAMP_C
548 #define BN_MP_CMP_MAG_C
549 #define BN_S_MP_SUB_C
552 #if defined(BN_MP_MONTGOMERY_SETUP_C)
555 #if defined(BN_MP_MUL_C)
556 #define BN_MP_TOOM_MUL_C
557 #define BN_MP_KARATSUBA_MUL_C
558 #define BN_FAST_S_MP_MUL_DIGS_C
559 #define BN_S_MP_MUL_C
560 #define BN_S_MP_MUL_DIGS_C
563 #if defined(BN_MP_MUL_2_C)
567 #if defined(BN_MP_MUL_2D_C)
571 #define BN_MP_CLAMP_C
574 #if defined(BN_MP_MUL_D_C)
576 #define BN_MP_CLAMP_C
579 #if defined(BN_MP_MULMOD_C)
582 #define BN_MP_CLEAR_C
586 #if defined(BN_MP_N_ROOT_C)
590 #define BN_MP_EXPT_D_C
593 #define BN_MP_MUL_D_C
596 #define BN_MP_SUB_D_C
598 #define BN_MP_CLEAR_C
601 #if defined(BN_MP_NEG_C)
603 #define BN_MP_ISZERO_C
606 #if defined(BN_MP_OR_C)
607 #define BN_MP_INIT_COPY_C
608 #define BN_MP_CLAMP_C
610 #define BN_MP_CLEAR_C
613 #if defined(BN_MP_PRIME_FERMAT_C)
614 #define BN_MP_CMP_D_C
616 #define BN_MP_EXPTMOD_C
618 #define BN_MP_CLEAR_C
621 #if defined(BN_MP_PRIME_IS_DIVISIBLE_C)
622 #define BN_MP_MOD_D_C
625 #if defined(BN_MP_PRIME_IS_PRIME_C)
626 #define BN_MP_CMP_D_C
627 #define BN_MP_PRIME_IS_DIVISIBLE_C
630 #define BN_MP_PRIME_MILLER_RABIN_C
631 #define BN_MP_CLEAR_C
634 #if defined(BN_MP_PRIME_MILLER_RABIN_C)
635 #define BN_MP_CMP_D_C
636 #define BN_MP_INIT_COPY_C
637 #define BN_MP_SUB_D_C
638 #define BN_MP_CNT_LSB_C
639 #define BN_MP_DIV_2D_C
640 #define BN_MP_EXPTMOD_C
642 #define BN_MP_SQRMOD_C
643 #define BN_MP_CLEAR_C
646 #if defined(BN_MP_PRIME_NEXT_PRIME_C)
647 #define BN_MP_CMP_D_C
649 #define BN_MP_SUB_D_C
650 #define BN_MP_ISEVEN_C
651 #define BN_MP_MOD_D_C
653 #define BN_MP_ADD_D_C
654 #define BN_MP_PRIME_MILLER_RABIN_C
655 #define BN_MP_CLEAR_C
658 #if defined(BN_MP_PRIME_RABIN_MILLER_TRIALS_C)
661 #if defined(BN_MP_PRIME_RANDOM_EX_C)
662 #define BN_MP_READ_UNSIGNED_BIN_C
663 #define BN_MP_PRIME_IS_PRIME_C
664 #define BN_MP_SUB_D_C
665 #define BN_MP_DIV_2_C
666 #define BN_MP_MUL_2_C
667 #define BN_MP_ADD_D_C
670 #if defined(BN_MP_RADIX_SIZE_C)
671 #define BN_MP_COUNT_BITS_C
672 #define BN_MP_INIT_COPY_C
673 #define BN_MP_ISZERO_C
674 #define BN_MP_DIV_D_C
675 #define BN_MP_CLEAR_C
678 #if defined(BN_MP_RADIX_SMAP_C)
679 #define BN_MP_S_RMAP_C
682 #if defined(BN_MP_RAND_C)
684 #define BN_MP_ADD_D_C
688 #if defined(BN_MP_READ_RADIX_C)
690 #define BN_MP_S_RMAP_C
691 #define BN_MP_RADIX_SMAP_C
692 #define BN_MP_MUL_D_C
693 #define BN_MP_ADD_D_C
694 #define BN_MP_ISZERO_C
697 #if defined(BN_MP_READ_SIGNED_BIN_C)
698 #define BN_MP_READ_UNSIGNED_BIN_C
701 #if defined(BN_MP_READ_UNSIGNED_BIN_C)
704 #define BN_MP_MUL_2D_C
705 #define BN_MP_CLAMP_C
708 #if defined(BN_MP_REDUCE_C)
709 #define BN_MP_REDUCE_SETUP_C
710 #define BN_MP_INIT_COPY_C
713 #define BN_S_MP_MUL_HIGH_DIGS_C
714 #define BN_FAST_S_MP_MUL_HIGH_DIGS_C
715 #define BN_MP_MOD_2D_C
716 #define BN_S_MP_MUL_DIGS_C
718 #define BN_MP_CMP_D_C
723 #define BN_S_MP_SUB_C
724 #define BN_MP_CLEAR_C
727 #if defined(BN_MP_REDUCE_2K_C)
729 #define BN_MP_COUNT_BITS_C
730 #define BN_MP_DIV_2D_C
731 #define BN_MP_MUL_D_C
732 #define BN_S_MP_ADD_C
733 #define BN_MP_CMP_MAG_C
734 #define BN_S_MP_SUB_C
735 #define BN_MP_CLEAR_C
738 #if defined(BN_MP_REDUCE_2K_L_C)
740 #define BN_MP_COUNT_BITS_C
741 #define BN_MP_DIV_2D_C
743 #define BN_S_MP_ADD_C
744 #define BN_MP_CMP_MAG_C
745 #define BN_S_MP_SUB_C
746 #define BN_MP_CLEAR_C
749 #if defined(BN_MP_REDUCE_2K_SETUP_C)
751 #define BN_MP_COUNT_BITS_C
752 #define BN_MP_2EXPT_C
753 #define BN_MP_CLEAR_C
754 #define BN_S_MP_SUB_C
757 #if defined(BN_MP_REDUCE_2K_SETUP_L_C)
759 #define BN_MP_2EXPT_C
760 #define BN_MP_COUNT_BITS_C
761 #define BN_S_MP_SUB_C
762 #define BN_MP_CLEAR_C
765 #if defined(BN_MP_REDUCE_IS_2K_C)
766 #define BN_MP_REDUCE_2K_C
767 #define BN_MP_COUNT_BITS_C
770 #if defined(BN_MP_REDUCE_IS_2K_L_C)
773 #if defined(BN_MP_REDUCE_SETUP_C)
774 #define BN_MP_2EXPT_C
778 #if defined(BN_MP_RSHD_C)
782 #if defined(BN_MP_SET_C)
786 #if defined(BN_MP_SET_INT_C)
788 #define BN_MP_MUL_2D_C
789 #define BN_MP_CLAMP_C
792 #if defined(BN_MP_SHRINK_C)
795 #if defined(BN_MP_SIGNED_BIN_SIZE_C)
796 #define BN_MP_UNSIGNED_BIN_SIZE_C
799 #if defined(BN_MP_SQR_C)
800 #define BN_MP_TOOM_SQR_C
801 #define BN_MP_KARATSUBA_SQR_C
802 #define BN_FAST_S_MP_SQR_C
803 #define BN_S_MP_SQR_C
806 #if defined(BN_MP_SQRMOD_C)
809 #define BN_MP_CLEAR_C
813 #if defined(BN_MP_SQRT_C)
814 #define BN_MP_N_ROOT_C
815 #define BN_MP_ISZERO_C
817 #define BN_MP_INIT_COPY_C
821 #define BN_MP_DIV_2_C
822 #define BN_MP_CMP_MAG_C
824 #define BN_MP_CLEAR_C
827 #if defined(BN_MP_SUB_C)
828 #define BN_S_MP_ADD_C
829 #define BN_MP_CMP_MAG_C
830 #define BN_S_MP_SUB_C
833 #if defined(BN_MP_SUB_D_C)
835 #define BN_MP_ADD_D_C
836 #define BN_MP_CLAMP_C
839 #if defined(BN_MP_SUBMOD_C)
842 #define BN_MP_CLEAR_C
846 #if defined(BN_MP_TO_SIGNED_BIN_C)
847 #define BN_MP_TO_UNSIGNED_BIN_C
850 #if defined(BN_MP_TO_SIGNED_BIN_N_C)
851 #define BN_MP_SIGNED_BIN_SIZE_C
852 #define BN_MP_TO_SIGNED_BIN_C
855 #if defined(BN_MP_TO_UNSIGNED_BIN_C)
856 #define BN_MP_INIT_COPY_C
857 #define BN_MP_ISZERO_C
858 #define BN_MP_DIV_2D_C
859 #define BN_MP_CLEAR_C
862 #if defined(BN_MP_TO_UNSIGNED_BIN_N_C)
863 #define BN_MP_UNSIGNED_BIN_SIZE_C
864 #define BN_MP_TO_UNSIGNED_BIN_C
867 #if defined(BN_MP_TOOM_MUL_C)
868 #define BN_MP_INIT_MULTI_C
869 #define BN_MP_MOD_2D_C
873 #define BN_MP_MUL_2_C
876 #define BN_MP_DIV_2_C
877 #define BN_MP_MUL_2D_C
878 #define BN_MP_MUL_D_C
879 #define BN_MP_DIV_3_C
881 #define BN_MP_CLEAR_MULTI_C
884 #if defined(BN_MP_TOOM_SQR_C)
885 #define BN_MP_INIT_MULTI_C
886 #define BN_MP_MOD_2D_C
890 #define BN_MP_MUL_2_C
893 #define BN_MP_DIV_2_C
894 #define BN_MP_MUL_2D_C
895 #define BN_MP_MUL_D_C
896 #define BN_MP_DIV_3_C
898 #define BN_MP_CLEAR_MULTI_C
901 #if defined(BN_MP_TORADIX_C)
902 #define BN_MP_ISZERO_C
903 #define BN_MP_INIT_COPY_C
904 #define BN_MP_DIV_D_C
905 #define BN_MP_CLEAR_C
906 #define BN_MP_S_RMAP_C
909 #if defined(BN_MP_TORADIX_N_C)
910 #define BN_MP_ISZERO_C
911 #define BN_MP_INIT_COPY_C
912 #define BN_MP_DIV_D_C
913 #define BN_MP_CLEAR_C
914 #define BN_MP_S_RMAP_C
917 #if defined(BN_MP_UNSIGNED_BIN_SIZE_C)
918 #define BN_MP_COUNT_BITS_C
921 #if defined(BN_MP_XOR_C)
922 #define BN_MP_INIT_COPY_C
923 #define BN_MP_CLAMP_C
925 #define BN_MP_CLEAR_C
928 #if defined(BN_MP_ZERO_C)
931 #if defined(BN_PRIME_TAB_C)
934 #if defined(BN_REVERSE_C)
937 #if defined(BN_S_MP_ADD_C)
939 #define BN_MP_CLAMP_C
942 #if defined(BN_S_MP_EXPTMOD_C)
943 #define BN_MP_COUNT_BITS_C
945 #define BN_MP_CLEAR_C
946 #define BN_MP_REDUCE_SETUP_C
947 #define BN_MP_REDUCE_C
948 #define BN_MP_REDUCE_2K_SETUP_L_C
949 #define BN_MP_REDUCE_2K_L_C
958 #if defined(BN_S_MP_MUL_DIGS_C)
959 #define BN_FAST_S_MP_MUL_DIGS_C
960 #define BN_MP_INIT_SIZE_C
961 #define BN_MP_CLAMP_C
963 #define BN_MP_CLEAR_C
966 #if defined(BN_S_MP_MUL_HIGH_DIGS_C)
967 #define BN_FAST_S_MP_MUL_HIGH_DIGS_C
968 #define BN_MP_INIT_SIZE_C
969 #define BN_MP_CLAMP_C
971 #define BN_MP_CLEAR_C
974 #if defined(BN_S_MP_SQR_C)
975 #define BN_MP_INIT_SIZE_C
976 #define BN_MP_CLAMP_C
978 #define BN_MP_CLEAR_C
981 #if defined(BN_S_MP_SUB_C)
983 #define BN_MP_CLAMP_C
986 #if defined(BNCORE_C)
992 #include "tma_superclass.h"
993 #include "tma_class.h"