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

Unified Diff: net/quic/crypto/key_exchange.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/ephemeral_key_source.h ('k') | net/quic/crypto/local_strike_register_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/crypto/key_exchange.h
diff --git a/net/quic/crypto/key_exchange.h b/net/quic/crypto/key_exchange.h
deleted file mode 100644
index a6de1c39dfdfe036cb67b6b03b5690033ddb1948..0000000000000000000000000000000000000000
--- a/net/quic/crypto/key_exchange.h
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright (c) 2013 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_KEY_EXCHANGE_H_
-#define NET_QUIC_CRYPTO_KEY_EXCHANGE_H_
-
-#include <string>
-
-#include "base/strings/string_piece.h"
-#include "net/base/net_export.h"
-#include "net/quic/crypto/crypto_protocol.h"
-
-namespace net {
-
-class QuicRandom;
-
-// KeyExchange is an abstract class that provides an interface to a
-// key-exchange primitive.
-class NET_EXPORT_PRIVATE KeyExchange {
- public:
- virtual ~KeyExchange() {}
-
- // NewKeyPair generates a new public, private key pair. The caller takes
- // ownership of the return value. (This is intended for servers that need to
- // generate forward-secure keys.)
- virtual KeyExchange* NewKeyPair(QuicRandom* rand) const = 0;
-
- // CalculateSharedKey computes the shared key between the local private key
- // (which is implicitly known by a KeyExchange object) and a public value
- // from the peer.
- virtual bool CalculateSharedKey(base::StringPiece peer_public_value,
- std::string* shared_key) const = 0;
-
- // public_value returns the local public key which can be sent to a peer in
- // order to complete a key exchange. The returned StringPiece is a reference
- // to a member of the KeyExchange and is only valid for as long as the
- // KeyExchange exists.
- virtual base::StringPiece public_value() const = 0;
-
- // tag returns the tag value that identifies this key exchange function.
- virtual QuicTag tag() const = 0;
-};
-
-} // namespace net
-
-#endif // NET_QUIC_CRYPTO_KEY_EXCHANGE_H_
« no previous file with comments | « net/quic/crypto/ephemeral_key_source.h ('k') | net/quic/crypto/local_strike_register_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698