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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_QUIC_CRYPTO_CHANNEL_ID_H_ 5 #ifndef NET_QUIC_CRYPTO_CHANNEL_ID_H_
6 #define NET_QUIC_CRYPTO_CHANNEL_ID_H_ 6 #define NET_QUIC_CRYPTO_CHANNEL_ID_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/strings/string_piece.h" 10 #include "base/strings/string_piece.h"
(...skipping 26 matching lines...) Expand all
37 // kClientToServerStr follows kContextStr to specify that the ChannelID is 37 // kClientToServerStr follows kContextStr to specify that the ChannelID is
38 // being used in the client to server direction. (The terminating NUL byte is 38 // being used in the client to server direction. (The terminating NUL byte is
39 // included.) 39 // included.)
40 static const char kClientToServerStr[]; 40 static const char kClientToServerStr[];
41 41
42 // Verify returns true iff |signature| is a valid signature of |signed_data| 42 // Verify returns true iff |signature| is a valid signature of |signed_data|
43 // by |key|. 43 // by |key|.
44 static bool Verify(base::StringPiece key, 44 static bool Verify(base::StringPiece key,
45 base::StringPiece signed_data, 45 base::StringPiece signed_data,
46 base::StringPiece signature); 46 base::StringPiece signature);
47
48 // FOR TESTING ONLY: VerifyRaw returns true iff |signature| is a valid
49 // signature of |signed_data| by |key|. |is_channel_id_signature| indicates
50 // whether |signature| is a ChannelID signature (with kContextStr prepended
51 // to the data to be signed).
52 static bool VerifyRaw(base::StringPiece key,
53 base::StringPiece signed_data,
54 base::StringPiece signature,
55 bool is_channel_id_signature);
47 }; 56 };
48 57
49 } // namespace net 58 } // namespace net
50 59
51 #endif // NET_QUIC_CRYPTO_CHANNEL_ID_H_ 60 #endif // NET_QUIC_CRYPTO_CHANNEL_ID_H_
OLDNEW
« 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