A library for setting up Secure Socket Layer (SSL) connections and verifying remote hosts using certificates. Contains only the source files for mbed platform implementation of the library.

Dependents:   HTTPClient-SSL HTTPClient-SSL HTTPClient-SSL HTTPClient-SSL

Committer:
Mike Fiore
Date:
Mon Mar 23 16:51:07 2015 -0500
Revision:
6:cf58d49e1a86
Parent:
0:b86d15c6ba29
fix whitespace in sha512.c

Who changed what in which revision?

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