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_; |