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

Unified Diff: crypto/p224_spake.h

Issue 889663003: Renamed GetMessage into GetNextMessage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 | crypto/p224_spake.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crypto/p224_spake.h
diff --git a/crypto/p224_spake.h b/crypto/p224_spake.h
index 08769b76c247843e73fe2296793b157efecb2904..556b15cd09f7d6f006770e9d5fd955d0646207c5 100644
--- a/crypto/p224_spake.h
+++ b/crypto/p224_spake.h
@@ -23,10 +23,10 @@ namespace crypto {
// permitted authentication attempts otherwise they get many one-shot oracles.)
//
// The protocol requires several RTTs (actually two, but you shouldn't assume
-// that.) To use the object, call GetMessage() and pass that message to the
+// that.) To use the object, call GetNextMessage() and pass that message to the
// peer. Get a message from the peer and feed it into ProcessMessage. Then
// examine the return value of ProcessMessage:
-// kResultPending: Another round is required. Call GetMessage and repeat.
+// kResultPending: Another round is required. Call GetNextMessage and repeat.
// kResultFailed: The authentication has failed. You can get a human readable
// error message by calling error().
// kResultSuccess: The authentication was successful.
@@ -55,12 +55,12 @@ class CRYPTO_EXPORT P224EncryptedKeyExchange {
P224EncryptedKeyExchange(PeerType peer_type,
const base::StringPiece& password);
- // GetMessage returns a byte string which must be passed to the other party
- // in the authentication.
- const std::string& GetMessage();
+ // GetNextMessage returns a byte string which must be passed to the other
+ // party in the authentication.
+ const std::string& GetNextMessage();
// ProcessMessage processes a message which must have been generated by a
- // call to GetMessage() by the other party.
+ // call to GetNextMessage() by the other party.
Result ProcessMessage(const base::StringPiece& message);
// In the event that ProcessMessage() returns kResultFailed, error will
@@ -95,7 +95,7 @@ class CRYPTO_EXPORT P224EncryptedKeyExchange {
State state_;
const bool is_server_;
- // next_message_ contains a value for GetMessage() to return.
+ // next_message_ contains a value for GetNextMessage() to return.
std::string next_message_;
std::string error_;
« no previous file with comments | « no previous file | crypto/p224_spake.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698