]>
git.saurik.com Git - apple/security.git/blob - OSX/include/security_cryptkit/feeFunctions.h
1 /* Copyright (c) 1998,2011-2012,2014 Apple Inc. All Rights Reserved.
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 ***************************************************************************
11 * feeFunctions.h - general public function declarations
16 * Fixed previous check-in comment.
18 * Added tags around #endif comment.
20 * Added initCryptKit().
25 #ifndef _CK_FEEFUNCTIONS_H_
26 #define _CK_FEEFUNCTIONS_H_
31 #include <security_cryptkit/feeTypes.h>
39 * One-time only init of CryptKit library.
41 void initCryptKit(void);
46 void terminateCryptKit(void);
48 #if defined(NeXT) && !defined(WIN32)
53 * Prompt for password, get it in secure manner. Max password length is
54 * PHRASELEN. NEXTSTEP only.
56 extern void getpassword(const char *prompt
, char *pbuf
);
61 * obtain a string describing a feeReturn.
63 extern const char *feeReturnString(feeReturn frtn
);
69 #endif /*_CK_FEEFUNCTIONS_H_*/