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

Side by Side Diff: crypto/rsa_private_key_openssl.cc

Issue 401153002: Switch to BoringSSL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase across DEPS change Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « crypto/openssl_util.cc ('k') | crypto/scoped_openssl_types.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "crypto/rsa_private_key.h" 5 #include "crypto/rsa_private_key.h"
6 6
7 #include <openssl/bio.h>
8 #include <openssl/bn.h>
7 #include <openssl/evp.h> 9 #include <openssl/evp.h>
8 #include <openssl/pkcs12.h> 10 #include <openssl/pkcs12.h>
9 #include <openssl/rsa.h> 11 #include <openssl/rsa.h>
10 12
11 #include "base/logging.h" 13 #include "base/logging.h"
12 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
13 #include "crypto/openssl_util.h" 15 #include "crypto/openssl_util.h"
14 #include "crypto/scoped_openssl_types.h" 16 #include "crypto/scoped_openssl_types.h"
15 17
16 namespace crypto { 18 namespace crypto {
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 120
119 bool RSAPrivateKey::ExportPrivateKey(std::vector<uint8>* output) const { 121 bool RSAPrivateKey::ExportPrivateKey(std::vector<uint8>* output) const {
120 return ExportKey(key_, i2d_PKCS8PrivateKeyInfo_bio, output); 122 return ExportKey(key_, i2d_PKCS8PrivateKeyInfo_bio, output);
121 } 123 }
122 124
123 bool RSAPrivateKey::ExportPublicKey(std::vector<uint8>* output) const { 125 bool RSAPrivateKey::ExportPublicKey(std::vector<uint8>* output) const {
124 return ExportKey(key_, i2d_PUBKEY_bio, output); 126 return ExportKey(key_, i2d_PUBKEY_bio, output);
125 } 127 }
126 128
127 } // namespace crypto 129 } // namespace crypto
OLDNEW
« no previous file with comments | « crypto/openssl_util.cc ('k') | crypto/scoped_openssl_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698