wolfSSL SSL/TLS library, support up to TLS1.3

Dependents:   CyaSSL-Twitter-OAuth4Tw Example-client-tls-cert TwitterReader TweetTest ... more

Committer:
wolfSSL
Date:
Sat Aug 18 22:20:43 2018 +0000
Revision:
15:117db924cf7c
Child:
16:8e0d178b1d1e
wolfSSL 3.15.3

Who changed what in which revision?

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