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

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

Issue 16638016: Implement ChannelIDVerifier using NSS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Disable QuicCryptoServerStreamTest.ChannelID. Created 7 years, 6 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 | « no previous file | net/quic/crypto/channel_id_nss.cc » ('j') | net/quic/quic_crypto_server_stream_test.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/crypto/channel_id.h
===================================================================
--- net/quic/crypto/channel_id.h (revision 203993)
+++ net/quic/crypto/channel_id.h (working copy)
@@ -44,6 +44,15 @@
static bool Verify(base::StringPiece key,
base::StringPiece signed_data,
base::StringPiece signature);
+
+ // FOR TESTING ONLY: VerifyRaw returns true iff |signature| is a valid
+ // signature of |signed_data| by |key|. |is_channel_id_signature| indicates
+ // whether |signature| is a ChannelID signature (with kContextStr prepended
+ // to the data to be signed).
+ static bool VerifyRaw(base::StringPiece key,
+ base::StringPiece signed_data,
+ base::StringPiece signature,
+ bool is_channel_id_signature);
};
} // namespace net
« no previous file with comments | « no previous file | net/quic/crypto/channel_id_nss.cc » ('j') | net/quic/quic_crypto_server_stream_test.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698