Chromium Code Reviews| Index: remoting/protocol/auth_util.h |
| diff --git a/remoting/protocol/auth_util.h b/remoting/protocol/auth_util.h |
| index 61f98cf3d423326fb12bdb7b66c741b79c223a8f..8cc5cfdc1a74cdfba3d4d439020ccc1767764bd4 100644 |
| --- a/remoting/protocol/auth_util.h |
| +++ b/remoting/protocol/auth_util.h |
| @@ -31,18 +31,10 @@ const size_t kSharedSecretHashLength = 32; |
| // Size of the HMAC-SHA-256 digest used for channel authentication. |
| const size_t kAuthDigestLength = 32; |
| -// TODO(sergeyu): The following two methods are used for V1 |
| -// authentication. Remove them when we finally switch to V2 |
| -// authentication method. crbug.com/110483 . |
| - |
| -// Generates auth token for the specified |jid| and |access_code|. |
| -std::string GenerateSupportAuthToken(const std::string& jid, |
| - const std::string& access_code); |
| - |
| -// Verifies validity of an |access_token|. |
| -bool VerifySupportAuthToken(const std::string& jid, |
| - const std::string& access_code, |
| - const std::string& auth_token); |
| +// Applies the specified hash function to |shared_secret| with the |
|
Jamie
2016/03/08 02:17:38
There is no specified hash function. Perhaps s/the
Sergey Ulanov
2016/03/08 18:32:40
Done.
|
| +// specified |tag| as a key. |
| +std::string GetSharedSecretHash(const std::string& tag, |
| + const std::string& shared_secret); |
| // Returns authentication bytes that must be used for the given |
| // |socket|. Empty string is returned in case of failure. |