Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Side by Side Diff: net/quic/core/crypto/aead_base_decrypter.h

Issue 2679673005: Remove path id from IV in QUIC encrytion algorithms. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « net/quic/chromium/quic_test_packet_maker.cc ('k') | net/quic/core/crypto/aead_base_decrypter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698