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

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

Issue 2407633002: Use new BoringSSL scopers in //components. (Closed)
Patch Set: Created 4 years, 2 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.cc ('k') | components/webcrypto/algorithms/ecdsa.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 <openssl/ec.h> 5 #include <openssl/ec.h>
6 #include <openssl/ecdh.h> 6 #include <openssl/ecdh.h>
7 #include <openssl/evp.h> 7 #include <openssl/evp.h>
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/memory/ptr_util.h" 12 #include "base/memory/ptr_util.h"
13 #include "components/webcrypto/algorithm_implementation.h" 13 #include "components/webcrypto/algorithm_implementation.h"
14 #include "components/webcrypto/algorithms/ec.h" 14 #include "components/webcrypto/algorithms/ec.h"
15 #include "components/webcrypto/algorithms/util.h" 15 #include "components/webcrypto/algorithms/util.h"
16 #include "components/webcrypto/blink_key_handle.h" 16 #include "components/webcrypto/blink_key_handle.h"
17 #include "components/webcrypto/crypto_data.h" 17 #include "components/webcrypto/crypto_data.h"
18 #include "components/webcrypto/generate_key_result.h" 18 #include "components/webcrypto/generate_key_result.h"
19 #include "components/webcrypto/status.h" 19 #include "components/webcrypto/status.h"
20 #include "crypto/openssl_util.h" 20 #include "crypto/openssl_util.h"
21 #include "crypto/scoped_openssl_types.h"
22 #include "crypto/secure_util.h" 21 #include "crypto/secure_util.h"
23 #include "third_party/WebKit/public/platform/WebCryptoAlgorithmParams.h" 22 #include "third_party/WebKit/public/platform/WebCryptoAlgorithmParams.h"
24 #include "third_party/WebKit/public/platform/WebCryptoKey.h" 23 #include "third_party/WebKit/public/platform/WebCryptoKey.h"
25 #include "third_party/WebKit/public/platform/WebCryptoKeyAlgorithm.h" 24 #include "third_party/WebKit/public/platform/WebCryptoKeyAlgorithm.h"
26 25
27 namespace webcrypto { 26 namespace webcrypto {
28 27
29 namespace { 28 namespace {
30 29
31 // TODO(eroman): Support the "raw" format for ECDH key import + export, as 30 // TODO(eroman): Support the "raw" format for ECDH key import + export, as
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 } 120 }
122 }; 121 };
123 122
124 } // namespace 123 } // namespace
125 124
126 std::unique_ptr<AlgorithmImplementation> CreateEcdhImplementation() { 125 std::unique_ptr<AlgorithmImplementation> CreateEcdhImplementation() {
127 return base::WrapUnique(new EcdhImplementation); 126 return base::WrapUnique(new EcdhImplementation);
128 } 127 }
129 128
130 } // namespace webcrypto 129 } // namespace webcrypto
OLDNEW
« no previous file with comments | « components/webcrypto/algorithms/ec.cc ('k') | components/webcrypto/algorithms/ecdsa.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698