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

Side by Side Diff: components/webcrypto/blink_key_handle.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 COMPONENTS_WEBCRYPTO_BLINK_KEY_HANDLE_H_ 5 #ifndef COMPONENTS_WEBCRYPTO_BLINK_KEY_HANDLE_H_
6 #define COMPONENTS_WEBCRYPTO_BLINK_KEY_HANDLE_H_ 6 #define COMPONENTS_WEBCRYPTO_BLINK_KEY_HANDLE_H_
7 7
8 #include <openssl/base.h>
9 #include <stdint.h> 8 #include <stdint.h>
10 9
11 #include <vector> 10 #include <vector>
12 11
13 #include "third_party/WebKit/public/platform/WebCryptoKey.h" 12 #include "third_party/WebKit/public/platform/WebCryptoKey.h"
13 #include "third_party/boringssl/src/include/openssl/base.h"
14 14
15 // Blink keys (blink::WebCryptoKey) have an associated key handle 15 // Blink keys (blink::WebCryptoKey) have an associated key handle
16 // (blink::WebCryptoKeyHandle) used to store custom data. This is where the 16 // (blink::WebCryptoKeyHandle) used to store custom data. This is where the
17 // underlying EVP_PKEY is stored for asymmetric keys, or an std::vector 17 // underlying EVP_PKEY is stored for asymmetric keys, or an std::vector
18 // containing the bytes for symmetric keys. 18 // containing the bytes for symmetric keys.
19 // 19 //
20 // This file contains helpers for creating the key handles, and extracting 20 // This file contains helpers for creating the key handles, and extracting
21 // properties from it. 21 // properties from it.
22 22
23 namespace webcrypto { 23 namespace webcrypto {
(...skipping 27 matching lines...) Expand all
51 // TODO(eroman): This should _move_ input serialized_key_data rather than 51 // TODO(eroman): This should _move_ input serialized_key_data rather than
52 // create a copy, since all the callers are passing in vectors that are later 52 // create a copy, since all the callers are passing in vectors that are later
53 // thrown away anyway. 53 // thrown away anyway.
54 blink::WebCryptoKeyHandle* CreateAsymmetricKeyHandle( 54 blink::WebCryptoKeyHandle* CreateAsymmetricKeyHandle(
55 bssl::UniquePtr<EVP_PKEY> pkey, 55 bssl::UniquePtr<EVP_PKEY> pkey,
56 const std::vector<uint8_t>& serialized_key_data); 56 const std::vector<uint8_t>& serialized_key_data);
57 57
58 } // namespace webcrypto 58 } // namespace webcrypto
59 59
60 #endif // COMPONENTS_WEBCRYPTO_BLINK_KEY_HANDLE_H_ 60 #endif // COMPONENTS_WEBCRYPTO_BLINK_KEY_HANDLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698