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

Unified Diff: components/cryptauth/device_to_device_authenticator.h

Issue 2899863002: Updating D2D protocol to v1 to support separate sequence numbers. (Closed)
Patch Set: Addressing comments Created 3 years, 7 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 | « components/cryptauth/BUILD.gn ('k') | components/cryptauth/device_to_device_authenticator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/cryptauth/device_to_device_authenticator.h
diff --git a/components/cryptauth/device_to_device_authenticator.h b/components/cryptauth/device_to_device_authenticator.h
index e398206b2bab3384a0feb345a58eb1461cf6ec56..13ffa6c2226d5c37b8462b8ed9c30f7021922b6e 100644
--- a/components/cryptauth/device_to_device_authenticator.h
+++ b/components/cryptauth/device_to_device_authenticator.h
@@ -5,12 +5,15 @@
#ifndef COMPONENTS_CRYPTAUTH_DEVICE_TO_DEVICE_AUTHENTICATOR_H_
#define COMPONENTS_CRYPTAUTH_DEVICE_TO_DEVICE_AUTHENTICATOR_H_
+#include <memory>
+
#include "base/callback.h"
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
#include "components/cryptauth/authenticator.h"
#include "components/cryptauth/connection.h"
#include "components/cryptauth/connection_observer.h"
+#include "components/cryptauth/session_keys.h"
namespace base {
class Timer;
@@ -110,7 +113,7 @@ class DeviceToDeviceAuthenticator : public Authenticator,
// Callback for validating the received [Remote Auth].
void OnResponderAuthValidated(bool validated,
- const std::string& session_symmetric_key);
+ const SessionKeys& session_keys);
// Callback when [Initiator Auth] is created.
void OnInitiatorAuthCreated(const std::string& message);
@@ -168,8 +171,8 @@ class DeviceToDeviceAuthenticator : public Authenticator,
// The private key generated for the session.
std::string local_session_private_key_;
- // The derived symmetric key for the session.
- std::string session_symmetric_key_;
+ // The derived symmetric keys for the session.
+ SessionKeys session_keys_;
base::WeakPtrFactory<DeviceToDeviceAuthenticator> weak_ptr_factory_;
« no previous file with comments | « components/cryptauth/BUILD.gn ('k') | components/cryptauth/device_to_device_authenticator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698