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

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

Issue 2193073003: Move shared files in net/quic/ into net/quic/core/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: io_thread_unittest.cc Created 4 years, 5 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
« no previous file with comments | « net/quic/crypto/cert_compressor_test.cc ('k') | net/quic/crypto/chacha20_poly1305_decrypter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/crypto/chacha20_poly1305_decrypter.h
diff --git a/net/quic/crypto/chacha20_poly1305_decrypter.h b/net/quic/crypto/chacha20_poly1305_decrypter.h
deleted file mode 100644
index a75556e1747038ca060a2f096f8102041dc20588..0000000000000000000000000000000000000000
--- a/net/quic/crypto/chacha20_poly1305_decrypter.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_DECRYPTER_H_
-#define NET_QUIC_CRYPTO_CHACHA20_POLY1305_DECRYPTER_H_
-
-#include <stddef.h>
-#include <stdint.h>
-
-#include "base/macros.h"
-#include "net/quic/crypto/aead_base_decrypter.h"
-
-namespace net {
-
-// A ChaCha20Poly1305Decrypter is a QuicDecrypter that implements the
-// AEAD_CHACHA20_POLY1305 algorithm specified in
-// draft-agl-tls-chacha20poly1305-04, except that it truncates the Poly1305
-// authenticator to 12 bytes. Create an instance by calling
-// QuicDecrypter::Create(kCC12).
-//
-// It uses an authentication tag of 16 bytes (128 bits). There is no
-// fixed nonce prefix.
-class NET_EXPORT_PRIVATE ChaCha20Poly1305Decrypter : public AeadBaseDecrypter {
- public:
- enum {
- kAuthTagSize = 12,
- };
-
- ChaCha20Poly1305Decrypter();
- ~ChaCha20Poly1305Decrypter() override;
-
- const char* cipher_name() const override;
- uint32_t cipher_id() const override;
-
- private:
- DISALLOW_COPY_AND_ASSIGN(ChaCha20Poly1305Decrypter);
-};
-
-} // namespace net
-
-#endif // NET_QUIC_CRYPTO_CHACHA20_POLY1305_DECRYPTER_H_
« no previous file with comments | « net/quic/crypto/cert_compressor_test.cc ('k') | net/quic/crypto/chacha20_poly1305_decrypter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698