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

Side by Side Diff: components/cryptauth/session_keys.h

Issue 2899863002: Updating D2D protocol to v1 to support separate sequence numbers. (Closed)
Patch Set: Fixing tests 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_CRYPTAUTH_SESSION_KEYS_H_
6 #define COMPONENTS_CRYPTAUTH_SESSION_KEYS_H_
7
8 #include <string>
9
10 #include "base/macros.h"
11
12 namespace cryptauth {
13
14 class SessionKeys {
Tim Song 2017/05/22 23:18:24 Add a brief class comment here.
sacomoto 2017/05/23 09:50:14 Done.
15 public:
16 // Creates a WireMessage containing |payload| for feature |feature|.
Tim Song 2017/05/22 23:18:24 Remove comment.
sacomoto 2017/05/23 09:50:14 Done.
17 explicit SessionKeys(const std::string& master_symmetric_key);
18
19 virtual ~SessionKeys();
20
21 virtual std::string initiator_encode_key() const;
22 virtual std::string responder_encode_key() const;
23
24 private:
25 // The initiator encoding key.
26 std::string initiator_encode_key_;
27
28 // The responder encoding key.
29 std::string responder_encode_key_;
30
31 DISALLOW_COPY_AND_ASSIGN(SessionKeys);
32 };
33
34 } // namespace cryptauth
35
36 #endif // COMPONENTS_CRYPTAUTH_SESSION_KEYS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698