| 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 "components/webcrypto/algorithms/aes.h" | 5 #include "components/webcrypto/algorithms/aes.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include "base/logging.h" | 9 #include "base/logging.h" |
| 8 #include "components/webcrypto/algorithms/secret_key_util.h" | 10 #include "components/webcrypto/algorithms/secret_key_util.h" |
| 9 #include "components/webcrypto/blink_key_handle.h" | 11 #include "components/webcrypto/blink_key_handle.h" |
| 10 #include "components/webcrypto/crypto_data.h" | 12 #include "components/webcrypto/crypto_data.h" |
| 11 #include "components/webcrypto/jwk.h" | 13 #include "components/webcrypto/jwk.h" |
| 12 #include "components/webcrypto/status.h" | 14 #include "components/webcrypto/status.h" |
| 13 #include "third_party/WebKit/public/platform/WebCryptoAlgorithmParams.h" | 15 #include "third_party/WebKit/public/platform/WebCryptoAlgorithmParams.h" |
| 14 #include "third_party/WebKit/public/platform/WebCryptoKeyAlgorithm.h" | 16 #include "third_party/WebKit/public/platform/WebCryptoKeyAlgorithm.h" |
| 15 | 17 |
| 16 namespace webcrypto { | 18 namespace webcrypto { |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 return Status::Success(); | 188 return Status::Success(); |
| 187 | 189 |
| 188 // 192-bit AES is intentionally unsupported (http://crbug.com/533699). | 190 // 192-bit AES is intentionally unsupported (http://crbug.com/533699). |
| 189 if (*length_bits == 192) | 191 if (*length_bits == 192) |
| 190 return Status::ErrorAes192BitUnsupported(); | 192 return Status::ErrorAes192BitUnsupported(); |
| 191 | 193 |
| 192 return Status::ErrorGetAesKeyLength(); | 194 return Status::ErrorGetAesKeyLength(); |
| 193 } | 195 } |
| 194 | 196 |
| 195 } // namespace webcrypto | 197 } // namespace webcrypto |
| OLD | NEW |