]>
git.saurik.com Git - apple/security.git/blob - OSX/libsecurity_apple_csp/open_ssl/openssl/opensslconf_legacy.h
2 * Copyright (c) 2000-2001,2011,2014 Apple Inc. All Rights Reserved.
4 * The contents of this file constitute Original Code as defined in and are
5 * subject to the Apple Public Source License Version 1.2 (the 'License').
6 * You may not use this file except in compliance with the License. Please obtain
7 * a copy of the License at http://www.apple.com/publicsource and read it before
10 * This Original Code and all software distributed under the License are
11 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS
12 * OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, INCLUDING WITHOUT
13 * LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
14 * PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. Please see the License for the
15 * specific language governing rights and limitations under the License.
20 * Copyright (c) 2000-2002,2011,2014 Apple Inc. All Rights Reserved.
22 * The contents of this file constitute Original Code as defined in and are
23 * subject to the Apple Public Source License Version 1.2 (the 'License').
24 * You may not use this file except in compliance with the License. Please obtain
25 * a copy of the License at http://www.apple.com/publicsource and read it before
28 * This Original Code and all software distributed under the License are
29 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS
30 * OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, INCLUDING WITHOUT
31 * LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
32 * PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. Please see the License for the
33 * specific language governing rights and limitations under the License.
37 * opensslconf_legacy.h - hand-rolled config #defines for openssl code used in AppleCSP
38 * Written by Doug Mitchell 4/3/2001
40 #ifndef _OPENSSL_CONF_H_
41 #define _OPENSSL_CONF_H_
43 #include <Security/cssmtype.h> /* for uint32, etc. */
50 * Flags to disable a lot of code we don't need.
52 #define _OPENSSL_APPLE_CDSA_ 1
65 /* disable the static callback ptrs in cryptlib.c */
66 #define CRYPTO_CALLBACK_ENABLE 0
68 /* disable the BN_{set,get}_params mechanism, unused */
69 #define BN_PARAMS_ENABLE 0
71 typedef uint32 RC2_INT
;
72 typedef uint32 RC4_INT
;
74 /* the following two need calibration and lots of testing; see rc4_enc.c... */
78 typedef uint32 RC5_32_INT
;
79 typedef uint32 MD2_INT
;
81 #if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
82 #define CONFIG_HEADER_BF_LOCL_H
84 #endif /* HEADER_BF_LOCL_H */
87 * FIXME - this could certainly use some tweaking
89 /* Should we define BN_DIV2W here? */
91 /* Only one for the following should be defined */
92 /* The prime number generation stuff may not work when
93 * EIGHT_BIT but I don't care since I've only used this mode
94 * for debuging the bignum libraries */
97 * Using 64 bit results in an 8% speedup for RSA sign, but a 3%
98 * slowdown for RSA verify on a G4 cubeĆcompared to 32 bit.
101 #undef SIXTY_FOUR_BIT_LONG
102 #undef SIXTY_FOUR_BIT
103 #define THIRTY_TWO_BIT
112 #endif /* _OPENSSL_CONF_H_ */