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

Side by Side Diff: net/quic/core/crypto/curve25519_key_exchange.h

Issue 2577773002: QUIC use curve25519 from BoringSSL rather than crypto:: (Closed)
Patch Set: Comments Created 4 years 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
« no previous file with comments | « no previous file | net/quic/core/crypto/curve25519_key_exchange.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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_CORE_CRYPTO_CURVE25519_KEY_EXCHANGE_H_ 5 #ifndef NET_QUIC_CORE_CRYPTO_CURVE25519_KEY_EXCHANGE_H_
6 #define NET_QUIC_CORE_CRYPTO_CURVE25519_KEY_EXCHANGE_H_ 6 #define NET_QUIC_CORE_CRYPTO_CURVE25519_KEY_EXCHANGE_H_
7 7
8 #include <stdint.h> 8 #include <cstdint>
9
10 #include <string> 9 #include <string>
11 10
12 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
13 #include "base/strings/string_piece.h" 12 #include "base/strings/string_piece.h"
14 #include "net/quic/core/crypto/key_exchange.h" 13 #include "net/quic/core/crypto/key_exchange.h"
15 #include "net/quic/platform/api/quic_export.h" 14 #include "net/quic/platform/api/quic_export.h"
16 15
17 namespace net { 16 namespace net {
18 17
19 class QuicRandom; 18 class QuicRandom;
(...skipping 22 matching lines...) Expand all
42 private: 41 private:
43 Curve25519KeyExchange(); 42 Curve25519KeyExchange();
44 43
45 uint8_t private_key_[32]; 44 uint8_t private_key_[32];
46 uint8_t public_key_[32]; 45 uint8_t public_key_[32];
47 }; 46 };
48 47
49 } // namespace net 48 } // namespace net
50 49
51 #endif // NET_QUIC_CORE_CRYPTO_CURVE25519_KEY_EXCHANGE_H_ 50 #endif // NET_QUIC_CORE_CRYPTO_CURVE25519_KEY_EXCHANGE_H_
OLDNEW
« no previous file with comments | « no previous file | net/quic/core/crypto/curve25519_key_exchange.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698