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