Remove building with NOCRYPTO option
[minix.git] / crypto / external / bsd / heimdal / dist / lib / hcrypto / libtommath / mtest / mpi-config.h
blob141c40f393c4d8fac82bf6c0782227c82915312a
1 /* $NetBSD: mpi-config.h,v 1.1.1.3 2014/04/24 12:45:39 pettai Exp $ */
3 /* Default configuration for MPI library */
4 /* Id: mpi-config.h,v 1.2 2005/05/05 14:38:47 tom Exp */
6 #ifndef MPI_CONFIG_H_
7 #define MPI_CONFIG_H_
9 /*
10 For boolean options,
11 0 = no
12 1 = yes
14 Other options are documented individually.
18 #ifndef MP_IOFUNC
19 #define MP_IOFUNC 0 /* include mp_print() ? */
20 #endif
22 #ifndef MP_MODARITH
23 #define MP_MODARITH 1 /* include modular arithmetic ? */
24 #endif
26 #ifndef MP_NUMTH
27 #define MP_NUMTH 1 /* include number theoretic functions? */
28 #endif
30 #ifndef MP_LOGTAB
31 #define MP_LOGTAB 1 /* use table of logs instead of log()? */
32 #endif
34 #ifndef MP_MEMSET
35 #define MP_MEMSET 1 /* use memset() to zero buffers? */
36 #endif
38 #ifndef MP_MEMCPY
39 #define MP_MEMCPY 1 /* use memcpy() to copy buffers? */
40 #endif
42 #ifndef MP_CRYPTO
43 #define MP_CRYPTO 1 /* erase memory on free? */
44 #endif
46 #ifndef MP_ARGCHK
48 0 = no parameter checks
49 1 = runtime checks, continue execution and return an error to caller
50 2 = assertions; dump core on parameter errors
52 #define MP_ARGCHK 2 /* how to check input arguments */
53 #endif
55 #ifndef MP_DEBUG
56 #define MP_DEBUG 0 /* print diagnostic output? */
57 #endif
59 #ifndef MP_DEFPREC
60 #define MP_DEFPREC 64 /* default precision, in digits */
61 #endif
63 #ifndef MP_MACRO
64 #define MP_MACRO 1 /* use macros for frequent calls? */
65 #endif
67 #ifndef MP_SQUARE
68 #define MP_SQUARE 1 /* use separate squaring code? */
69 #endif
71 #ifndef MP_PTAB_SIZE
73 When building mpprime.c, we build in a table of small prime
74 values to use for primality testing. The more you include,
75 the more space they take up. See primes.c for the possible
76 values (currently 16, 32, 64, 128, 256, and 6542)
78 #define MP_PTAB_SIZE 128 /* how many built-in primes? */
79 #endif
81 #ifndef MP_COMPAT_MACROS
82 #define MP_COMPAT_MACROS 1 /* define compatibility macros? */
83 #endif
85 #endif /* ifndef MPI_CONFIG_H_ */
88 /* crc==3287762869, version==2, Sat Feb 02 06:43:53 2002 */
90 /* Source: /cvs/libtom/libtommath/mtest/mpi-config.h,v */
91 /* Revision: 1.2 */
92 /* Date: 2005/05/05 14:38:47 */