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

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 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 // Preconditions:
391 // * |key| is non-null.
392 Status ExportRsaPublicKey(PublicKey* key,
393 std::vector<uint8>* modulus,
394 std::vector<uint8>* public_exponent) {
395 // TODO(eroman): http://crbug.com/267888
396 return Status::ErrorUnsupported();
397 }
398
390 Status WrapSymKeyAesKw(SymKey* wrapping_key, 399 Status WrapSymKeyAesKw(SymKey* wrapping_key,
391 SymKey* key, 400 SymKey* key,
392 blink::WebArrayBuffer* buffer) { 401 blink::WebArrayBuffer* buffer) {
393 // TODO(eroman): http://crbug.com/267888 402 // TODO(eroman): http://crbug.com/267888
394 return Status::ErrorUnsupported(); 403 return Status::ErrorUnsupported();
395 } 404 }
396 405
397 Status UnwrapSymKeyAesKw(const CryptoData& wrapped_key_data, 406 Status UnwrapSymKeyAesKw(const CryptoData& wrapped_key_data,
398 SymKey* wrapping_key, 407 SymKey* wrapping_key,
399 const blink::WebCryptoAlgorithm& algorithm, 408 const blink::WebCryptoAlgorithm& algorithm,
(...skipping 26 matching lines...) Expand all
426 blink::WebCryptoKey* key) { 435 blink::WebCryptoKey* key) {
427 // TODO(eroman): http://crbug.com/267888 436 // TODO(eroman): http://crbug.com/267888
428 return Status::ErrorUnsupported(); 437 return Status::ErrorUnsupported();
429 } 438 }
430 439
431 } // namespace platform 440 } // namespace platform
432 441
433 } // namespace webcrypto 442 } // namespace webcrypto
434 443
435 } // namespace content 444 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698