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

Side by Side Diff: remoting/protocol/spake2_authenticator.h

Issue 1780403002: Enable Curve25519 in host and client for PIN-based and third-party auth. (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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef REMOTING_PROTOCOL_SPAKE2_AUTHENTICATOR_H_ 5 #ifndef REMOTING_PROTOCOL_SPAKE2_AUTHENTICATOR_H_
6 #define REMOTING_PROTOCOL_SPAKE2_AUTHENTICATOR_H_ 6 #define REMOTING_PROTOCOL_SPAKE2_AUTHENTICATOR_H_
7 7
8 #include <queue> 8 #include <queue>
9 #include <string> 9 #include <string>
10 10
(...skipping 17 matching lines...) Expand all
28 public: 28 public:
29 static scoped_ptr<Authenticator> CreateForClient( 29 static scoped_ptr<Authenticator> CreateForClient(
30 const std::string& local_id, 30 const std::string& local_id,
31 const std::string& remote_id, 31 const std::string& remote_id,
32 const std::string& shared_secret, 32 const std::string& shared_secret,
33 State initial_state); 33 State initial_state);
34 34
35 static scoped_ptr<Authenticator> CreateForHost( 35 static scoped_ptr<Authenticator> CreateForHost(
36 const std::string& local_id, 36 const std::string& local_id,
37 const std::string& remote_id, 37 const std::string& remote_id,
38 const std::string& shared_secret,
39 const std::string& local_cert, 38 const std::string& local_cert,
40 scoped_refptr<RsaKeyPair> key_pair, 39 scoped_refptr<RsaKeyPair> key_pair,
40 const std::string& shared_secret,
41 State initial_state); 41 State initial_state);
42 42
43 ~Spake2Authenticator() override; 43 ~Spake2Authenticator() override;
44 44
45 // Authenticator interface. 45 // Authenticator interface.
46 State state() const override; 46 State state() const override;
47 bool started() const override; 47 bool started() const override;
48 RejectionReason rejection_reason() const override; 48 RejectionReason rejection_reason() const override;
49 void ProcessMessage(const buzz::XmlElement* message, 49 void ProcessMessage(const buzz::XmlElement* message,
50 const base::Closure& resume_callback) override; 50 const base::Closure& resume_callback) override;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 std::string auth_key_; 90 std::string auth_key_;
91 std::string expected_verification_hash_; 91 std::string expected_verification_hash_;
92 92
93 DISALLOW_COPY_AND_ASSIGN(Spake2Authenticator); 93 DISALLOW_COPY_AND_ASSIGN(Spake2Authenticator);
94 }; 94 };
95 95
96 } // namespace protocol 96 } // namespace protocol
97 } // namespace remoting 97 } // namespace remoting
98 98
99 #endif // REMOTING_PROTOCOL_SPAKE2_AUTHENTICATOR_H_ 99 #endif // REMOTING_PROTOCOL_SPAKE2_AUTHENTICATOR_H_
OLDNEW
« no previous file with comments | « remoting/protocol/negotiating_host_authenticator.cc ('k') | remoting/protocol/spake2_authenticator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698