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

Side by Side Diff: net/third_party/nss/ssl/sslimpl.h

Issue 23299002: Make the AES-GCM cipher suites work in DTLS, by moving the (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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
OLDNEW
1 /* 1 /*
2 * This file is PRIVATE to SSL and should be the first thing included by 2 * This file is PRIVATE to SSL and should be the first thing included by
3 * any SSL implementation file. 3 * any SSL implementation file.
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 #ifndef __sslimpl_h_ 9 #ifndef __sslimpl_h_
10 #define __sslimpl_h_ 10 #define __sslimpl_h_
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 #define calg_camellia ssl_calg_camellia 65 #define calg_camellia ssl_calg_camellia
66 #define calg_seed ssl_calg_seed 66 #define calg_seed ssl_calg_seed
67 #define calg_aes_gcm ssl_calg_aes_gcm 67 #define calg_aes_gcm ssl_calg_aes_gcm
68 68
69 #define mac_null ssl_mac_null 69 #define mac_null ssl_mac_null
70 #define mac_md5 ssl_mac_md5 70 #define mac_md5 ssl_mac_md5
71 #define mac_sha ssl_mac_sha 71 #define mac_sha ssl_mac_sha
72 #define hmac_md5 ssl_hmac_md5 72 #define hmac_md5 ssl_hmac_md5
73 #define hmac_sha ssl_hmac_sha 73 #define hmac_sha ssl_hmac_sha
74 #define hmac_sha256 ssl_hmac_sha256 74 #define hmac_sha256 ssl_hmac_sha256
75 #define hmac_sha384 ssl_hmac_sha384
76 #define hmac_sha512 ssl_hmac_sha512
77 #define mac_aead ssl_mac_aead
75 78
76 #define SET_ERROR_CODE /* reminder */ 79 #define SET_ERROR_CODE /* reminder */
77 #define SEND_ALERT /* reminder */ 80 #define SEND_ALERT /* reminder */
78 #define TEST_FOR_FAILURE /* reminder */ 81 #define TEST_FOR_FAILURE /* reminder */
79 #define DEAL_WITH_FAILURE /* reminder */ 82 #define DEAL_WITH_FAILURE /* reminder */
80 83
81 #if defined(DEBUG) || defined(TRACE) 84 #if defined(DEBUG) || defined(TRACE)
82 #ifdef __cplusplus 85 #ifdef __cplusplus
83 #define Debug 1 86 #define Debug 1
84 #else 87 #else
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
526 const unsigned char *in, 529 const unsigned char *in,
527 int inlen); 530 int inlen);
528 typedef SECStatus (*SSLAEADCipher)( 531 typedef SECStatus (*SSLAEADCipher)(
529 ssl3KeyMaterial * keys, 532 ssl3KeyMaterial * keys,
530 PRBool doDecrypt, 533 PRBool doDecrypt,
531 unsigned char * out, 534 unsigned char * out,
532 int * outlen, 535 int * outlen,
533 int maxout, 536 int maxout,
534 const unsigned char *in, 537 const unsigned char *in,
535 int inlen, 538 int inlen,
536 » » » SSL3ContentType type, 539 » » » const unsigned char *additionalData,
537 » » » SSL3ProtocolVersion version, 540 » » » int additionalDataLen);
538 » » » SSL3SequenceNumber seqnum);
wtc 2013/08/17 00:21:15 The |type|, |version|, and |seqnum| arguments were
539 typedef SECStatus (*SSLCompressor)(void * context, 541 typedef SECStatus (*SSLCompressor)(void * context,
540 unsigned char * out, 542 unsigned char * out,
541 int * outlen, 543 int * outlen,
542 int maxout, 544 int maxout,
543 const unsigned char *in, 545 const unsigned char *in,
544 int inlen); 546 int inlen);
545 typedef SECStatus (*SSLDestroy)(void *context, PRBool freeit); 547 typedef SECStatus (*SSLDestroy)(void *context, PRBool freeit);
546 548
547 /* The DTLS anti-replay window. Defined here because we need it in 549 /* The DTLS anti-replay window. Defined here because we need it in
548 * the cipher spec. Note that this is a ring buffer but left and 550 * the cipher spec. Note that this is a ring buffer but left and
(...skipping 1383 matching lines...) Expand 10 before | Expand all | Expand 10 after
1932 #if defined(XP_UNIX) || defined(XP_OS2) || defined(XP_BEOS) 1934 #if defined(XP_UNIX) || defined(XP_OS2) || defined(XP_BEOS)
1933 #define SSL_GETPID getpid 1935 #define SSL_GETPID getpid
1934 #elif defined(WIN32) 1936 #elif defined(WIN32)
1935 extern int __cdecl _getpid(void); 1937 extern int __cdecl _getpid(void);
1936 #define SSL_GETPID _getpid 1938 #define SSL_GETPID _getpid
1937 #else 1939 #else
1938 #define SSL_GETPID() 0 1940 #define SSL_GETPID() 0
1939 #endif 1941 #endif
1940 1942
1941 #endif /* __sslimpl_h_ */ 1943 #endif /* __sslimpl_h_ */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698