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

Side by Side Diff: net/quic/crypto/null_encrypter.h

Issue 11125002: Add QuicFramer and friends. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: narrowing in Created 8 years, 2 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef NET_QUIC_CRYPTO_NULL_ENCRYPTER_H_
6 #define NET_QUIC_CRYPTO_NULL_ENCRYPTER_H_
7
8 #include "base/compiler_specific.h"
9 #include "net/quic/crypto/quic_encrypter.h"
10
11 namespace net {
12
13 // A NullEncrypter is a QuicEncrypter used before a crypto negotiation
14 // has occurred. It does not actually encrypt the payload, but does
15 // generate a MAC (fnv128) over both the payload and associated data.
16 class NullEncrypter : public QuicEncrypter {
17 public:
18 virtual ~NullEncrypter() {}
19
20 // QuicEncrypter implementation
21 virtual QuicData* Encrypt(base::StringPiece associated_data,
22 base::StringPiece plaintext) OVERRIDE;
23 virtual size_t GetMaxPlaintextSize(size_t ciphertext_size) OVERRIDE;
24 virtual size_t GetCiphertextSize(size_t plaintext_size) OVERRIDE;
25 };
26
27 } // namespace net
28
29 #endif // NET_QUIC_CRYPTO_NULL_ENCRYPTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698