~ubuntu-branches/ubuntu/precise/kompozer/precise

« back to all changes in this revision

Viewing changes to mozilla/security/nss/lib/util/ciferfam.h

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Yarusso
  • Date: 2007-08-27 01:11:03 UTC
  • Revision ID: james.westby@ubuntu.com-20070827011103-2jgf4s6532gqu2ka
Tags: upstream-0.7.10
ImportĀ upstreamĀ versionĀ 0.7.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
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/
 
6
 * 
 
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.
 
11
 * 
 
12
 * The Original Code is the Netscape security libraries.
 
13
 * 
 
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
 
17
 * Rights Reserved.
 
18
 * 
 
19
 * Contributor(s):
 
20
 * 
 
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
 
31
 * GPL.
 
32
 */
 
33
 
 
34
/*
 
35
 * ciferfam.h - cipher familie IDs used for configuring ciphers for export
 
36
 *              control
 
37
 *
 
38
 * $Id: ciferfam.h,v 1.1 2000/03/31 19:37:29 relyea%netscape.com Exp $
 
39
 */
 
40
 
 
41
#ifndef _CIFERFAM_H_
 
42
#define _CIFERFAM_H_
 
43
 
 
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"
 
52
 
 
53
#define CIPHER_FAMILYID_MASK                    0xFFFF0000L
 
54
#define CIPHER_FAMILYID_SSL                     0x00000000L
 
55
#define CIPHER_FAMILYID_SMIME                   0x00010000L
 
56
#define CIPHER_FAMILYID_PKCS12                  0x00020000L
 
57
 
 
58
/* SMIME "Cipher Suites" */
 
59
/*
 
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.
 
64
 */
 
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)
 
74
 
 
75
/* PKCS12 "Cipher Suites" */
 
76
 
 
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)
 
83
 
 
84
/* SMIME version numbers are negative, to avoid colliding with SSL versions */
 
85
#define SMIME_LIBRARY_VERSION_1_0                       -0x0100
 
86
 
 
87
#endif /* _CIFERFAM_H_ */