Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(273)

Side by Side Diff: components/webcrypto/algorithms/ec.cc

Issue 1304063015: [refactor] Rename the webcrypto/openssl and webcrypto/test directories. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@jwk_refactor
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/openssl/ec_algorithm_openssl.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 11
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/stl_util.h" 13 #include "base/stl_util.h"
14 #include "components/webcrypto/algorithms/key.h"
15 #include "components/webcrypto/algorithms/util_openssl.h"
14 #include "components/webcrypto/crypto_data.h" 16 #include "components/webcrypto/crypto_data.h"
15 #include "components/webcrypto/generate_key_result.h" 17 #include "components/webcrypto/generate_key_result.h"
16 #include "components/webcrypto/jwk.h" 18 #include "components/webcrypto/jwk.h"
17 #include "components/webcrypto/openssl/key_openssl.h"
18 #include "components/webcrypto/openssl/util_openssl.h"
19 #include "components/webcrypto/status.h" 19 #include "components/webcrypto/status.h"
20 #include "components/webcrypto/webcrypto_util.h" 20 #include "components/webcrypto/webcrypto_util.h"
21 #include "crypto/openssl_util.h" 21 #include "crypto/openssl_util.h"
22 #include "crypto/scoped_openssl_types.h" 22 #include "crypto/scoped_openssl_types.h"
23 #include "third_party/WebKit/public/platform/WebCryptoAlgorithmParams.h" 23 #include "third_party/WebKit/public/platform/WebCryptoAlgorithmParams.h"
24 #include "third_party/WebKit/public/platform/WebCryptoKeyAlgorithm.h" 24 #include "third_party/WebKit/public/platform/WebCryptoKeyAlgorithm.h"
25 25
26 namespace webcrypto { 26 namespace webcrypto {
27 27
28 namespace { 28 namespace {
(...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after
557 557
558 if (algorithm.ecParams()->namedCurve() != 558 if (algorithm.ecParams()->namedCurve() !=
559 key->algorithm().ecParams()->namedCurve()) { 559 key->algorithm().ecParams()->namedCurve()) {
560 return Status::ErrorUnexpected(); 560 return Status::ErrorUnexpected();
561 } 561 }
562 562
563 return Status::Success(); 563 return Status::Success();
564 } 564 }
565 565
566 } // namespace webcrypto 566 } // namespace webcrypto
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698