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

Unified Diff: components/cryptauth/device_to_device_responder_operations.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
Index: components/cryptauth/device_to_device_responder_operations.h
diff --git a/components/cryptauth/device_to_device_responder_operations.h b/components/cryptauth/device_to_device_responder_operations.h
index 6e16db1787d85983c0129fed458697d0a33dd3e0..9aa9a230f808f468edd06074bb9edc57fd0020c7 100644
--- a/components/cryptauth/device_to_device_responder_operations.h
+++ b/components/cryptauth/device_to_device_responder_operations.h
@@ -9,6 +9,7 @@
#include "base/callback_forward.h"
#include "base/macros.h"
+#include "components/cryptauth/session_keys.h"
namespace cryptauth {
@@ -92,8 +93,7 @@ class DeviceToDeviceResponderOperations {
// is properly signed and encrypted.
// |initiator_auth_message|: The bytes of the [Local Auth] message to
// validate.
- // |session_symmetric_key|: The derived symmetric key used just for the
- // session.
+ // |session_keys|: The derived symmetric keys used just for the session.
// |persistent_symmetric_key|: The long-term symmetric key that is shared by
// the initiator and responder.
// |secure_message_delegate|: Delegate for SecureMessage operations. This
@@ -102,7 +102,7 @@ class DeviceToDeviceResponderOperations {
// |responder_auth_message| is validated successfully.
static void ValidateInitiatorAuthMessage(
const std::string& initiator_auth_message,
- const std::string& session_symmetric_key,
+ const SessionKeys& session_keys,
const std::string& persistent_symmetric_key,
const std::string& responder_auth_message,
SecureMessageDelegate* secure_message_delegate,

Powered by Google App Engine
This is Rietveld 408576698