| 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_CRYPTO_CRYPTO_UTILS_H_ | 7 #ifndef NET_QUIC_CRYPTO_CRYPTO_UTILS_H_ |
| 8 #define NET_QUIC_CRYPTO_CRYPTO_UTILS_H_ | 8 #define NET_QUIC_CRYPTO_CRYPTO_UTILS_H_ |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| 11 | 11 |
| 12 #include "base/string_piece.h" | 12 #include "base/strings/string_piece.h" |
| 13 #include "net/base/net_export.h" | 13 #include "net/base/net_export.h" |
| 14 #include "net/quic/crypto/crypto_handshake.h" | 14 #include "net/quic/crypto/crypto_handshake.h" |
| 15 #include "net/quic/crypto/crypto_protocol.h" | 15 #include "net/quic/crypto/crypto_protocol.h" |
| 16 | 16 |
| 17 namespace net { | 17 namespace net { |
| 18 | 18 |
| 19 class QuicClock; | 19 class QuicClock; |
| 20 class QuicRandom; | 20 class QuicRandom; |
| 21 struct QuicCryptoNegotiatedParameters; | 21 struct QuicCryptoNegotiatedParameters; |
| 22 | 22 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 // |encrypter| or |decrypter|. | 62 // |encrypter| or |decrypter|. |
| 63 static void DeriveKeys(QuicCryptoNegotiatedParameters* params, | 63 static void DeriveKeys(QuicCryptoNegotiatedParameters* params, |
| 64 base::StringPiece nonce, | 64 base::StringPiece nonce, |
| 65 const std::string& hkdf_input, | 65 const std::string& hkdf_input, |
| 66 Perspective perspective); | 66 Perspective perspective); |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 } // namespace net | 69 } // namespace net |
| 70 | 70 |
| 71 #endif // NET_QUIC_CRYPTO_CRYPTO_UTILS_H_ | 71 #endif // NET_QUIC_CRYPTO_CRYPTO_UTILS_H_ |
| OLD | NEW |