2
* The contents of this file are subject to the Mozilla Public
3
* License Version 1.1 (the "License"); you may not use this file
4
* except in compliance with the License. You may obtain a copy of
5
* the License at http://www.mozilla.org/MPL/
7
* Software distributed under the License is distributed on an "AS
8
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
9
* implied. See the License for the specific language governing
10
* rights and limitations under the License.
12
* The Original Code is the Netscape security libraries.
14
* The Initial Developer of the Original Code is Netscape
15
* Communications Corporation. Portions created by Netscape are
16
* Copyright (C) 1994-2000 Netscape Communications Corporation. All
21
* Alternatively, the contents of this file may be used under the
22
* terms of the GNU General Public License Version 2 or later (the
23
* "GPL"), in which case the provisions of the GPL are applicable
24
* instead of those above. If you wish to allow use of your
25
* version of this file only under the terms of the GPL and not to
26
* allow others to use your version of this file under the MPL,
27
* indicate your decision by deleting the provisions above and
28
* replace them with the notice and other provisions required by
29
* the GPL. If you do not delete the provisions above, a recipient
30
* may use your version of this file under either the MPL or the
35
* ciferfam.h - cipher familie IDs used for configuring ciphers for export
38
* $Id: ciferfam.h,v 1.1 2000/03/31 19:37:29 relyea%netscape.com Exp $
44
/* Cipher Suite "Families" */
45
#define CIPHER_FAMILY_PKCS12 "PKCS12"
46
#define CIPHER_FAMILY_SMIME "SMIME"
47
#define CIPHER_FAMILY_SSL2 "SSLv2"
48
#define CIPHER_FAMILY_SSL3 "SSLv3"
49
#define CIPHER_FAMILY_SSL "SSL"
50
#define CIPHER_FAMILY_ALL ""
51
#define CIPHER_FAMILY_UNKNOWN "UNKNOWN"
53
#define CIPHER_FAMILYID_MASK 0xFFFF0000L
54
#define CIPHER_FAMILYID_SSL 0x00000000L
55
#define CIPHER_FAMILYID_SMIME 0x00010000L
56
#define CIPHER_FAMILYID_PKCS12 0x00020000L
58
/* SMIME "Cipher Suites" */
60
* Note that it is assumed that the cipher number itself can be used
61
* as a bit position in a mask, and that mask is currently 32 bits wide.
62
* So, if you want to add a cipher that is greater than 0033, secmime.c
63
* needs to be made smarter at the same time.
65
#define SMIME_RC2_CBC_40 (CIPHER_FAMILYID_SMIME | 0001)
66
#define SMIME_RC2_CBC_64 (CIPHER_FAMILYID_SMIME | 0002)
67
#define SMIME_RC2_CBC_128 (CIPHER_FAMILYID_SMIME | 0003)
68
#define SMIME_DES_CBC_56 (CIPHER_FAMILYID_SMIME | 0011)
69
#define SMIME_DES_EDE3_168 (CIPHER_FAMILYID_SMIME | 0012)
70
#define SMIME_RC5PAD_64_16_40 (CIPHER_FAMILYID_SMIME | 0021)
71
#define SMIME_RC5PAD_64_16_64 (CIPHER_FAMILYID_SMIME | 0022)
72
#define SMIME_RC5PAD_64_16_128 (CIPHER_FAMILYID_SMIME | 0023)
73
#define SMIME_FORTEZZA (CIPHER_FAMILYID_SMIME | 0031)
75
/* PKCS12 "Cipher Suites" */
77
#define PKCS12_RC2_CBC_40 (CIPHER_FAMILYID_PKCS12 | 0001)
78
#define PKCS12_RC2_CBC_128 (CIPHER_FAMILYID_PKCS12 | 0002)
79
#define PKCS12_RC4_40 (CIPHER_FAMILYID_PKCS12 | 0011)
80
#define PKCS12_RC4_128 (CIPHER_FAMILYID_PKCS12 | 0012)
81
#define PKCS12_DES_56 (CIPHER_FAMILYID_PKCS12 | 0021)
82
#define PKCS12_DES_EDE3_168 (CIPHER_FAMILYID_PKCS12 | 0022)
84
/* SMIME version numbers are negative, to avoid colliding with SSL versions */
85
#define SMIME_LIBRARY_VERSION_1_0 -0x0100
87
#endif /* _CIFERFAM_H_ */