]> git.saurik.com Git - apple/security.git/blame - OSX/include/security_cryptkit/CipherFileDES.h
Security-57336.1.9.tar.gz
[apple/security.git] / OSX / include / security_cryptkit / CipherFileDES.h
CommitLineData
d8f41ccd 1/* Copyright (c) 1998,2011,2014 Apple Inc. All Rights Reserved.
b1ab9ed8
A
2 *
3 * NOTICE: USE OF THE MATERIALS ACCOMPANYING THIS NOTICE IS SUBJECT
4 * TO THE TERMS OF THE SIGNED "FAST ELLIPTIC ENCRYPTION (FEE) REFERENCE
d8f41ccd
A
5 * SOURCE CODE EVALUATION AGREEMENT" BETWEEN APPLE, INC. AND THE
6 * ORIGINAL LICENSEE THAT OBTAINED THESE MATERIALS FROM APPLE,
b1ab9ed8
A
7 * INC. ANY USE OF THESE MATERIALS NOT PERMITTED BY SUCH AGREEMENT WILL
8 * EXPOSE YOU TO LIABILITY.
9 ***************************************************************************
10 *
11 * CipherFileDES.h - DES-related cipherfile support
12 *
13 * Revision History
14 * ----------------
d8f41ccd 15 * 18 Feb 97 at Apple
b1ab9ed8
A
16 * Created.
17 */
18
19#ifndef _CK_CFILEDES_H_
20#define _CK_CFILEDES_H_
21
22#include "ckconfig.h"
23
24#if CRYPTKIT_CIPHERFILE_ENABLE
25
26#include "Crypt.h"
27#include "feeCipherFile.h"
28#include "CipherFileTypes.h"
29
30#ifdef __cplusplus
31extern "C" {
32#endif
33
34feeReturn createRandDES(feePubKey sendPrivKey,
35 feePubKey recvPubKey,
36 const unsigned char *plainText,
37 unsigned plainTextLen,
38 int genSig, // 1 ==> generate signature
39 unsigned userData, // for caller's convenience
40 feeCipherFile *cipherFile); // RETURNED if successful
41feeReturn decryptRandDES(feeCipherFile cipherFile,
42 feePubKey recvPrivKey,
43 feePubKey sendPubKey,
44 unsigned char **plainText, // RETURNED
45 unsigned *plainTextLen, // RETURNED
46 feeSigStatus *sigStatus); // RETURNED
47feeReturn createPubDES(feePubKey sendPrivKey, // required
48 feePubKey recvPubKey, // required
49 const unsigned char *plainText,
50 unsigned plainTextLen,
51 int genSig, // 1 ==> generate signature
52 unsigned userData, // for caller's convenience
53 feeCipherFile *cipherFile); // RETURNED if successful
54feeReturn decryptPubDES(feeCipherFile cipherFile,
55 feePubKey recvPrivKey,
56 feePubKey sendPubKey, // optional
57 unsigned char **plainText, // RETURNED
58 unsigned *plainTextLen, // RETURNED
59 feeSigStatus *sigStatus); // RETURNED
60
61#ifdef __cplusplus
62}
63#endif
64
65#endif /* CRYPTKIT_CIPHERFILE_ENABLE*/
66
67#endif /*_CK_CFILEDES_H_*/