Index: content/child/webcrypto/platform_crypto_openssl.cc |
diff --git a/content/child/webcrypto/platform_crypto_openssl.cc b/content/child/webcrypto/platform_crypto_openssl.cc |
index 1f520e83d276238cd33393c08116ec4753a79ac9..87a1b6176fe89f8d4fccd190bb5eafaf067a02ab 100644 |
--- a/content/child/webcrypto/platform_crypto_openssl.cc |
+++ b/content/child/webcrypto/platform_crypto_openssl.cc |
@@ -381,6 +381,22 @@ Status ImportRsaPublicKey(const blink::WebCryptoAlgorithm& algorithm, |
return Status::ErrorUnsupported(); |
} |
+Status ImportRsaPrivateKey(const blink::WebCryptoAlgorithm& algorithm, |
+ bool extractable, |
+ blink::WebCryptoKeyUsageMask usage_mask, |
+ const CryptoData& modulus, |
+ const CryptoData& public_exponent, |
+ const CryptoData& private_exponent, |
+ const CryptoData& prime1, |
+ const CryptoData& prime2, |
+ const CryptoData& exponent1, |
+ const CryptoData& exponent2, |
+ const CryptoData& coefficient, |
+ blink::WebCryptoKey* key) { |
+ // TODO(eroman): http://crbug.com/267888 |
+ return Status::ErrorUnsupported(); |
+} |
+ |
Status EncryptDecryptAesGcm(EncryptOrDecrypt mode, |
SymKey* key, |
const CryptoData& data, |
@@ -462,6 +478,19 @@ Status ExportRsaPublicKey(PublicKey* key, |
return Status::ErrorUnsupported(); |
} |
+Status ExportRsaPrivateKey(PrivateKey* key, |
+ std::vector<uint8>* modulus, |
+ std::vector<uint8>* public_exponent, |
+ std::vector<uint8>* private_exponent, |
+ std::vector<uint8>* prime1, |
+ std::vector<uint8>* prime2, |
+ std::vector<uint8>* exponent1, |
+ std::vector<uint8>* exponent2, |
+ std::vector<uint8>* coefficient) { |
+ // TODO(eroman): http://crbug.com/267888 |
+ return Status::ErrorUnsupported(); |
+} |
+ |
Status WrapSymKeyAesKw(SymKey* key, |
SymKey* wrapping_key, |
std::vector<uint8>* buffer) { |