1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/security/nss/lib/freebl/mpi/mpi-config.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,78 @@ 1.4 +/* Default configuration for MPI library 1.5 + * 1.6 + * This Source Code Form is subject to the terms of the Mozilla Public 1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.9 + 1.10 +#ifndef MPI_CONFIG_H_ 1.11 +#define MPI_CONFIG_H_ 1.12 + 1.13 +/* 1.14 + For boolean options, 1.15 + 0 = no 1.16 + 1 = yes 1.17 + 1.18 + Other options are documented individually. 1.19 + 1.20 + */ 1.21 + 1.22 +#ifndef MP_IOFUNC 1.23 +#define MP_IOFUNC 0 /* include mp_print() ? */ 1.24 +#endif 1.25 + 1.26 +#ifndef MP_MODARITH 1.27 +#define MP_MODARITH 1 /* include modular arithmetic ? */ 1.28 +#endif 1.29 + 1.30 +#ifndef MP_NUMTH 1.31 +#define MP_NUMTH 1 /* include number theoretic functions? */ 1.32 +#endif 1.33 + 1.34 +#ifndef MP_LOGTAB 1.35 +#define MP_LOGTAB 1 /* use table of logs instead of log()? */ 1.36 +#endif 1.37 + 1.38 +#ifndef MP_MEMSET 1.39 +#define MP_MEMSET 1 /* use memset() to zero buffers? */ 1.40 +#endif 1.41 + 1.42 +#ifndef MP_MEMCPY 1.43 +#define MP_MEMCPY 1 /* use memcpy() to copy buffers? */ 1.44 +#endif 1.45 + 1.46 +#ifndef MP_CRYPTO 1.47 +#define MP_CRYPTO 1 /* erase memory on free? */ 1.48 +#endif 1.49 + 1.50 +#ifndef MP_ARGCHK 1.51 +/* 1.52 + 0 = no parameter checks 1.53 + 1 = runtime checks, continue execution and return an error to caller 1.54 + 2 = assertions; dump core on parameter errors 1.55 + */ 1.56 +#ifdef DEBUG 1.57 +#define MP_ARGCHK 2 /* how to check input arguments */ 1.58 +#else 1.59 +#define MP_ARGCHK 1 /* how to check input arguments */ 1.60 +#endif 1.61 +#endif 1.62 + 1.63 +#ifndef MP_DEBUG 1.64 +#define MP_DEBUG 0 /* print diagnostic output? */ 1.65 +#endif 1.66 + 1.67 +#ifndef MP_DEFPREC 1.68 +#define MP_DEFPREC 64 /* default precision, in digits */ 1.69 +#endif 1.70 + 1.71 +#ifndef MP_MACRO 1.72 +#define MP_MACRO 1 /* use macros for frequent calls? */ 1.73 +#endif 1.74 + 1.75 +#ifndef MP_SQUARE 1.76 +#define MP_SQUARE 1 /* use separate squaring code? */ 1.77 +#endif 1.78 + 1.79 +#endif /* ifndef MPI_CONFIG_H_ */ 1.80 + 1.81 +