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

Side by Side Diff: components/sync/base/nigori.h

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 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
« no previous file with comments | « components/sync/base/model_type_test_util.cc ('k') | components/sync/base/nigori.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 SYNC_UTIL_NIGORI_H_ 5 #ifndef COMPONENTS_SYNC_BASE_NIGORI_H_
6 #define SYNC_UTIL_NIGORI_H_ 6 #define COMPONENTS_SYNC_BASE_NIGORI_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
11 #include <string> 11 #include <string>
12 12
13 #include "sync/base/sync_export.h" 13 #include "components/sync/base/sync_export.h"
14 14
15 namespace crypto { 15 namespace crypto {
16 class SymmetricKey; 16 class SymmetricKey;
17 } // namespace crypto 17 } // namespace crypto
18 18
19 namespace syncer { 19 namespace syncer {
20 20
21 // A (partial) implementation of Nigori, a protocol to securely store secrets in 21 // A (partial) implementation of Nigori, a protocol to securely store secrets in
22 // the cloud. This implementation does not support server authentication or 22 // the cloud. This implementation does not support server authentication or
23 // assisted key derivation. 23 // assisted key derivation.
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 static const size_t kSigningIterations = 1004; 78 static const size_t kSigningIterations = 1004;
79 79
80 private: 80 private:
81 std::unique_ptr<crypto::SymmetricKey> user_key_; 81 std::unique_ptr<crypto::SymmetricKey> user_key_;
82 std::unique_ptr<crypto::SymmetricKey> encryption_key_; 82 std::unique_ptr<crypto::SymmetricKey> encryption_key_;
83 std::unique_ptr<crypto::SymmetricKey> mac_key_; 83 std::unique_ptr<crypto::SymmetricKey> mac_key_;
84 }; 84 };
85 85
86 } // namespace syncer 86 } // namespace syncer
87 87
88 #endif // SYNC_UTIL_NIGORI_H_ 88 #endif // COMPONENTS_SYNC_BASE_NIGORI_H_
OLDNEW
« no previous file with comments | « components/sync/base/model_type_test_util.cc ('k') | components/sync/base/nigori.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698