| 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 #include "net/quic/crypto/crypto_handshake.h" | 5 #include "net/quic/crypto/crypto_handshake.h" |
| 6 | 6 |
| 7 #include <ctype.h> | 7 #include <ctype.h> |
| 8 | 8 |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
| (...skipping 818 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 829 hkdf_input.append(out_params->hkdf_input_suffix); | 829 hkdf_input.append(out_params->hkdf_input_suffix); |
| 830 | 830 |
| 831 CryptoUtils::DeriveKeys( | 831 CryptoUtils::DeriveKeys( |
| 832 out_params->forward_secure_premaster_secret, out_params->aead, | 832 out_params->forward_secure_premaster_secret, out_params->aead, |
| 833 out_params->client_nonce, out_params->server_nonce, hkdf_input, | 833 out_params->client_nonce, out_params->server_nonce, hkdf_input, |
| 834 CryptoUtils::CLIENT, &out_params->forward_secure_crypters); | 834 CryptoUtils::CLIENT, &out_params->forward_secure_crypters); |
| 835 | 835 |
| 836 return QUIC_NO_ERROR; | 836 return QUIC_NO_ERROR; |
| 837 } | 837 } |
| 838 | 838 |
| 839 const ProofVerifier* QuicCryptoClientConfig::proof_verifier() const { | 839 ProofVerifier* QuicCryptoClientConfig::proof_verifier() const { |
| 840 return proof_verifier_.get(); | 840 return proof_verifier_.get(); |
| 841 } | 841 } |
| 842 | 842 |
| 843 void QuicCryptoClientConfig::SetProofVerifier(ProofVerifier* verifier) { | 843 void QuicCryptoClientConfig::SetProofVerifier(ProofVerifier* verifier) { |
| 844 proof_verifier_.reset(verifier); | 844 proof_verifier_.reset(verifier); |
| 845 } | 845 } |
| 846 | 846 |
| 847 ChannelIDSigner* QuicCryptoClientConfig::channel_id_signer() const { | 847 ChannelIDSigner* QuicCryptoClientConfig::channel_id_signer() const { |
| 848 return channel_id_signer_.get(); | 848 return channel_id_signer_.get(); |
| 849 } | 849 } |
| 850 | 850 |
| 851 void QuicCryptoClientConfig::SetChannelIDSigner(ChannelIDSigner* signer) { | 851 void QuicCryptoClientConfig::SetChannelIDSigner(ChannelIDSigner* signer) { |
| 852 channel_id_signer_.reset(signer); | 852 channel_id_signer_.reset(signer); |
| 853 } | 853 } |
| 854 | 854 |
| 855 } // namespace net | 855 } // namespace net |
| OLD | NEW |