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

Side by Side Diff: chrome/browser/chromeos/login/easy_unlock/easy_unlock_get_keys_operation.cc

Issue 2863533003: [EasyUnlock] Serialize and store BeaconSeeds along as cryptohome key metadata. (Closed)
Patch Set: 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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 #include "chrome/browser/chromeos/login/easy_unlock/easy_unlock_get_keys_operati on.h" 5 #include "chrome/browser/chromeos/login/easy_unlock/easy_unlock_get_keys_operati on.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 } else if (entry.name == kEasyUnlockKeyMetaNameChallenge) { 118 } else if (entry.name == kEasyUnlockKeyMetaNameChallenge) {
119 if (entry.bytes) 119 if (entry.bytes)
120 device.challenge = *entry.bytes; 120 device.challenge = *entry.bytes;
121 else 121 else
122 NOTREACHED(); 122 NOTREACHED();
123 } else if (entry.name == kEasyUnlockKeyMetaNameWrappedSecret) { 123 } else if (entry.name == kEasyUnlockKeyMetaNameWrappedSecret) {
124 if (entry.bytes) 124 if (entry.bytes)
125 device.wrapped_secret = *entry.bytes; 125 device.wrapped_secret = *entry.bytes;
126 else 126 else
127 NOTREACHED(); 127 NOTREACHED();
128 } else if (entry.name == kEasyUnlockKeyMetaNameSerializedBeaconSeeds) {
129 if (entry.bytes)
130 device.serialized_beacon_seeds = *entry.bytes;
131 else
132 NOTREACHED();
128 } else { 133 } else {
129 PA_LOG(WARNING) << "Unknown Easy unlock key data entry, name=" 134 PA_LOG(WARNING) << "Unknown EasyUnlock key data entry, name="
130 << entry.name; 135 << entry.name;
131 } 136 }
132 } 137 }
133 devices_.push_back(device); 138 devices_.push_back(device);
134 139
135 ++key_index_; 140 ++key_index_;
136 GetKeyData(); 141 GetKeyData();
137 } 142 }
138 143
139 } // namespace chromeos 144 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698