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

Side by Side Diff: chrome/browser/extensions/api/networking_private/networking_private_crypto.cc

Issue 2464663002: chrome: move networking_private_crypto from common to browser (Closed)
Patch Set: chrome/test Created 4 years, 1 month 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/common/extensions/api/networking_private/networking_private_cry pto.h" 5 #include "chrome/browser/extensions/api/networking_private/networking_private_cr ypto.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <memory> 9 #include <memory>
10 10
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/strings/string_util.h" 12 #include "base/strings/string_util.h"
13 #include "components/cast_certificate/cast_cert_validator.h" 13 #include "components/cast_certificate/cast_cert_validator.h"
14 #include "crypto/openssl_util.h" 14 #include "crypto/openssl_util.h"
15 #include "crypto/rsa_private_key.h" 15 #include "crypto/rsa_private_key.h"
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 rsa, RSA_PKCS1_PADDING); 178 rsa, RSA_PKCS1_PADDING);
179 if (output_length < 0) { 179 if (output_length < 0) {
180 LOG(ERROR) << "Error during decryption."; 180 LOG(ERROR) << "Error during decryption.";
181 return false; 181 return false;
182 } 182 }
183 decrypted_output->resize(output_length); 183 decrypted_output->resize(output_length);
184 return true; 184 return true;
185 } 185 }
186 186
187 } // namespace networking_private_crypto 187 } // namespace networking_private_crypto
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698