| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |