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 "base/stl_util.h" | 5 #include "base/stl_util.h" |
6 #include "content/child/webcrypto/algorithm_implementation.h" | 6 #include "components/webcrypto/algorithm_implementation.h" |
7 #include "content/child/webcrypto/crypto_data.h" | 7 #include "components/webcrypto/crypto_data.h" |
8 #include "content/child/webcrypto/openssl/key_openssl.h" | 8 #include "components/webcrypto/openssl/key_openssl.h" |
9 #include "content/child/webcrypto/openssl/util_openssl.h" | 9 #include "components/webcrypto/openssl/util_openssl.h" |
10 #include "content/child/webcrypto/status.h" | 10 #include "components/webcrypto/status.h" |
11 #include "content/child/webcrypto/webcrypto_util.h" | 11 #include "components/webcrypto/webcrypto_util.h" |
12 #include "crypto/openssl_util.h" | 12 #include "crypto/openssl_util.h" |
13 #include "third_party/WebKit/public/platform/WebCryptoAlgorithmParams.h" | 13 #include "third_party/WebKit/public/platform/WebCryptoAlgorithmParams.h" |
14 #include "third_party/WebKit/public/platform/WebCryptoKeyAlgorithm.h" | 14 #include "third_party/WebKit/public/platform/WebCryptoKeyAlgorithm.h" |
15 | 15 |
16 namespace content { | |
17 | |
18 namespace webcrypto { | 16 namespace webcrypto { |
19 | 17 |
20 namespace { | 18 namespace { |
21 | 19 |
22 const blink::WebCryptoKeyUsageMask kAllKeyUsages = | 20 const blink::WebCryptoKeyUsageMask kAllKeyUsages = |
23 blink::WebCryptoKeyUsageDeriveKey | blink::WebCryptoKeyUsageDeriveBits; | 21 blink::WebCryptoKeyUsageDeriveKey | blink::WebCryptoKeyUsageDeriveBits; |
24 | 22 |
25 class Pbkdf2Implementation : public AlgorithmImplementation { | 23 class Pbkdf2Implementation : public AlgorithmImplementation { |
26 public: | 24 public: |
27 Pbkdf2Implementation() {} | 25 Pbkdf2Implementation() {} |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 } | 109 } |
112 }; | 110 }; |
113 | 111 |
114 } // namespace | 112 } // namespace |
115 | 113 |
116 AlgorithmImplementation* CreatePlatformPbkdf2Implementation() { | 114 AlgorithmImplementation* CreatePlatformPbkdf2Implementation() { |
117 return new Pbkdf2Implementation; | 115 return new Pbkdf2Implementation; |
118 } | 116 } |
119 | 117 |
120 } // namespace webcrypto | 118 } // namespace webcrypto |
121 | |
122 } // namespace content | |
OLD | NEW |