| 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 NET_QUIC_CORE_CRYPTO_AEAD_BASE_DECRYPTER_H_ | 5 #ifndef NET_QUIC_CORE_CRYPTO_AEAD_BASE_DECRYPTER_H_ |
| 6 #define NET_QUIC_CORE_CRYPTO_AEAD_BASE_DECRYPTER_H_ | 6 #define NET_QUIC_CORE_CRYPTO_AEAD_BASE_DECRYPTER_H_ |
| 7 | 7 |
| 8 #include <cstddef> | 8 #include <cstddef> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 size_t auth_tag_size, | 23 size_t auth_tag_size, |
| 24 size_t nonce_prefix_size); | 24 size_t nonce_prefix_size); |
| 25 ~AeadBaseDecrypter() override; | 25 ~AeadBaseDecrypter() override; |
| 26 | 26 |
| 27 // QuicDecrypter implementation | 27 // QuicDecrypter implementation |
| 28 bool SetKey(base::StringPiece key) override; | 28 bool SetKey(base::StringPiece key) override; |
| 29 bool SetNoncePrefix(base::StringPiece nonce_prefix) override; | 29 bool SetNoncePrefix(base::StringPiece nonce_prefix) override; |
| 30 bool SetPreliminaryKey(base::StringPiece key) override; | 30 bool SetPreliminaryKey(base::StringPiece key) override; |
| 31 bool SetDiversificationNonce(const DiversificationNonce& nonce) override; | 31 bool SetDiversificationNonce(const DiversificationNonce& nonce) override; |
| 32 bool DecryptPacket(QuicVersion version, | 32 bool DecryptPacket(QuicVersion version, |
| 33 QuicPathId path_id, | |
| 34 QuicPacketNumber packet_number, | 33 QuicPacketNumber packet_number, |
| 35 base::StringPiece associated_data, | 34 base::StringPiece associated_data, |
| 36 base::StringPiece ciphertext, | 35 base::StringPiece ciphertext, |
| 37 char* output, | 36 char* output, |
| 38 size_t* output_length, | 37 size_t* output_length, |
| 39 size_t max_output_length) override; | 38 size_t max_output_length) override; |
| 40 base::StringPiece GetKey() const override; | 39 base::StringPiece GetKey() const override; |
| 41 base::StringPiece GetNoncePrefix() const override; | 40 base::StringPiece GetNoncePrefix() const override; |
| 42 | 41 |
| 43 protected: | 42 protected: |
| (...skipping 16 matching lines...) Expand all Loading... |
| 60 unsigned char nonce_prefix_[kMaxNoncePrefixSize]; | 59 unsigned char nonce_prefix_[kMaxNoncePrefixSize]; |
| 61 | 60 |
| 62 ScopedEVPAEADCtx ctx_; | 61 ScopedEVPAEADCtx ctx_; |
| 63 | 62 |
| 64 DISALLOW_COPY_AND_ASSIGN(AeadBaseDecrypter); | 63 DISALLOW_COPY_AND_ASSIGN(AeadBaseDecrypter); |
| 65 }; | 64 }; |
| 66 | 65 |
| 67 } // namespace net | 66 } // namespace net |
| 68 | 67 |
| 69 #endif // NET_QUIC_CORE_CRYPTO_AEAD_BASE_DECRYPTER_H_ | 68 #endif // NET_QUIC_CORE_CRYPTO_AEAD_BASE_DECRYPTER_H_ |
| OLD | NEW |