| Index: content/renderer/webcrypto/webcrypto_impl_openssl.cc
|
| diff --git a/content/renderer/webcrypto/webcrypto_impl_openssl.cc b/content/renderer/webcrypto/webcrypto_impl_openssl.cc
|
| index 23f89c2e04b2d9cebe53dc5c3aa46eee866cec1d..fae943a1bc851623cdd3789af63d238646ace5f0 100644
|
| --- a/content/renderer/webcrypto/webcrypto_impl_openssl.cc
|
| +++ b/content/renderer/webcrypto/webcrypto_impl_openssl.cc
|
| @@ -330,14 +330,9 @@ bool WebCryptoImpl::ImportKeyInternal(
|
| return false;
|
| }
|
|
|
| - // TODO(padolph): Need to split handling for symmetric (raw or jwk format) and
|
| - // asymmetric (jwk, spki, or pkcs8 format) keys.
|
| + // TODO(padolph): Need to split handling for symmetric
|
| // Currently only supporting symmetric.
|
|
|
| - // TODO(padolph): jwk handling. Define precedence between jwk contents and
|
| - // this method's parameters, e.g. 'alg' in jwk vs algorithm.id(). Who wins if
|
| - // they differ? (jwk, probably)
|
| -
|
| // Symmetric keys are always type secret
|
| WebKit::WebCryptoKeyType type = WebKit::WebCryptoKeyTypeSecret;
|
|
|
| @@ -369,6 +364,17 @@ bool WebCryptoImpl::ImportKeyInternal(
|
| return true;
|
| }
|
|
|
| +bool WebCryptoImpl::ExportKeyInternal(
|
| + WebKit::WebCryptoKeyFormat format,
|
| + const WebKit::WebCryptoKey& key,
|
| + WebKit::WebArrayBuffer* buffer) {
|
| + // TODO(padolph): Implement raw export
|
| + // TODO(padolph): Implement spki export
|
| + // TODO(padolph): Implement pkcs8 export
|
| + // TODO(padolph): Implement jwk export
|
| + return false;
|
| +}
|
| +
|
| bool WebCryptoImpl::SignInternal(
|
| const WebKit::WebCryptoAlgorithm& algorithm,
|
| const WebKit::WebCryptoKey& key,
|
|
|