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

Unified Diff: net/quic/crypto/chacha20_poly1305_rfc7539_encrypter.h

Issue 1918953003: Landing Recent QUIC changes until 4/22/2016 14:55 UTC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Deleted SpdyFramerTests missed while mergeing 120451808 Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: net/quic/crypto/chacha20_poly1305_rfc7539_encrypter.h
diff --git a/net/quic/crypto/chacha20_poly1305_rfc7539_encrypter.h b/net/quic/crypto/chacha20_poly1305_rfc7539_encrypter.h
deleted file mode 100644
index 36b1a623752b8647bbb39ef61c5a8fb6b077f84e..0000000000000000000000000000000000000000
--- a/net/quic/crypto/chacha20_poly1305_rfc7539_encrypter.h
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef NET_QUIC_CRYPTO_CHACHA20_POLY1305_RFC7539_ENCRYPTER_H_
-#define NET_QUIC_CRYPTO_CHACHA20_POLY1305_RFC7539_ENCRYPTER_H_
-
-#include <stddef.h>
-
-#include "base/macros.h"
-#include "net/quic/crypto/aead_base_encrypter.h"
-
-namespace net {
-
-// A ChaCha20Poly1305Encrypter is a QuicEncrypter that implements the
-// AEAD_CHACHA20_POLY1305 algorithm specified in RFC 7539, except that
-// it truncates the Poly1305 authenticator to 12 bytes. Create an instance
-// by calling QuicEncrypter::Create(kCC12).
-//
-// It uses an authentication tag of 16 bytes (128 bits). There is no
-// fixed nonce prefix.
-class NET_EXPORT_PRIVATE ChaCha20Poly1305Rfc7539Encrypter
- : public AeadBaseEncrypter {
- public:
- enum {
- kAuthTagSize = 12,
- };
-
- ChaCha20Poly1305Rfc7539Encrypter();
- ~ChaCha20Poly1305Rfc7539Encrypter() override;
-
- // Returns true if the underlying crypto library supports the RFC 7539
- // variant of ChaCha20+Poly1305.
- static bool IsSupported();
-
- private:
- DISALLOW_COPY_AND_ASSIGN(ChaCha20Poly1305Rfc7539Encrypter);
-};
-
-} // namespace net
-
-#endif // NET_QUIC_CRYPTO_CHACHA20_POLY1305_RFC7539_ENCRYPTER_H_
« no previous file with comments | « net/quic/crypto/chacha20_poly1305_rfc7539_decrypter_test.cc ('k') | net/quic/crypto/chacha20_poly1305_rfc7539_encrypter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698