| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // NOTE: this file is Winodws specific. | 5 // NOTE: this file is Winodws specific. |
| 6 | 6 |
| 7 #include "chrome/browser/sync/util/data_encryption.h" | 7 #include "chrome/browser/sync/encryption/data_encryption.h" |
| 8 | 8 |
| 9 #include <windows.h> | 9 #include <windows.h> |
| 10 #include <wincrypt.h> | 10 #include <wincrypt.h> |
| 11 | 11 |
| 12 #include <cstddef> | 12 #include <cstddef> |
| 13 #include <string> | 13 #include <string> |
| 14 #include <vector> | 14 #include <vector> |
| 15 | 15 |
| 16 #include "base/logging.h" | 16 #include "base/logging.h" |
| 17 | 17 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 45 &decrypted_data)) { | 45 &decrypted_data)) { |
| 46 LOG(ERROR) << "Decryption fails: "; | 46 LOG(ERROR) << "Decryption fails: "; |
| 47 return false; | 47 return false; |
| 48 } else { | 48 } else { |
| 49 out_data->assign(reinterpret_cast<const char*>(decrypted_data.pbData), | 49 out_data->assign(reinterpret_cast<const char*>(decrypted_data.pbData), |
| 50 decrypted_data.cbData); | 50 decrypted_data.cbData); |
| 51 LocalFree(decrypted_data.pbData); | 51 LocalFree(decrypted_data.pbData); |
| 52 return true; | 52 return true; |
| 53 } | 53 } |
| 54 } | 54 } |
| OLD | NEW |