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

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: Remove static 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 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 blink::WebCryptoKey* key) { 379 blink::WebCryptoKey* key) {
380 // TODO(eroman): http://crbug.com/267888 380 // TODO(eroman): http://crbug.com/267888
381 return Status::ErrorUnsupported(); 381 return Status::ErrorUnsupported();
382 } 382 }
383 383
384 Status ExportKeySpki(PublicKey* key, blink::WebArrayBuffer* buffer) { 384 Status ExportKeySpki(PublicKey* key, blink::WebArrayBuffer* buffer) {
385 // TODO(eroman): http://crbug.com/267888 385 // TODO(eroman): http://crbug.com/267888
386 return Status::ErrorUnsupported(); 386 return Status::ErrorUnsupported();
387 } 387 }
388 388
389 Status ExportKeyPkcs8(PrivateKey* key,
390 const blink::WebCryptoKeyAlgorithm& key_algorithm,
391 blink::WebArrayBuffer* buffer) {
392 // TODO(eroman): http://crbug.com/267888
393 return Status::ErrorUnsupported();
394 }
395
389 Status WrapSymKeyAesKw(SymKey* wrapping_key, 396 Status WrapSymKeyAesKw(SymKey* wrapping_key,
390 SymKey* key, 397 SymKey* key,
391 blink::WebArrayBuffer* buffer) { 398 blink::WebArrayBuffer* buffer) {
392 // TODO(eroman): http://crbug.com/267888 399 // TODO(eroman): http://crbug.com/267888
393 return Status::ErrorUnsupported(); 400 return Status::ErrorUnsupported();
394 } 401 }
395 402
396 Status UnwrapSymKeyAesKw(const CryptoData& wrapped_key_data, 403 Status UnwrapSymKeyAesKw(const CryptoData& wrapped_key_data,
397 SymKey* wrapping_key, 404 SymKey* wrapping_key,
398 const blink::WebCryptoAlgorithm& algorithm, 405 const blink::WebCryptoAlgorithm& algorithm,
(...skipping 26 matching lines...) Expand all
425 blink::WebCryptoKey* key) { 432 blink::WebCryptoKey* key) {
426 // TODO(eroman): http://crbug.com/267888 433 // TODO(eroman): http://crbug.com/267888
427 return Status::ErrorUnsupported(); 434 return Status::ErrorUnsupported();
428 } 435 }
429 436
430 } // namespace platform 437 } // namespace platform
431 438
432 } // namespace webcrypto 439 } // namespace webcrypto
433 440
434 } // namespace content 441 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698