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_CRYPTO_AEAD_BASE_ENCRYPTER_H_ | 5 #ifndef NET_QUIC_CRYPTO_AEAD_BASE_ENCRYPTER_H_ |
6 #define NET_QUIC_CRYPTO_AEAD_BASE_ENCRYPTER_H_ | 6 #define NET_QUIC_CRYPTO_AEAD_BASE_ENCRYPTER_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "net/base/net_export.h" |
12 #include "net/quic/core/crypto/quic_encrypter.h" | 13 #include "net/quic/core/crypto/quic_encrypter.h" |
13 #include "net/quic/core/crypto/scoped_evp_aead_ctx.h" | 14 #include "net/quic/core/crypto/scoped_evp_aead_ctx.h" |
14 | 15 |
15 namespace net { | 16 namespace net { |
16 | 17 |
17 // AeadBaseEncrypter is the base class of AEAD QuicEncrypter subclasses. | 18 // AeadBaseEncrypter is the base class of AEAD QuicEncrypter subclasses. |
18 class NET_EXPORT_PRIVATE AeadBaseEncrypter : public QuicEncrypter { | 19 class NET_EXPORT_PRIVATE AeadBaseEncrypter : public QuicEncrypter { |
19 public: | 20 public: |
20 AeadBaseEncrypter(const EVP_AEAD* aead_alg, | 21 AeadBaseEncrypter(const EVP_AEAD* aead_alg, |
21 size_t key_size, | 22 size_t key_size, |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 unsigned char nonce_prefix_[kMaxNoncePrefixSize]; | 67 unsigned char nonce_prefix_[kMaxNoncePrefixSize]; |
67 | 68 |
68 ScopedEVPAEADCtx ctx_; | 69 ScopedEVPAEADCtx ctx_; |
69 | 70 |
70 DISALLOW_COPY_AND_ASSIGN(AeadBaseEncrypter); | 71 DISALLOW_COPY_AND_ASSIGN(AeadBaseEncrypter); |
71 }; | 72 }; |
72 | 73 |
73 } // namespace net | 74 } // namespace net |
74 | 75 |
75 #endif // NET_QUIC_CRYPTO_AEAD_BASE_ENCRYPTER_H_ | 76 #endif // NET_QUIC_CRYPTO_AEAD_BASE_ENCRYPTER_H_ |
OLD | NEW |