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 "content/child/webcrypto/nss/aes_algorithm_nss.h" | 5 #include "components/webcrypto/nss/aes_algorithm_nss.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "content/child/webcrypto/crypto_data.h" | 8 #include "components/webcrypto/crypto_data.h" |
9 #include "content/child/webcrypto/jwk.h" | 9 #include "components/webcrypto/jwk.h" |
10 #include "content/child/webcrypto/nss/key_nss.h" | 10 #include "components/webcrypto/nss/key_nss.h" |
11 #include "content/child/webcrypto/nss/sym_key_nss.h" | 11 #include "components/webcrypto/nss/sym_key_nss.h" |
12 #include "content/child/webcrypto/status.h" | 12 #include "components/webcrypto/status.h" |
13 #include "content/child/webcrypto/webcrypto_util.h" | 13 #include "components/webcrypto/webcrypto_util.h" |
14 #include "third_party/WebKit/public/platform/WebCryptoKeyAlgorithm.h" | 14 #include "third_party/WebKit/public/platform/WebCryptoKeyAlgorithm.h" |
15 | 15 |
16 namespace content { | 16 namespace components { |
17 | 17 |
18 namespace webcrypto { | 18 namespace webcrypto { |
19 | 19 |
20 AesAlgorithm::AesAlgorithm(CK_MECHANISM_TYPE import_mechanism, | 20 AesAlgorithm::AesAlgorithm(CK_MECHANISM_TYPE import_mechanism, |
21 blink::WebCryptoKeyUsageMask all_key_usages, | 21 blink::WebCryptoKeyUsageMask all_key_usages, |
22 const std::string& jwk_suffix) | 22 const std::string& jwk_suffix) |
23 : import_mechanism_(import_mechanism), | 23 : import_mechanism_(import_mechanism), |
24 all_key_usages_(all_key_usages), | 24 all_key_usages_(all_key_usages), |
25 jwk_suffix_(jwk_suffix) { | 25 jwk_suffix_(jwk_suffix) { |
26 } | 26 } |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 | 135 |
136 Status AesAlgorithm::GetKeyLength( | 136 Status AesAlgorithm::GetKeyLength( |
137 const blink::WebCryptoAlgorithm& key_length_algorithm, | 137 const blink::WebCryptoAlgorithm& key_length_algorithm, |
138 bool* has_length_bits, | 138 bool* has_length_bits, |
139 unsigned int* length_bits) const { | 139 unsigned int* length_bits) const { |
140 return GetAesKeyLength(key_length_algorithm, has_length_bits, length_bits); | 140 return GetAesKeyLength(key_length_algorithm, has_length_bits, length_bits); |
141 } | 141 } |
142 | 142 |
143 } // namespace webcrypto | 143 } // namespace webcrypto |
144 | 144 |
145 } // namespace content | 145 } // namespace components |
OLD | NEW |