Add the method DeriveBits to AlgorithmImplementation.
And wire it up to WebCryptoImplementation.
BUG=399093
Review URL: https://codereview.chromium.org/744993002
Cr-Commit-Position: refs/heads/master@{#305863}
diff --git a/content/child/webcrypto/algorithm_implementation.cc b/content/child/webcrypto/algorithm_implementation.cc
index 8a4c67a7..6b9f7f9f 100644
--- a/content/child/webcrypto/algorithm_implementation.cc
+++ b/content/child/webcrypto/algorithm_implementation.cc
@@ -60,6 +60,14 @@
return Status::ErrorUnsupported();
}
+Status AlgorithmImplementation::DeriveBits(
+ const blink::WebCryptoAlgorithm& algorithm,
+ const blink::WebCryptoKey& base_key,
+ unsigned int length_bits,
+ std::vector<uint8_t>* derived_bytes) const {
+ return Status::ErrorUnsupported();
+}
+
Status AlgorithmImplementation::VerifyKeyUsagesBeforeImportKey(
blink::WebCryptoKeyFormat format,
blink::WebCryptoKeyUsageMask usages) const {