2 * Copyright (c) 1999-2001,2005-2008,2010-2011 Apple Inc. All Rights Reserved.
4 * @APPLE_LICENSE_HEADER_START@
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. Please obtain a copy of the License at
10 * http://www.opensource.apple.com/apsl/ and read it before using this
13 * The Original Code and all software distributed under the License are
14 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
15 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
16 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
18 * Please see the License for the specific language governing rights and
19 * limitations under the License.
21 * @APPLE_LICENSE_HEADER_END@
25 * symCipherParams.c - symmetric cipher parameters
28 /* THIS FILE CONTAINS KERNEL CODE */
30 #include "sslBuildFlags.h"
31 #include "symCipher.h"
34 * The parameters for the symmetric ciphers currently supported (in addition to the
35 * NULL cipher in nullciph.c).
39 const SSLSymmetricCipherParams SSLCipherDES_CBCParams
= {
40 .keyAlg
= SSL_CipherAlgorithmDES_CBC
,
44 .cipherType
= blockCipherType
,
46 #endif /* ENABLE_DES */
49 const SSLSymmetricCipherParams SSLCipher3DES_CBCParams
= {
50 .keyAlg
= SSL_CipherAlgorithm3DES_CBC
,
54 .cipherType
= blockCipherType
,
56 #endif /* ENABLE_3DES */
59 const SSLSymmetricCipherParams SSLCipherRC4_128Params
= {
60 .keyAlg
= SSL_CipherAlgorithmRC4_128
,
62 .cipherType
= streamCipherType
,
64 #endif /* ENABLE_RC4 */
67 const SSLSymmetricCipherParams SSLCipherRC2_128Params
= {
68 .keyAlg
= SSL_CipherAlgorithmRC2_128
,
72 .cipherType
= blockCipherType
,
74 #endif /* ENABLE_RC2*/
77 const SSLSymmetricCipherParams SSLCipherAES_128_CBCParams
= {
78 .keyAlg
= SSL_CipherAlgorithmAES_128_CBC
,
82 .cipherType
= blockCipherType
,
84 #endif /* ENABLE_AES */
87 const SSLSymmetricCipherParams SSLCipherAES_256_CBCParams
= {
88 .keyAlg
= SSL_CipherAlgorithmAES_256_CBC
,
92 .cipherType
= blockCipherType
,
94 #endif /* ENABLE_AES256 */
97 const SSLSymmetricCipherParams SSLCipherAES_128_GCMParams
= {
98 .keyAlg
= SSL_CipherAlgorithmAES_128_GCM
,
102 .cipherType
= aeadCipherType
,
105 const SSLSymmetricCipherParams SSLCipherAES_256_GCMParams
= {
106 .keyAlg
= SSL_CipherAlgorithmAES_256_GCM
,
110 .cipherType
= aeadCipherType
,
112 #endif /* ENABLE_AES_GCM */