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