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

Side by Side Diff: components/webcrypto/nss/rsa_ssa_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 6
7 #include "content/child/webcrypto/crypto_data.h" 7 #include "components/webcrypto/crypto_data.h"
8 #include "content/child/webcrypto/nss/key_nss.h" 8 #include "components/webcrypto/nss/key_nss.h"
9 #include "content/child/webcrypto/nss/rsa_hashed_algorithm_nss.h" 9 #include "components/webcrypto/nss/rsa_hashed_algorithm_nss.h"
10 #include "content/child/webcrypto/nss/util_nss.h" 10 #include "components/webcrypto/nss/util_nss.h"
11 #include "content/child/webcrypto/status.h" 11 #include "components/webcrypto/status.h"
12 #include "crypto/scoped_nss_types.h" 12 #include "crypto/scoped_nss_types.h"
13 #include "third_party/WebKit/public/platform/WebCryptoKeyAlgorithm.h" 13 #include "third_party/WebKit/public/platform/WebCryptoKeyAlgorithm.h"
14 14
15 namespace content { 15 namespace components {
16 16
17 namespace webcrypto { 17 namespace webcrypto {
18 18
19 namespace { 19 namespace {
20 20
21 class RsaSsaImplementation : public RsaHashedAlgorithm { 21 class RsaSsaImplementation : public RsaHashedAlgorithm {
22 public: 22 public:
23 RsaSsaImplementation() 23 RsaSsaImplementation()
24 : RsaHashedAlgorithm(CKF_SIGN | CKF_VERIFY, 24 : RsaHashedAlgorithm(CKF_SIGN | CKF_VERIFY,
25 blink::WebCryptoKeyUsageVerify, 25 blink::WebCryptoKeyUsageVerify,
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 }; 127 };
128 128
129 } // namespace 129 } // namespace
130 130
131 AlgorithmImplementation* CreatePlatformRsaSsaImplementation() { 131 AlgorithmImplementation* CreatePlatformRsaSsaImplementation() {
132 return new RsaSsaImplementation; 132 return new RsaSsaImplementation;
133 } 133 }
134 134
135 } // namespace webcrypto 135 } // namespace webcrypto
136 136
137 } // namespace content 137 } // namespace components
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698