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

Side by Side Diff: content/child/webcrypto/shared_crypto.h

Issue 287133004: [webcrypto] Add JWK import/export of RSA private keys (NSS). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add JWK private key import as well. Created 6 years, 7 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 | Annotate | Revision Log
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 #ifndef CONTENT_CHILD_WEBCRYPTO_SHARED_CRYPTO_H_ 5 #ifndef CONTENT_CHILD_WEBCRYPTO_SHARED_CRYPTO_H_
6 #define CONTENT_CHILD_WEBCRYPTO_SHARED_CRYPTO_H_ 6 #define CONTENT_CHILD_WEBCRYPTO_SHARED_CRYPTO_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 153
154 // Called on the target Blink thread. 154 // Called on the target Blink thread.
155 CONTENT_EXPORT bool DeserializeKeyForClone( 155 CONTENT_EXPORT bool DeserializeKeyForClone(
156 const blink::WebCryptoKeyAlgorithm& algorithm, 156 const blink::WebCryptoKeyAlgorithm& algorithm,
157 blink::WebCryptoKeyType type, 157 blink::WebCryptoKeyType type,
158 bool extractable, 158 bool extractable,
159 blink::WebCryptoKeyUsageMask usage_mask, 159 blink::WebCryptoKeyUsageMask usage_mask,
160 const CryptoData& key_data, 160 const CryptoData& key_data,
161 blink::WebCryptoKey* key); 161 blink::WebCryptoKey* key);
162 162
163 namespace platform {
164 class SymKey;
165 class PublicKey;
166 class PrivateKey;
167 }
168
169 Status ToPlatformSymKey(const blink::WebCryptoKey& key, platform::SymKey** out);
170
171 Status ToPlatformPublicKey(const blink::WebCryptoKey& key,
172 platform::PublicKey** out);
173
174 Status ToPlatformPrivateKey(const blink::WebCryptoKey& key,
175 platform::PrivateKey** out);
Ryan Sleevi 2014/05/19 00:10:34 Feels like a layering violation. I'm not sure why
eroman 2014/05/19 18:51:09 I exposed these for re-use in jwk.cc. jwk.cc was
176
163 } // namespace webcrypto 177 } // namespace webcrypto
164 178
165 } // namespace content 179 } // namespace content
166 180
167 #endif // CONTENT_CHILD_WEBCRYPTO_SHARED_CRYPTO_H_ 181 #endif // CONTENT_CHILD_WEBCRYPTO_SHARED_CRYPTO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698