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

Side by Side Diff: components/webcrypto/nss/rsa_oaep_nss.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 <cryptohi.h> 5 #include <cryptohi.h>
6 #include <keyhi.h> 6 #include <keyhi.h>
7 #include <pk11pub.h> 7 #include <pk11pub.h>
8 #include <secerr.h> 8 #include <secerr.h>
9 #include <sechash.h> 9 #include <sechash.h>
10 10
11 #include "base/stl_util.h" 11 #include "base/stl_util.h"
12 #include "content/child/webcrypto/crypto_data.h" 12 #include "components/webcrypto/crypto_data.h"
13 #include "content/child/webcrypto/nss/key_nss.h" 13 #include "components/webcrypto/nss/key_nss.h"
14 #include "content/child/webcrypto/nss/rsa_hashed_algorithm_nss.h" 14 #include "components/webcrypto/nss/rsa_hashed_algorithm_nss.h"
15 #include "content/child/webcrypto/nss/util_nss.h" 15 #include "components/webcrypto/nss/util_nss.h"
16 #include "content/child/webcrypto/status.h" 16 #include "components/webcrypto/status.h"
17 #include "content/child/webcrypto/webcrypto_util.h" 17 #include "components/webcrypto/webcrypto_util.h"
18 #include "third_party/WebKit/public/platform/WebCryptoAlgorithmParams.h" 18 #include "third_party/WebKit/public/platform/WebCryptoAlgorithmParams.h"
19 #include "third_party/WebKit/public/platform/WebCryptoKeyAlgorithm.h" 19 #include "third_party/WebKit/public/platform/WebCryptoKeyAlgorithm.h"
20 20
21 namespace content { 21 namespace components {
22 22
23 namespace webcrypto { 23 namespace webcrypto {
24 24
25 namespace { 25 namespace {
26 26
27 Status NssSupportsRsaOaep() { 27 Status NssSupportsRsaOaep() {
28 if (NssRuntimeSupport::Get()->IsRsaOaepSupported()) 28 if (NssRuntimeSupport::Get()->IsRsaOaepSupported())
29 return Status::Success(); 29 return Status::Success();
30 return Status::ErrorUnsupported( 30 return Status::ErrorUnsupported(
31 "NSS version doesn't support RSA-OAEP. Try using version 3.16.2 or " 31 "NSS version doesn't support RSA-OAEP. Try using version 3.16.2 or "
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 }; 221 };
222 222
223 } // namespace 223 } // namespace
224 224
225 AlgorithmImplementation* CreatePlatformRsaOaepImplementation() { 225 AlgorithmImplementation* CreatePlatformRsaOaepImplementation() {
226 return new RsaOaepImplementation; 226 return new RsaOaepImplementation;
227 } 227 }
228 228
229 } // namespace webcrypto 229 } // namespace webcrypto
230 230
231 } // namespace content 231 } // namespace components
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698