Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(550)

Side by Side Diff: mozilla/security/nss/lib/util/ciferfam.h

Issue 14249009: Change the NSS and NSPR source tree to the new directory structure to be (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/nss/
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « mozilla/security/nss/lib/util/base64.h ('k') | mozilla/security/nss/lib/util/derdec.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
5 /*
6 * ciferfam.h - cipher familie IDs used for configuring ciphers for export
7 * control
8 *
9 * $Id: ciferfam.h,v 1.6 2012/04/25 14:50:16 gerv%gerv.net Exp $
10 */
11
12 #ifndef _CIFERFAM_H_
13 #define _CIFERFAM_H_
14
15 #include "utilrename.h"
16 /* Cipher Suite "Families" */
17 #define CIPHER_FAMILY_PKCS12 "PKCS12"
18 #define CIPHER_FAMILY_SMIME "SMIME"
19 #define CIPHER_FAMILY_SSL2 "SSLv2"
20 #define CIPHER_FAMILY_SSL3 "SSLv3"
21 #define CIPHER_FAMILY_SSL "SSL"
22 #define CIPHER_FAMILY_ALL ""
23 #define CIPHER_FAMILY_UNKNOWN "UNKNOWN"
24
25 #define CIPHER_FAMILYID_MASK 0xFFFF0000L
26 #define CIPHER_FAMILYID_SSL 0x00000000L
27 #define CIPHER_FAMILYID_SMIME 0x00010000L
28 #define CIPHER_FAMILYID_PKCS12 0x00020000L
29
30 /* SMIME "Cipher Suites" */
31 /*
32 * Note that it is assumed that the cipher number itself can be used
33 * as a bit position in a mask, and that mask is currently 32 bits wide.
34 * So, if you want to add a cipher that is greater than 0037, secmime.c
35 * needs to be made smarter at the same time.
36 */
37 #define SMIME_RC2_CBC_40 (CIPHER_FAMILYID_SMIME | 0001)
38 #define SMIME_RC2_CBC_64 (CIPHER_FAMILYID_SMIME | 0002)
39 #define SMIME_RC2_CBC_128 (CIPHER_FAMILYID_SMIME | 0003)
40 #define SMIME_DES_CBC_56 (CIPHER_FAMILYID_SMIME | 0011)
41 #define SMIME_DES_EDE3_168 (CIPHER_FAMILYID_SMIME | 0012)
42 #define SMIME_AES_CBC_128 (CIPHER_FAMILYID_SMIME | 0013)
43 #define SMIME_AES_CBC_256 (CIPHER_FAMILYID_SMIME | 0014)
44 #define SMIME_RC5PAD_64_16_40 (CIPHER_FAMILYID_SMIME | 0021)
45 #define SMIME_RC5PAD_64_16_64 (CIPHER_FAMILYID_SMIME | 0022)
46 #define SMIME_RC5PAD_64_16_128 (CIPHER_FAMILYID_SMIME | 0023)
47 #define SMIME_FORTEZZA (CIPHER_FAMILYID_SMIME | 0031)
48
49 /* PKCS12 "Cipher Suites" */
50
51 #define PKCS12_RC2_CBC_40 (CIPHER_FAMILYID_PKCS12 | 0001)
52 #define PKCS12_RC2_CBC_128 (CIPHER_FAMILYID_PKCS12 | 0002)
53 #define PKCS12_RC4_40 (CIPHER_FAMILYID_PKCS12 | 0011)
54 #define PKCS12_RC4_128 (CIPHER_FAMILYID_PKCS12 | 0012)
55 #define PKCS12_DES_56 (CIPHER_FAMILYID_PKCS12 | 0021)
56 #define PKCS12_DES_EDE3_168 (CIPHER_FAMILYID_PKCS12 | 0022)
57
58 /* SMIME version numbers are negative, to avoid colliding with SSL versions */
59 #define SMIME_LIBRARY_VERSION_1_0 -0x0100
60
61 #endif /* _CIFERFAM_H_ */
OLDNEW
« no previous file with comments | « mozilla/security/nss/lib/util/base64.h ('k') | mozilla/security/nss/lib/util/derdec.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698