| 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/ec.h" | 5 #include "components/webcrypto/algorithms/ec.h" |
| 6 | 6 |
| 7 #include <openssl/ec.h> | 7 #include <openssl/ec.h> |
| 8 #include <openssl/ec_key.h> | 8 #include <openssl/ec_key.h> |
| 9 #include <openssl/evp.h> | 9 #include <openssl/evp.h> |
| 10 #include <openssl/pkcs12.h> | 10 #include <openssl/pkcs12.h> |
| 11 #include <stddef.h> |
| 11 | 12 |
| 12 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/macros.h" |
| 13 #include "components/webcrypto/algorithms/asymmetric_key_util.h" | 15 #include "components/webcrypto/algorithms/asymmetric_key_util.h" |
| 14 #include "components/webcrypto/algorithms/util.h" | 16 #include "components/webcrypto/algorithms/util.h" |
| 15 #include "components/webcrypto/blink_key_handle.h" | 17 #include "components/webcrypto/blink_key_handle.h" |
| 16 #include "components/webcrypto/crypto_data.h" | 18 #include "components/webcrypto/crypto_data.h" |
| 17 #include "components/webcrypto/generate_key_result.h" | 19 #include "components/webcrypto/generate_key_result.h" |
| 18 #include "components/webcrypto/jwk.h" | 20 #include "components/webcrypto/jwk.h" |
| 19 #include "components/webcrypto/status.h" | 21 #include "components/webcrypto/status.h" |
| 20 #include "crypto/openssl_util.h" | 22 #include "crypto/openssl_util.h" |
| 21 #include "crypto/scoped_openssl_types.h" | 23 #include "crypto/scoped_openssl_types.h" |
| 22 #include "third_party/WebKit/public/platform/WebCryptoAlgorithmParams.h" | 24 #include "third_party/WebKit/public/platform/WebCryptoAlgorithmParams.h" |
| (...skipping 543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 566 | 568 |
| 567 if (algorithm.ecParams()->namedCurve() != | 569 if (algorithm.ecParams()->namedCurve() != |
| 568 key->algorithm().ecParams()->namedCurve()) { | 570 key->algorithm().ecParams()->namedCurve()) { |
| 569 return Status::ErrorUnexpected(); | 571 return Status::ErrorUnexpected(); |
| 570 } | 572 } |
| 571 | 573 |
| 572 return Status::Success(); | 574 return Status::Success(); |
| 573 } | 575 } |
| 574 | 576 |
| 575 } // namespace webcrypto | 577 } // namespace webcrypto |
| OLD | NEW |