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

Side by Side Diff: crypto/rsa_private_key.h

Issue 2449873005: include boringssl headers from third_party explicitly (Closed)
Patch Set: review comments 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CRYPTO_RSA_PRIVATE_KEY_H_ 5 #ifndef CRYPTO_RSA_PRIVATE_KEY_H_
6 #define CRYPTO_RSA_PRIVATE_KEY_H_ 6 #define CRYPTO_RSA_PRIVATE_KEY_H_
7 7
8 #include <openssl/base.h>
9 #include <stddef.h> 8 #include <stddef.h>
10 #include <stdint.h> 9 #include <stdint.h>
11 10
12 #include <memory> 11 #include <memory>
13 #include <vector> 12 #include <vector>
14 13
15 #include "base/macros.h" 14 #include "base/macros.h"
16 #include "build/build_config.h" 15 #include "build/build_config.h"
17 #include "crypto/crypto_export.h" 16 #include "crypto/crypto_export.h"
17 #include "third_party/boringssl/src/include/openssl/base.h"
18 18
19 namespace crypto { 19 namespace crypto {
20 20
21 // Encapsulates an RSA private key. Can be used to generate new keys, export 21 // Encapsulates an RSA private key. Can be used to generate new keys, export
22 // keys to other formats, or to extract a public key. 22 // keys to other formats, or to extract a public key.
23 // TODO(hclam): This class should be ref-counted so it can be reused easily. 23 // TODO(hclam): This class should be ref-counted so it can be reused easily.
24 class CRYPTO_EXPORT RSAPrivateKey { 24 class CRYPTO_EXPORT RSAPrivateKey {
25 public: 25 public:
26 ~RSAPrivateKey(); 26 ~RSAPrivateKey();
27 27
(...skipping 27 matching lines...) Expand all
55 RSAPrivateKey(); 55 RSAPrivateKey();
56 56
57 bssl::UniquePtr<EVP_PKEY> key_; 57 bssl::UniquePtr<EVP_PKEY> key_;
58 58
59 DISALLOW_COPY_AND_ASSIGN(RSAPrivateKey); 59 DISALLOW_COPY_AND_ASSIGN(RSAPrivateKey);
60 }; 60 };
61 61
62 } // namespace crypto 62 } // namespace crypto
63 63
64 #endif // CRYPTO_RSA_PRIVATE_KEY_H_ 64 #endif // CRYPTO_RSA_PRIVATE_KEY_H_
OLDNEW
« chrome/common/DEPS ('K') | « crypto/openssl_util.cc ('k') | crypto/rsa_private_key.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698