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

Unified Diff: remoting/protocol/pairing_client_authenticator.cc

Issue 1755273003: Simplify AuthenticationMethod type and PIN hash handling. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
Index: remoting/protocol/pairing_client_authenticator.cc
diff --git a/remoting/protocol/pairing_client_authenticator.cc b/remoting/protocol/pairing_client_authenticator.cc
index 0d3037aa4ea12f710eb503b3ecbf474cacfa2eac..5c03ab538451fa13c89ae630c0179faa1905bb6c 100644
--- a/remoting/protocol/pairing_client_authenticator.cc
+++ b/remoting/protocol/pairing_client_authenticator.cc
@@ -62,9 +62,8 @@ void PairingClientAuthenticator::OnPinFetched(
const SetAuthenticatorCallback& callback,
const std::string& pin) {
callback.Run(V2Authenticator::CreateForClient(
- AuthenticationMethod::ApplyHashFunction(
- AuthenticationMethod::HMAC_SHA256,
- authentication_tag_, pin),
+ ApplySharedSecretHashFunction(HashFunction::HMAC_SHA256,
+ authentication_tag_, pin),
initial_state));
}

Powered by Google App Engine
This is Rietveld 408576698