OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 // |
| 5 // Some helpers for quic crypto |
| 6 |
| 7 #ifndef NET_QUIC_CRYPTO_CRYPTO_UTILS_H_ |
| 8 #define NET_QUIC_CRYPTO_CRYPTO_UTILS_H_ |
| 9 |
| 10 #include <string> |
| 11 |
| 12 #include "net/base/net_export.h" |
| 13 |
| 14 namespace net { |
| 15 |
| 16 class QuicClientCryptoConfig; |
| 17 class QuicClock; |
| 18 class QuicRandom; |
| 19 struct CryptoHandshakeMessage; |
| 20 |
| 21 class NET_EXPORT_PRIVATE CryptoUtils { |
| 22 public: |
| 23 // Generates the connection nonce. |
| 24 static void GenerateNonce(const QuicClock* clock, |
| 25 QuicRandom* random_generator, |
| 26 std::string* nonce); |
| 27 |
| 28 static void FillClientHelloMessage(const QuicClientCryptoConfig& config, |
| 29 const std::string& nonce, |
| 30 CryptoHandshakeMessage* message); |
| 31 }; |
| 32 |
| 33 } // namespace net |
| 34 |
| 35 #endif // NET_QUIC_CRYPTO_CRYPTO_UTILS_H_ |
OLD | NEW |