]> git.saurik.com Git - apple/security.git/blob - OSX/libsecurity_cryptkit/lib/feeFunctions.h
Security-57740.1.18.tar.gz
[apple/security.git] / OSX / libsecurity_cryptkit / lib / feeFunctions.h
1 /* Copyright (c) 1998,2011-2012,2014 Apple Inc. All Rights Reserved.
2 *
3 * NOTICE: USE OF THE MATERIALS ACCOMPANYING THIS NOTICE IS SUBJECT
4 * TO THE TERMS OF THE SIGNED "FAST ELLIPTIC ENCRYPTION (FEE) REFERENCE
5 * SOURCE CODE EVALUATION AGREEMENT" BETWEEN APPLE, INC. AND THE
6 * ORIGINAL LICENSEE THAT OBTAINED THESE MATERIALS FROM APPLE,
7 * INC. ANY USE OF THESE MATERIALS NOT PERMITTED BY SUCH AGREEMENT WILL
8 * EXPOSE YOU TO LIABILITY.
9 ***************************************************************************
10 *
11 * feeFunctions.h - general public function declarations
12 *
13 * Revision History
14 * ----------------
15 * 8/25/98 ap
16 * Fixed previous check-in comment.
17 * 8/24/98 ap
18 * Added tags around #endif comment.
19 * 23 Mar 98 at Apple
20 * Added initCryptKit().
21 * 27 Aug 96 at NeXT
22 * Created.
23 */
24
25 #ifndef _CK_FEEFUNCTIONS_H_
26 #define _CK_FEEFUNCTIONS_H_
27
28 #ifdef macintosh
29 #include <feeTypes.h>
30 #else
31 #include <security_cryptkit/feeTypes.h>
32 #endif
33
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37
38 /*
39 * One-time only init of CryptKit library.
40 */
41 void initCryptKit(void);
42
43 /*
44 * Shutdown.
45 */
46 void terminateCryptKit(void);
47
48 #if defined(NeXT) && !defined(WIN32)
49
50 #define PHRASELEN 128
51
52 /*
53 * Prompt for password, get it in secure manner. Max password length is
54 * PHRASELEN. NEXTSTEP only.
55 */
56 extern void getpassword(const char *prompt, char *pbuf);
57
58 #endif /* NeXT */
59
60 /*
61 * obtain a string describing a feeReturn.
62 */
63 extern const char *feeReturnString(feeReturn frtn);
64
65 #ifdef __cplusplus
66 }
67 #endif
68
69 #endif /*_CK_FEEFUNCTIONS_H_*/