Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 4 | |
michael@0 | 5 | /* |
michael@0 | 6 | * ciferfam.h - cipher familie IDs used for configuring ciphers for export |
michael@0 | 7 | * control |
michael@0 | 8 | */ |
michael@0 | 9 | |
michael@0 | 10 | #ifndef _CIFERFAM_H_ |
michael@0 | 11 | #define _CIFERFAM_H_ |
michael@0 | 12 | |
michael@0 | 13 | #include "utilrename.h" |
michael@0 | 14 | /* Cipher Suite "Families" */ |
michael@0 | 15 | #define CIPHER_FAMILY_PKCS12 "PKCS12" |
michael@0 | 16 | #define CIPHER_FAMILY_SMIME "SMIME" |
michael@0 | 17 | #define CIPHER_FAMILY_SSL2 "SSLv2" |
michael@0 | 18 | #define CIPHER_FAMILY_SSL3 "SSLv3" |
michael@0 | 19 | #define CIPHER_FAMILY_SSL "SSL" |
michael@0 | 20 | #define CIPHER_FAMILY_ALL "" |
michael@0 | 21 | #define CIPHER_FAMILY_UNKNOWN "UNKNOWN" |
michael@0 | 22 | |
michael@0 | 23 | #define CIPHER_FAMILYID_MASK 0xFFFF0000L |
michael@0 | 24 | #define CIPHER_FAMILYID_SSL 0x00000000L |
michael@0 | 25 | #define CIPHER_FAMILYID_SMIME 0x00010000L |
michael@0 | 26 | #define CIPHER_FAMILYID_PKCS12 0x00020000L |
michael@0 | 27 | |
michael@0 | 28 | /* SMIME "Cipher Suites" */ |
michael@0 | 29 | /* |
michael@0 | 30 | * Note that it is assumed that the cipher number itself can be used |
michael@0 | 31 | * as a bit position in a mask, and that mask is currently 32 bits wide. |
michael@0 | 32 | * So, if you want to add a cipher that is greater than 0037, secmime.c |
michael@0 | 33 | * needs to be made smarter at the same time. |
michael@0 | 34 | */ |
michael@0 | 35 | #define SMIME_RC2_CBC_40 (CIPHER_FAMILYID_SMIME | 0001) |
michael@0 | 36 | #define SMIME_RC2_CBC_64 (CIPHER_FAMILYID_SMIME | 0002) |
michael@0 | 37 | #define SMIME_RC2_CBC_128 (CIPHER_FAMILYID_SMIME | 0003) |
michael@0 | 38 | #define SMIME_DES_CBC_56 (CIPHER_FAMILYID_SMIME | 0011) |
michael@0 | 39 | #define SMIME_DES_EDE3_168 (CIPHER_FAMILYID_SMIME | 0012) |
michael@0 | 40 | #define SMIME_AES_CBC_128 (CIPHER_FAMILYID_SMIME | 0013) |
michael@0 | 41 | #define SMIME_AES_CBC_256 (CIPHER_FAMILYID_SMIME | 0014) |
michael@0 | 42 | #define SMIME_RC5PAD_64_16_40 (CIPHER_FAMILYID_SMIME | 0021) |
michael@0 | 43 | #define SMIME_RC5PAD_64_16_64 (CIPHER_FAMILYID_SMIME | 0022) |
michael@0 | 44 | #define SMIME_RC5PAD_64_16_128 (CIPHER_FAMILYID_SMIME | 0023) |
michael@0 | 45 | #define SMIME_FORTEZZA (CIPHER_FAMILYID_SMIME | 0031) |
michael@0 | 46 | |
michael@0 | 47 | /* PKCS12 "Cipher Suites" */ |
michael@0 | 48 | |
michael@0 | 49 | #define PKCS12_RC2_CBC_40 (CIPHER_FAMILYID_PKCS12 | 0001) |
michael@0 | 50 | #define PKCS12_RC2_CBC_128 (CIPHER_FAMILYID_PKCS12 | 0002) |
michael@0 | 51 | #define PKCS12_RC4_40 (CIPHER_FAMILYID_PKCS12 | 0011) |
michael@0 | 52 | #define PKCS12_RC4_128 (CIPHER_FAMILYID_PKCS12 | 0012) |
michael@0 | 53 | #define PKCS12_DES_56 (CIPHER_FAMILYID_PKCS12 | 0021) |
michael@0 | 54 | #define PKCS12_DES_EDE3_168 (CIPHER_FAMILYID_PKCS12 | 0022) |
michael@0 | 55 | |
michael@0 | 56 | /* SMIME version numbers are negative, to avoid colliding with SSL versions */ |
michael@0 | 57 | #define SMIME_LIBRARY_VERSION_1_0 -0x0100 |
michael@0 | 58 | |
michael@0 | 59 | #endif /* _CIFERFAM_H_ */ |