OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/aes.h> | |
6 #include <stddef.h> | 5 #include <stddef.h> |
7 #include <stdint.h> | 6 #include <stdint.h> |
8 | 7 |
9 #include <vector> | 8 #include <vector> |
10 | 9 |
11 #include "base/location.h" | 10 #include "base/location.h" |
12 #include "base/memory/ptr_util.h" | 11 #include "base/memory/ptr_util.h" |
13 #include "base/numerics/safe_math.h" | 12 #include "base/numerics/safe_math.h" |
14 #include "components/webcrypto/algorithms/aes.h" | 13 #include "components/webcrypto/algorithms/aes.h" |
15 #include "components/webcrypto/blink_key_handle.h" | 14 #include "components/webcrypto/blink_key_handle.h" |
16 #include "components/webcrypto/crypto_data.h" | 15 #include "components/webcrypto/crypto_data.h" |
17 #include "components/webcrypto/status.h" | 16 #include "components/webcrypto/status.h" |
18 #include "crypto/openssl_util.h" | 17 #include "crypto/openssl_util.h" |
| 18 #include "third_party/boringssl/src/include/openssl/aes.h" |
19 | 19 |
20 namespace webcrypto { | 20 namespace webcrypto { |
21 | 21 |
22 namespace { | 22 namespace { |
23 | 23 |
24 class AesKwImplementation : public AesAlgorithm { | 24 class AesKwImplementation : public AesAlgorithm { |
25 public: | 25 public: |
26 AesKwImplementation() | 26 AesKwImplementation() |
27 : AesAlgorithm( | 27 : AesAlgorithm( |
28 blink::WebCryptoKeyUsageWrapKey | blink::WebCryptoKeyUsageUnwrapKey, | 28 blink::WebCryptoKeyUsageWrapKey | blink::WebCryptoKeyUsageUnwrapKey, |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 } | 101 } |
102 }; | 102 }; |
103 | 103 |
104 } // namespace | 104 } // namespace |
105 | 105 |
106 std::unique_ptr<AlgorithmImplementation> CreateAesKwImplementation() { | 106 std::unique_ptr<AlgorithmImplementation> CreateAesKwImplementation() { |
107 return base::WrapUnique(new AesKwImplementation); | 107 return base::WrapUnique(new AesKwImplementation); |
108 } | 108 } |
109 | 109 |
110 } // namespace webcrypto | 110 } // namespace webcrypto |
OLD | NEW |