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

Side by Side Diff: net/quic/crypto/crypto_protocol.h

Issue 189893002: Add ChaCha20Poly1305Encrypter, based on (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Remove the six svn copy files from the CL Created 6 years, 9 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/quic/crypto/chacha20_poly1305_encrypter_test.cc ('k') | net/quic/crypto/quic_decrypter.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_QUIC_CRYPTO_CRYPTO_PROTOCOL_H_ 5 #ifndef NET_QUIC_CRYPTO_CRYPTO_PROTOCOL_H_
6 #define NET_QUIC_CRYPTO_CRYPTO_PROTOCOL_H_ 6 #define NET_QUIC_CRYPTO_CRYPTO_PROTOCOL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "net/base/net_export.h" 10 #include "net/base/net_export.h"
(...skipping 22 matching lines...) Expand all
33 // pairs 33 // pairs
34 const QuicTag kPRST = TAG('P', 'R', 'S', 'T'); // Public reset 34 const QuicTag kPRST = TAG('P', 'R', 'S', 'T'); // Public reset
35 35
36 // Key exchange methods 36 // Key exchange methods
37 const QuicTag kP256 = TAG('P', '2', '5', '6'); // ECDH, Curve P-256 37 const QuicTag kP256 = TAG('P', '2', '5', '6'); // ECDH, Curve P-256
38 const QuicTag kC255 = TAG('C', '2', '5', '5'); // ECDH, Curve25519 38 const QuicTag kC255 = TAG('C', '2', '5', '5'); // ECDH, Curve25519
39 39
40 // AEAD algorithms 40 // AEAD algorithms
41 const QuicTag kNULL = TAG('N', 'U', 'L', 'N'); // null algorithm 41 const QuicTag kNULL = TAG('N', 'U', 'L', 'N'); // null algorithm
42 const QuicTag kAESG = TAG('A', 'E', 'S', 'G'); // AES128 + GCM-12 42 const QuicTag kAESG = TAG('A', 'E', 'S', 'G'); // AES128 + GCM-12
43 const QuicTag kCC12 = TAG('C', 'C', '1', '2'); // ChaCha20 + Poly1305
43 44
44 // Congestion control feedback types 45 // Congestion control feedback types
45 const QuicTag kQBIC = TAG('Q', 'B', 'I', 'C'); // TCP cubic 46 const QuicTag kQBIC = TAG('Q', 'B', 'I', 'C'); // TCP cubic
46 const QuicTag kPACE = TAG('P', 'A', 'C', 'E'); // Paced TCP cubic 47 const QuicTag kPACE = TAG('P', 'A', 'C', 'E'); // Paced TCP cubic
47 const QuicTag kINAR = TAG('I', 'N', 'A', 'R'); // Inter arrival 48 const QuicTag kINAR = TAG('I', 'N', 'A', 'R'); // Inter arrival
48 49
49 // Proof types (i.e. certificate types) 50 // Proof types (i.e. certificate types)
50 // NOTE: although it would be silly to do so, specifying both kX509 and kX59R 51 // NOTE: although it would be silly to do so, specifying both kX509 and kX59R
51 // is allowed and is equivalent to specifying only kX509. 52 // is allowed and is equivalent to specifying only kX509.
52 const QuicTag kX509 = TAG('X', '5', '0', '9'); // X.509 certificate, all key 53 const QuicTag kX509 = TAG('X', '5', '0', '9'); // X.509 certificate, all key
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 // amplification factor of any mirror DoS attack. 135 // amplification factor of any mirror DoS attack.
135 // 136 //
136 // A client may pad an inchoate client hello to a size larger than 137 // A client may pad an inchoate client hello to a size larger than
137 // kClientHelloMinimumSize to make it more likely to receive a complete 138 // kClientHelloMinimumSize to make it more likely to receive a complete
138 // rejection message. 139 // rejection message.
139 const size_t kClientHelloMinimumSize = 1024; 140 const size_t kClientHelloMinimumSize = 1024;
140 141
141 } // namespace net 142 } // namespace net
142 143
143 #endif // NET_QUIC_CRYPTO_CRYPTO_PROTOCOL_H_ 144 #endif // NET_QUIC_CRYPTO_CRYPTO_PROTOCOL_H_
OLDNEW
« no previous file with comments | « net/quic/crypto/chacha20_poly1305_encrypter_test.cc ('k') | net/quic/crypto/quic_decrypter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698