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

Unified Diff: remoting/protocol/authentication_method.h

Issue 1768383004: Cleanup AuthenticatorMethod usage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 | « remoting/protocol/auth_util.cc ('k') | remoting/protocol/authentication_method.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/authentication_method.h
diff --git a/remoting/protocol/authentication_method.h b/remoting/protocol/authentication_method.h
deleted file mode 100644
index 1b8dc46bddf5b09f0b09925e3bf31f56334e9f1c..0000000000000000000000000000000000000000
--- a/remoting/protocol/authentication_method.h
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-#ifndef REMOTING_PROTOCOL_AUTHENTICATION_METHOD_H_
-#define REMOTING_PROTOCOL_AUTHENTICATION_METHOD_H_
-
-#include <string>
-
-namespace remoting {
-namespace protocol {
-
-class Authenticator;
-
-// AuthenticationMethod represents an authentication algorithm.
-enum class AuthenticationMethod {
- INVALID,
- SPAKE2_SHARED_SECRET_PLAIN,
- SPAKE2_SHARED_SECRET_HMAC,
- SPAKE2_PAIR,
- THIRD_PARTY
-};
-
-enum class HashFunction {
- NONE,
- HMAC_SHA256,
-};
-
-// Parses a string that defines an authentication method. Returns
-// AuthenticationMethod::INVALID if the string is invalid.
-AuthenticationMethod ParseAuthenticationMethodString(const std::string& value);
-
-// Returns string representation of |method|.
-const std::string AuthenticationMethodToString(AuthenticationMethod method);
-
-// Returns hash function applied to the shared secret on both ends for the
-// spefied |method|.
-HashFunction GetHashFunctionForAuthenticationMethod(
- AuthenticationMethod method);
-
-// Applies the specified hash function to |shared_secret| with the
-// specified |tag| as a key.
-std::string ApplySharedSecretHashFunction(HashFunction hash_function,
- const std::string& tag,
- const std::string& shared_secret);
-
-} // namespace protocol
-} // namespace remoting
-
-#endif // REMOTING_PROTOCOL_AUTHENTICATION_METHOD_H_
« no previous file with comments | « remoting/protocol/auth_util.cc ('k') | remoting/protocol/authentication_method.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698