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