| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/crypto/rsa_private_key.h" | 5 #include "base/crypto/rsa_private_key.h" |
| 6 | 6 |
| 7 #include <iostream> | |
| 8 #include <list> | 7 #include <list> |
| 9 | 8 |
| 10 #include "base/logging.h" | 9 #include "base/logging.h" |
| 11 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
| 12 #include "base/string_util.h" | 11 #include "base/string_util.h" |
| 13 | 12 |
| 14 namespace { | 13 namespace { |
| 15 // Helper for error handling during key import. | 14 // Helper for error handling during key import. |
| 16 #define READ_ASSERT(truth) \ | 15 #define READ_ASSERT(truth) \ |
| 17 if (!(truth)) { \ | 16 if (!(truth)) { \ |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 return false; | 201 return false; |
| 203 } | 202 } |
| 204 | 203 |
| 205 for (size_t i = 0; i < encoded_length; ++i) | 204 for (size_t i = 0; i < encoded_length; ++i) |
| 206 output->push_back(encoded[i]); | 205 output->push_back(encoded[i]); |
| 207 | 206 |
| 208 return true; | 207 return true; |
| 209 } | 208 } |
| 210 | 209 |
| 211 } // namespace base | 210 } // namespace base |
| OLD | NEW |