| 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 #ifndef CRYPTO_HKDF_H_ | 5 #ifndef CRYPTO_HKDF_H_ |
| 6 #define CRYPTO_HKDF_H_ | 6 #define CRYPTO_HKDF_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/string_piece.h" | 12 #include "base/strings/string_piece.h" |
| 13 #include "build/build_config.h" | 13 #include "build/build_config.h" |
| 14 #include "crypto/crypto_export.h" | 14 #include "crypto/crypto_export.h" |
| 15 | 15 |
| 16 namespace crypto { | 16 namespace crypto { |
| 17 | 17 |
| 18 // HKDF implements the key derivation function specified in RFC 5869 (using | 18 // HKDF implements the key derivation function specified in RFC 5869 (using |
| 19 // SHA-256) and outputs key material, as needed by QUIC. | 19 // SHA-256) and outputs key material, as needed by QUIC. |
| 20 // See https://tools.ietf.org/html/rfc5869 for details. | 20 // See https://tools.ietf.org/html/rfc5869 for details. |
| 21 class CRYPTO_EXPORT HKDF { | 21 class CRYPTO_EXPORT HKDF { |
| 22 public: | 22 public: |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 | 55 |
| 56 base::StringPiece client_write_key_; | 56 base::StringPiece client_write_key_; |
| 57 base::StringPiece server_write_key_; | 57 base::StringPiece server_write_key_; |
| 58 base::StringPiece client_write_iv_; | 58 base::StringPiece client_write_iv_; |
| 59 base::StringPiece server_write_iv_; | 59 base::StringPiece server_write_iv_; |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 } // namespace crypto | 62 } // namespace crypto |
| 63 | 63 |
| 64 #endif // CRYPTO_HKDF_H_ | 64 #endif // CRYPTO_HKDF_H_ |
| OLD | NEW |