]> git.saurik.com Git - apple/security.git/blob - OSX/libsecurity_cryptkit/lib/ckconfig.h
Security-59754.80.3.tar.gz
[apple/security.git] / OSX / libsecurity_cryptkit / lib / ckconfig.h
1 /*
2 File: ckconfig.h
3
4 Contains: Common config info.
5
6
7 Copyright: Copyright (c) 1998,2011,2014 Apple Inc.
8 All rights reserved.
9
10 Change History (most recent first):
11
12 <7> 10/06/98 ap Changed to compile with C++.
13
14 To Do:
15 */
16
17 /* Copyright (c) 1998,2011,2014 Apple Inc. All Rights Reserved.
18 *
19 * NOTICE: USE OF THE MATERIALS ACCOMPANYING THIS NOTICE IS SUBJECT
20 * TO THE TERMS OF THE SIGNED "FAST ELLIPTIC ENCRYPTION (FEE) REFERENCE
21 * SOURCE CODE EVALUATION AGREEMENT" BETWEEN APPLE, INC. AND THE
22 * ORIGINAL LICENSEE THAT OBTAINED THESE MATERIALS FROM APPLE,
23 * INC. ANY USE OF THESE MATERIALS NOT PERMITTED BY SUCH AGREEMENT WILL
24 * EXPOSE YOU TO LIABILITY.
25 ***************************************************************************
26 */
27
28 #ifndef _CK_CONFIG_H_
29 #define _CK_CONFIG_H_
30
31 /*
32 * Common build flags.
33 */
34 #define DEBUG_ENGINE 0
35
36 /*
37 * These CK_*_BUILD options used to control feature flags for different build strategies. As we
38 * only build in Security.framework (AppleCSP) these days, code not needed for this use case has been removed.
39 * For posterity, the feature flags of CK_SECURITY_BUILD will be described below.
40 */
41
42 #ifdef CK_SECURITY_BUILD
43 /*
44 * Standard Security.framework build
45
46 #define CRYPTKIT_DER_ENABLE 1 // DER encoding support
47 #define CRYPTKIT_LIBMD_DIGEST 1 // use CommonCrypto digests
48 #define CRYPTKIT_ELL_PROJ_ENABLE 1 // elliptic projection
49 #define CRYPTKIT_ECDSA_ENABLE 1 // ECDSA (requires ELL_PROJ_ENABLE)
50 #define CRYPTKIT_CIPHERFILE_ENABLE 0 // cipherfile w/symmetric encryption
51 #define CRYPTKIT_SYMMETRIC_ENABLE 0 // symmetric encryption
52 #define CRYPTKIT_ASYMMETRIC_ENABLE 1 // asymmetric encryption
53 #define CRYPTKIT_MD5_ENABLE 1 // MD5 hash
54 #define CRYPTKIT_SHA1_ENABLE 1 // SHA1 hash - needed for GHMAX_LEGACY
55 #define CRYPTKIT_HMAC_LEGACY 1
56 #define CRYPTKIT_KEY_EXCHANGE 0 // FEE key exchange
57 #define CRYPTKIT_HIGH_LEVEL_SIG 0 // high level one-shot signature
58 #define CRYPTKIT_GIANT_STACK_ENABLE 0 // cache of giants
59 */
60
61 #else
62
63 #error You must supply a build configuration.
64 #endif
65
66 #endif /* _CK_CONFIG_H_ */