| Index: content/child/webcrypto/shared_crypto.cc
|
| diff --git a/content/child/webcrypto/shared_crypto.cc b/content/child/webcrypto/shared_crypto.cc
|
| index c5b116e5eac5bfa8a7c22b06a67a9747f4c0c0fb..af2beaca2a672fbbca28886ed65115dfb49e5112 100644
|
| --- a/content/child/webcrypto/shared_crypto.cc
|
| +++ b/content/child/webcrypto/shared_crypto.cc
|
| @@ -646,11 +646,15 @@ Status ExportKeyDontCheckExtractability(blink::WebCryptoKeyFormat format,
|
| return status;
|
| return platform::ExportKeySpki(public_key, buffer);
|
| }
|
| + case blink::WebCryptoKeyFormatPkcs8: {
|
| + platform::PrivateKey* private_key;
|
| + Status status = ToPlatformPrivateKey(key, &private_key);
|
| + if (status.IsError())
|
| + return status;
|
| + return platform::ExportKeyPkcs8(private_key, key.algorithm(), buffer);
|
| + }
|
| case blink::WebCryptoKeyFormatJwk:
|
| return ExportKeyJwk(key, buffer);
|
| - case blink::WebCryptoKeyFormatPkcs8:
|
| - // TODO(eroman):
|
| - return Status::ErrorUnsupported();
|
| default:
|
| return Status::ErrorUnsupported();
|
| }
|
|
|