| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_NULL_ENCRYPTER_H_ | 5 #ifndef NET_QUIC_CRYPTO_NULL_ENCRYPTER_H_ |
| 6 #define NET_QUIC_CRYPTO_NULL_ENCRYPTER_H_ | 6 #define NET_QUIC_CRYPTO_NULL_ENCRYPTER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> |
| 9 |
| 8 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "base/macros.h" |
| 9 #include "net/base/net_export.h" | 12 #include "net/base/net_export.h" |
| 10 #include "net/quic/crypto/quic_encrypter.h" | 13 #include "net/quic/crypto/quic_encrypter.h" |
| 11 | 14 |
| 12 namespace net { | 15 namespace net { |
| 13 | 16 |
| 14 // A NullEncrypter is a QuicEncrypter used before a crypto negotiation | 17 // A NullEncrypter is a QuicEncrypter used before a crypto negotiation |
| 15 // has occurred. It does not actually encrypt the payload, but does | 18 // has occurred. It does not actually encrypt the payload, but does |
| 16 // generate a MAC (fnv128) over both the payload and associated data. | 19 // generate a MAC (fnv128) over both the payload and associated data. |
| 17 class NET_EXPORT_PRIVATE NullEncrypter : public QuicEncrypter { | 20 class NET_EXPORT_PRIVATE NullEncrypter : public QuicEncrypter { |
| 18 public: | 21 public: |
| (...skipping 18 matching lines...) Expand all Loading... |
| 37 | 40 |
| 38 private: | 41 private: |
| 39 size_t GetHashLength() const; | 42 size_t GetHashLength() const; |
| 40 | 43 |
| 41 DISALLOW_COPY_AND_ASSIGN(NullEncrypter); | 44 DISALLOW_COPY_AND_ASSIGN(NullEncrypter); |
| 42 }; | 45 }; |
| 43 | 46 |
| 44 } // namespace net | 47 } // namespace net |
| 45 | 48 |
| 46 #endif // NET_QUIC_CRYPTO_NULL_ENCRYPTER_H_ | 49 #endif // NET_QUIC_CRYPTO_NULL_ENCRYPTER_H_ |
| OLD | NEW |