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

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

Issue 14816006: Land Recent QUIC changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added missing NET_PRIVATE_EXPORT to QuicWallTime Created 7 years, 7 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/null_decrypter.cc » ('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
index 4f043bd336aaba4a7127980fcd31bc67053513ce..8690f0eff2c442d35fc7629892bec579b4dbbe37 100644
--- a/net/quic/crypto/key_exchange.h
+++ b/net/quic/crypto/key_exchange.h
@@ -13,11 +13,18 @@
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() { }
+ 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
@@ -32,7 +39,7 @@ class NET_EXPORT_PRIVATE KeyExchange {
virtual base::StringPiece public_value() const = 0;
// tag returns the tag value that identifies this key exchange function.
- virtual CryptoTag tag() const = 0;
+ virtual QuicTag tag() const = 0;
};
} // namespace net
« no previous file with comments | « net/quic/crypto/ephemeral_key_source.h ('k') | net/quic/crypto/null_decrypter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698