| OLD | NEW |
| 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 "base/json/json_string_value_serializer.h" | 5 #include "base/json/json_string_value_serializer.h" |
| 6 #include "base/memory/scoped_ptr.h" |
| 6 #include "base/strings/stringprintf.h" | 7 #include "base/strings/stringprintf.h" |
| 7 #include "chromeos/dbus/fake_easy_unlock_client.h" | 8 #include "chromeos/dbus/fake_easy_unlock_client.h" |
| 8 | 9 |
| 9 namespace { | 10 namespace { |
| 10 | 11 |
| 11 // Keys generated using |GenerateEcP256KeyPair| are in the following format: | 12 // Keys generated using |GenerateEcP256KeyPair| are in the following format: |
| 12 // "{<key_type>: <key_pair_index>}". | 13 // "{<key_type>: <key_pair_index>}". |
| 13 // <key_pair_index> is an integer identifying | 14 // <key_pair_index> is an integer identifying |
| 14 // the key pair. | 15 // the key pair. |
| 15 // <key_type> specifies whether the key is public or private. It can have one | 16 // <key_type> specifies whether the key is public or private. It can have one |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 "\"signature_type\": \"%s\"" | 144 "\"signature_type\": \"%s\"" |
| 144 "}}", | 145 "}}", |
| 145 message.c_str(), | 146 message.c_str(), |
| 146 options.key.c_str(), | 147 options.key.c_str(), |
| 147 options.associated_data.c_str(), | 148 options.associated_data.c_str(), |
| 148 options.encryption_type.c_str(), | 149 options.encryption_type.c_str(), |
| 149 options.signature_type.c_str())); | 150 options.signature_type.c_str())); |
| 150 } | 151 } |
| 151 | 152 |
| 152 } // namespace chromeos | 153 } // namespace chromeos |
| OLD | NEW |