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

Side by Side Diff: content/child/webcrypto/platform_crypto_openssl.cc

Issue 203753009: [webcrypto] Add PKCS#8 export for RSA private keys for NSS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 9 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 #include "content/child/webcrypto/platform_crypto.h" 5 #include "content/child/webcrypto/platform_crypto.h"
6 6
7 #include <vector> 7 #include <vector>
8 #include <openssl/aes.h> 8 #include <openssl/aes.h>
9 #include <openssl/evp.h> 9 #include <openssl/evp.h>
10 #include <openssl/hmac.h> 10 #include <openssl/hmac.h>
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 blink::WebCryptoKey* key) { 380 blink::WebCryptoKey* key) {
381 // TODO(eroman): http://crbug.com/267888 381 // TODO(eroman): http://crbug.com/267888
382 return Status::ErrorUnsupported(); 382 return Status::ErrorUnsupported();
383 } 383 }
384 384
385 Status ExportKeySpki(PublicKey* key, blink::WebArrayBuffer* buffer) { 385 Status ExportKeySpki(PublicKey* key, blink::WebArrayBuffer* buffer) {
386 // TODO(eroman): http://crbug.com/267888 386 // TODO(eroman): http://crbug.com/267888
387 return Status::ErrorUnsupported(); 387 return Status::ErrorUnsupported();
388 } 388 }
389 389
390 Status ExportKeyPkcs8(PrivateKey* key,
391 const blink::WebCryptoKeyAlgorithm& key_algorithm,
392 blink::WebArrayBuffer* buffer) {
393 // TODO(eroman): http://crbug.com/267888
394 return Status::ErrorUnsupported();
395 }
396
390 Status WrapSymKeyAesKw(SymKey* wrapping_key, 397 Status WrapSymKeyAesKw(SymKey* wrapping_key,
391 SymKey* key, 398 SymKey* key,
392 blink::WebArrayBuffer* buffer) { 399 blink::WebArrayBuffer* buffer) {
393 // TODO(eroman): http://crbug.com/267888 400 // TODO(eroman): http://crbug.com/267888
394 return Status::ErrorUnsupported(); 401 return Status::ErrorUnsupported();
395 } 402 }
396 403
397 Status UnwrapSymKeyAesKw(const CryptoData& wrapped_key_data, 404 Status UnwrapSymKeyAesKw(const CryptoData& wrapped_key_data,
398 SymKey* wrapping_key, 405 SymKey* wrapping_key,
399 const blink::WebCryptoAlgorithm& algorithm, 406 const blink::WebCryptoAlgorithm& algorithm,
(...skipping 26 matching lines...) Expand all
426 blink::WebCryptoKey* key) { 433 blink::WebCryptoKey* key) {
427 // TODO(eroman): http://crbug.com/267888 434 // TODO(eroman): http://crbug.com/267888
428 return Status::ErrorUnsupported(); 435 return Status::ErrorUnsupported();
429 } 436 }
430 437
431 } // namespace platform 438 } // namespace platform
432 439
433 } // namespace webcrypto 440 } // namespace webcrypto
434 441
435 } // namespace content 442 } // namespace content
OLDNEW
« no previous file with comments | « content/child/webcrypto/platform_crypto_nss.cc ('k') | content/child/webcrypto/shared_crypto.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698