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

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

Issue 1549993003: Switch to standard integer types in components/, part 4 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
« no previous file with comments | « components/webcrypto/algorithms/ec.h ('k') | components/webcrypto/algorithms/ecdh.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/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
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
OLDNEW
« no previous file with comments | « components/webcrypto/algorithms/ec.h ('k') | components/webcrypto/algorithms/ecdh.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698