]>
git.saurik.com Git - apple/security.git/blob - OSX/include/security_cryptkit/CipherFileTypes.h
e0307dc93edda77a035f007464235453e50cd4fb
1 /* Copyright (c) 1998,2011,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 ***************************************************************************
16 * Added tags around #endif comment.
21 #ifndef _CK_CFILETYPES_H_
22 #define _CK_CFILETYPES_H_
26 #if CRYPTKIT_CIPHERFILE_ENABLE
28 #include "feeCipherFile.h"
31 * Type of encryption used in a CipherFile.
36 * DES encryption using pad created via public key exchange; sender's
37 * public key is embedded.
42 * Random DES key used for encryption. The DES key is encrypted via
43 * FEEDExp using recipient's public key; the result is embedded in the
44 * CipherFile. Sender's public key is embedded only if
45 * signature is generated.
50 * 1:1 FEED encryption. Sender's public key is embedded.
55 * 2:1 FEED encryption. Sender's public key is embedded only if signature
61 * User-defined cipherfile.
69 * Signature status upon decryption of a CipherFile.
73 SS_NotPresent
= 0, // Signature not present.
74 SS_PresentValid
= 1, // Signature present and valid.
75 SS_PresentNoKey
= 2, // Signature present, but no public key
76 // available to validate it.
77 SS_PresentInvalid
= 3 // Signature present and invalid.
81 #endif /* CRYPTKIT_CIPHERFILE_ENABLE */
83 #endif /* _CK_CFILETYPES_H_ */