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

Side by Side Diff: components/webcrypto/openssl/rsa_oaep_openssl.cc

Issue 1077273002: html_viewer: Move webcrypto to a place where html_viewer can use it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Copy the msvs_disabled_warnings to the new target. Created 5 years, 8 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 <openssl/evp.h> 5 #include <openssl/evp.h>
6 6
7 #include "base/stl_util.h" 7 #include "base/stl_util.h"
8 #include "content/child/webcrypto/crypto_data.h" 8 #include "components/webcrypto/crypto_data.h"
9 #include "content/child/webcrypto/openssl/key_openssl.h" 9 #include "components/webcrypto/openssl/key_openssl.h"
10 #include "content/child/webcrypto/openssl/rsa_hashed_algorithm_openssl.h" 10 #include "components/webcrypto/openssl/rsa_hashed_algorithm_openssl.h"
11 #include "content/child/webcrypto/openssl/util_openssl.h" 11 #include "components/webcrypto/openssl/util_openssl.h"
12 #include "content/child/webcrypto/status.h" 12 #include "components/webcrypto/status.h"
13 #include "crypto/openssl_util.h" 13 #include "crypto/openssl_util.h"
14 #include "crypto/scoped_openssl_types.h" 14 #include "crypto/scoped_openssl_types.h"
15 #include "third_party/WebKit/public/platform/WebCryptoAlgorithmParams.h" 15 #include "third_party/WebKit/public/platform/WebCryptoAlgorithmParams.h"
16 #include "third_party/WebKit/public/platform/WebCryptoKeyAlgorithm.h" 16 #include "third_party/WebKit/public/platform/WebCryptoKeyAlgorithm.h"
17 17
18 namespace content { 18 namespace components {
19 19
20 namespace webcrypto { 20 namespace webcrypto {
21 21
22 namespace { 22 namespace {
23 23
24 typedef int (*InitFunc)(EVP_PKEY_CTX* ctx); 24 typedef int (*InitFunc)(EVP_PKEY_CTX* ctx);
25 typedef int (*EncryptDecryptFunc)(EVP_PKEY_CTX* ctx, 25 typedef int (*EncryptDecryptFunc)(EVP_PKEY_CTX* ctx,
26 unsigned char* out, 26 unsigned char* out,
27 size_t* outlen, 27 size_t* outlen,
28 const unsigned char* in, 28 const unsigned char* in,
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 }; 140 };
141 141
142 } // namespace 142 } // namespace
143 143
144 AlgorithmImplementation* CreatePlatformRsaOaepImplementation() { 144 AlgorithmImplementation* CreatePlatformRsaOaepImplementation() {
145 return new RsaOaepImplementation; 145 return new RsaOaepImplementation;
146 } 146 }
147 147
148 } // namespace webcrypto 148 } // namespace webcrypto
149 149
150 } // namespace content 150 } // namespace components
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698