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

Unified Diff: net/quic/crypto/ephemeral_key_source.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/curve25519_key_exchange_test.cc ('k') | net/quic/crypto/key_exchange.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/crypto/ephemeral_key_source.h
diff --git a/net/quic/crypto/ephemeral_key_source.h b/net/quic/crypto/ephemeral_key_source.h
deleted file mode 100644
index 2700be0fe1b289f18b2843f9ba2d41348615431c..0000000000000000000000000000000000000000
--- a/net/quic/crypto/ephemeral_key_source.h
+++ /dev/null
@@ -1,42 +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_EPHEMERAL_KEY_SOURCE_H_
-#define NET_QUIC_CRYPTO_EPHEMERAL_KEY_SOURCE_H_
-
-#include <string>
-
-#include "base/strings/string_piece.h"
-#include "net/base/net_export.h"
-#include "net/quic/quic_time.h"
-
-namespace net {
-
-class KeyExchange;
-class QuicRandom;
-
-// EphemeralKeySource manages and rotates ephemeral keys as they can be reused
-// for several connections in a short space of time. Since the implementation
-// of this may involve locking or thread-local data, this interface abstracts
-// that away.
-class NET_EXPORT_PRIVATE EphemeralKeySource {
- public:
- virtual ~EphemeralKeySource() {}
-
- // CalculateForwardSecureKey generates an ephemeral public/private key pair
- // using the algorithm |key_exchange|, sets |*public_value| to the public key
- // and returns the shared key between |peer_public_value| and the private
- // key. |*public_value| will be sent to the peer to be used with the peer's
- // private key.
- virtual std::string CalculateForwardSecureKey(
- const KeyExchange* key_exchange,
- QuicRandom* rand,
- QuicTime now,
- base::StringPiece peer_public_value,
- std::string* public_value) = 0;
-};
-
-} // namespace net
-
-#endif // NET_QUIC_CRYPTO_EPHEMERAL_KEY_SOURCE_H_
« no previous file with comments | « net/quic/crypto/curve25519_key_exchange_test.cc ('k') | net/quic/crypto/key_exchange.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698