| 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 "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "net/quic/crypto/quic_encrypter.h" | 9 #include "net/quic/crypto/quic_encrypter.h" |
| 10 | 10 |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 const size_t nonce_prefix_size_; | 94 const size_t nonce_prefix_size_; |
| 95 | 95 |
| 96 // The key. | 96 // The key. |
| 97 unsigned char key_[kMaxKeySize]; | 97 unsigned char key_[kMaxKeySize]; |
| 98 // The nonce prefix. | 98 // The nonce prefix. |
| 99 unsigned char nonce_prefix_[kMaxNoncePrefixSize]; | 99 unsigned char nonce_prefix_[kMaxNoncePrefixSize]; |
| 100 | 100 |
| 101 #if defined(USE_OPENSSL) | 101 #if defined(USE_OPENSSL) |
| 102 ScopedEVPAEADCtx ctx_; | 102 ScopedEVPAEADCtx ctx_; |
| 103 #endif | 103 #endif |
| 104 |
| 105 DISALLOW_COPY_AND_ASSIGN(AeadBaseEncrypter); |
| 104 }; | 106 }; |
| 105 | 107 |
| 106 } // namespace net | 108 } // namespace net |
| 107 | 109 |
| 108 #endif // NET_QUIC_CRYPTO_AEAD_BASE_ENCRYPTER_H_ | 110 #endif // NET_QUIC_CRYPTO_AEAD_BASE_ENCRYPTER_H_ |
| OLD | NEW |