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

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

Issue 205913002: [webcrypto] Add JWK RSA public key export for NSS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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
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 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 return Status::ErrorUnsupported(); 387 return Status::ErrorUnsupported();
388 } 388 }
389 389
390 Status ExportKeyPkcs8(PrivateKey* key, 390 Status ExportKeyPkcs8(PrivateKey* key,
391 const blink::WebCryptoKeyAlgorithm& key_algorithm, 391 const blink::WebCryptoKeyAlgorithm& key_algorithm,
392 blink::WebArrayBuffer* buffer) { 392 blink::WebArrayBuffer* buffer) {
393 // TODO(eroman): http://crbug.com/267888 393 // TODO(eroman): http://crbug.com/267888
394 return Status::ErrorUnsupported(); 394 return Status::ErrorUnsupported();
395 } 395 }
396 396
397 Status ExportRsaPublicKey(PublicKey* key,
398 std::vector<uint8>* modulus,
399 std::vector<uint8>* public_exponent) {
400 // TODO(eroman): http://crbug.com/267888
401 return Status::ErrorUnsupported();
402 }
403
397 Status WrapSymKeyAesKw(SymKey* wrapping_key, 404 Status WrapSymKeyAesKw(SymKey* wrapping_key,
398 SymKey* key, 405 SymKey* key,
399 blink::WebArrayBuffer* buffer) { 406 blink::WebArrayBuffer* buffer) {
400 // TODO(eroman): http://crbug.com/267888 407 // TODO(eroman): http://crbug.com/267888
401 return Status::ErrorUnsupported(); 408 return Status::ErrorUnsupported();
402 } 409 }
403 410
404 Status UnwrapSymKeyAesKw(const CryptoData& wrapped_key_data, 411 Status UnwrapSymKeyAesKw(const CryptoData& wrapped_key_data,
405 SymKey* wrapping_key, 412 SymKey* wrapping_key,
406 const blink::WebCryptoAlgorithm& algorithm, 413 const blink::WebCryptoAlgorithm& algorithm,
(...skipping 26 matching lines...) Expand all
433 blink::WebCryptoKey* key) { 440 blink::WebCryptoKey* key) {
434 // TODO(eroman): http://crbug.com/267888 441 // TODO(eroman): http://crbug.com/267888
435 return Status::ErrorUnsupported(); 442 return Status::ErrorUnsupported();
436 } 443 }
437 444
438 } // namespace platform 445 } // namespace platform
439 446
440 } // namespace webcrypto 447 } // namespace webcrypto
441 448
442 } // namespace content 449 } // namespace content
OLDNEW
« no previous file with comments | « content/child/webcrypto/platform_crypto_nss.cc ('k') | content/child/webcrypto/shared_crypto_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698