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

Side by Side Diff: components/webcrypto/algorithms/pbkdf2.cc

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 #include <openssl/evp.h>
6 #include <stdint.h> 5 #include <stdint.h>
7 6
8 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
9 #include "base/stl_util.h" 8 #include "base/stl_util.h"
10 #include "components/webcrypto/algorithm_implementation.h" 9 #include "components/webcrypto/algorithm_implementation.h"
11 #include "components/webcrypto/algorithms/secret_key_util.h" 10 #include "components/webcrypto/algorithms/secret_key_util.h"
12 #include "components/webcrypto/algorithms/util.h" 11 #include "components/webcrypto/algorithms/util.h"
13 #include "components/webcrypto/blink_key_handle.h" 12 #include "components/webcrypto/blink_key_handle.h"
14 #include "components/webcrypto/crypto_data.h" 13 #include "components/webcrypto/crypto_data.h"
15 #include "components/webcrypto/status.h" 14 #include "components/webcrypto/status.h"
16 #include "crypto/openssl_util.h" 15 #include "crypto/openssl_util.h"
17 #include "third_party/WebKit/public/platform/WebCryptoAlgorithmParams.h" 16 #include "third_party/WebKit/public/platform/WebCryptoAlgorithmParams.h"
18 #include "third_party/WebKit/public/platform/WebCryptoKeyAlgorithm.h" 17 #include "third_party/WebKit/public/platform/WebCryptoKeyAlgorithm.h"
18 #include "third_party/boringssl/src/include/openssl/evp.h"
19 19
20 namespace webcrypto { 20 namespace webcrypto {
21 21
22 namespace { 22 namespace {
23 23
24 const blink::WebCryptoKeyUsageMask kAllKeyUsages = 24 const blink::WebCryptoKeyUsageMask kAllKeyUsages =
25 blink::WebCryptoKeyUsageDeriveKey | blink::WebCryptoKeyUsageDeriveBits; 25 blink::WebCryptoKeyUsageDeriveKey | blink::WebCryptoKeyUsageDeriveBits;
26 26
27 class Pbkdf2Implementation : public AlgorithmImplementation { 27 class Pbkdf2Implementation : public AlgorithmImplementation {
28 public: 28 public:
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 } 126 }
127 }; 127 };
128 128
129 } // namespace 129 } // namespace
130 130
131 std::unique_ptr<AlgorithmImplementation> CreatePbkdf2Implementation() { 131 std::unique_ptr<AlgorithmImplementation> CreatePbkdf2Implementation() {
132 return base::WrapUnique(new Pbkdf2Implementation); 132 return base::WrapUnique(new Pbkdf2Implementation);
133 } 133 }
134 134
135 } // namespace webcrypto 135 } // namespace webcrypto
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698