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

Side by Side Diff: net/third_party/nss/ssl/sslenum.c

Issue 21696002: Implement the AES GCM cipher suites for TLS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Add a TODO to README.chromium to remove cbc.patch Created 7 years, 4 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 | « net/third_party/nss/ssl/ssl3ecc.c ('k') | net/third_party/nss/ssl/sslimpl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Table enumerating all implemented cipher suites 2 * Table enumerating all implemented cipher suites
3 * Part of public API. 3 * Part of public API.
4 * 4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public 5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this 6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 7 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
8 8
9 #include "ssl.h" 9 #include "ssl.h"
10 #include "sslproto.h" 10 #include "sslproto.h"
(...skipping 11 matching lines...) Expand all
22 * 22 *
23 * The ordering of cipher suites in this table must match the ordering in 23 * The ordering of cipher suites in this table must match the ordering in
24 * the cipherSuites table in ssl3con.c. 24 * the cipherSuites table in ssl3con.c.
25 * 25 *
26 * If new ECC cipher suites are added, also update the ssl3CipherSuite arrays 26 * If new ECC cipher suites are added, also update the ssl3CipherSuite arrays
27 * in ssl3ecc.c. 27 * in ssl3ecc.c.
28 * 28 *
29 * Finally, update the ssl_V3_SUITES_IMPLEMENTED macro in sslimpl.h. 29 * Finally, update the ssl_V3_SUITES_IMPLEMENTED macro in sslimpl.h.
30 */ 30 */
31 const PRUint16 SSL_ImplementedCiphers[] = { 31 const PRUint16 SSL_ImplementedCiphers[] = {
32 /* AES-GCM */
33 #ifdef NSS_ENABLE_ECC
34 TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,
35 TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,
36 #endif /* NSS_ENABLE_ECC */
37 TLS_DHE_RSA_WITH_AES_128_GCM_SHA256,
38 TLS_RSA_WITH_AES_128_GCM_SHA256,
39
32 /* 256-bit */ 40 /* 256-bit */
33 #ifdef NSS_ENABLE_ECC 41 #ifdef NSS_ENABLE_ECC
34 TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, 42 TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA,
35 TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, 43 TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA,
36 #endif /* NSS_ENABLE_ECC */ 44 #endif /* NSS_ENABLE_ECC */
37 TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA, 45 TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA,
38 TLS_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA, 46 TLS_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA,
39 TLS_DHE_RSA_WITH_AES_256_CBC_SHA, 47 TLS_DHE_RSA_WITH_AES_256_CBC_SHA,
40 TLS_DHE_RSA_WITH_AES_256_CBC_SHA256, 48 TLS_DHE_RSA_WITH_AES_256_CBC_SHA256,
41 TLS_DHE_DSS_WITH_AES_256_CBC_SHA, 49 TLS_DHE_DSS_WITH_AES_256_CBC_SHA,
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 SSL_GetImplementedCiphers(void) 141 SSL_GetImplementedCiphers(void)
134 { 142 {
135 return SSL_ImplementedCiphers; 143 return SSL_ImplementedCiphers;
136 } 144 }
137 145
138 PRUint16 146 PRUint16
139 SSL_GetNumImplementedCiphers(void) 147 SSL_GetNumImplementedCiphers(void)
140 { 148 {
141 return SSL_NumImplementedCiphers; 149 return SSL_NumImplementedCiphers;
142 } 150 }
OLDNEW
« no previous file with comments | « net/third_party/nss/ssl/ssl3ecc.c ('k') | net/third_party/nss/ssl/sslimpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698