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

Side by Side Diff: crypto/ec_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_EC_PRIVATE_KEY_H_ 5 #ifndef CRYPTO_EC_PRIVATE_KEY_H_
6 #define CRYPTO_EC_PRIVATE_KEY_H_ 6 #define CRYPTO_EC_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 <string> 12 #include <string>
14 #include <vector> 13 #include <vector>
15 14
16 #include "base/macros.h" 15 #include "base/macros.h"
17 #include "build/build_config.h" 16 #include "build/build_config.h"
18 #include "crypto/crypto_export.h" 17 #include "crypto/crypto_export.h"
18 #include "third_party/boringssl/src/include/openssl/base.h"
19 19
20 namespace crypto { 20 namespace crypto {
21 21
22 // Encapsulates an elliptic curve (EC) private key. Can be used to generate new 22 // Encapsulates an elliptic curve (EC) private key. Can be used to generate new
23 // keys, export keys to other formats, or to extract a public key. 23 // keys, export keys to other formats, or to extract a public key.
24 // TODO(mattm): make this and RSAPrivateKey implement some PrivateKey interface. 24 // TODO(mattm): make this and RSAPrivateKey implement some PrivateKey interface.
25 // (The difference in types of key() and public_key() make this a little 25 // (The difference in types of key() and public_key() make this a little
26 // tricky.) 26 // tricky.)
27 class CRYPTO_EXPORT ECPrivateKey { 27 class CRYPTO_EXPORT ECPrivateKey {
28 public: 28 public:
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 83
84 bssl::UniquePtr<EVP_PKEY> key_; 84 bssl::UniquePtr<EVP_PKEY> key_;
85 85
86 DISALLOW_COPY_AND_ASSIGN(ECPrivateKey); 86 DISALLOW_COPY_AND_ASSIGN(ECPrivateKey);
87 }; 87 };
88 88
89 89
90 } // namespace crypto 90 } // namespace crypto
91 91
92 #endif // CRYPTO_EC_PRIVATE_KEY_H_ 92 #endif // CRYPTO_EC_PRIVATE_KEY_H_
OLDNEW
« chrome/common/DEPS ('K') | « crypto/curve25519.cc ('k') | crypto/ec_private_key.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698