OLD | NEW |
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 // Some helpers for quic crypto | 5 // Some helpers for quic crypto |
6 | 6 |
7 #ifndef NET_QUIC_CORE_CRYPTO_CRYPTO_UTILS_H_ | 7 #ifndef NET_QUIC_CORE_CRYPTO_CRYPTO_UTILS_H_ |
8 #define NET_QUIC_CORE_CRYPTO_CRYPTO_UTILS_H_ | 8 #define NET_QUIC_CORE_CRYPTO_CRYPTO_UTILS_H_ |
9 | 9 |
10 #include <stddef.h> | 10 #include <cstddef> |
11 #include <stdint.h> | 11 #include <cstdint> |
12 | |
13 #include <string> | 12 #include <string> |
14 | 13 |
15 #include "base/macros.h" | 14 #include "base/macros.h" |
16 #include "base/strings/string_piece.h" | 15 #include "base/strings/string_piece.h" |
17 #include "net/quic/core/crypto/crypto_handshake.h" | 16 #include "net/quic/core/crypto/crypto_handshake.h" |
18 #include "net/quic/core/crypto/crypto_handshake_message.h" | 17 #include "net/quic/core/crypto/crypto_handshake_message.h" |
19 #include "net/quic/core/crypto/crypto_protocol.h" | 18 #include "net/quic/core/crypto/crypto_protocol.h" |
20 #include "net/quic/core/quic_packets.h" | 19 #include "net/quic/core/quic_packets.h" |
21 #include "net/quic/core/quic_time.h" | 20 #include "net/quic/core/quic_time.h" |
22 #include "net/quic/platform/api/quic_export.h" | 21 #include "net/quic/platform/api/quic_export.h" |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 static void HashHandshakeMessage(const CryptoHandshakeMessage& message, | 158 static void HashHandshakeMessage(const CryptoHandshakeMessage& message, |
160 std::string* output); | 159 std::string* output); |
161 | 160 |
162 private: | 161 private: |
163 DISALLOW_COPY_AND_ASSIGN(CryptoUtils); | 162 DISALLOW_COPY_AND_ASSIGN(CryptoUtils); |
164 }; | 163 }; |
165 | 164 |
166 } // namespace net | 165 } // namespace net |
167 | 166 |
168 #endif // NET_QUIC_CORE_CRYPTO_CRYPTO_UTILS_H_ | 167 #endif // NET_QUIC_CORE_CRYPTO_CRYPTO_UTILS_H_ |
OLD | NEW |