summaryrefslogtreecommitdiffstats
path: root/content/child/webcrypto/algorithm_implementation.h
diff options
context:
space:
mode:
Diffstat (limited to 'content/child/webcrypto/algorithm_implementation.h')
-rw-r--r--content/child/webcrypto/algorithm_implementation.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/content/child/webcrypto/algorithm_implementation.h b/content/child/webcrypto/algorithm_implementation.h
index ba40d66..2726137 100644
--- a/content/child/webcrypto/algorithm_implementation.h
+++ b/content/child/webcrypto/algorithm_implementation.h
@@ -81,6 +81,12 @@ class AlgorithmImplementation {
blink::WebCryptoKeyUsageMask usages,
GenerateKeyResult* result) const;
+ // This method corresponds to Web Crypto's "derive bits" operation.
+ virtual Status DeriveBits(const blink::WebCryptoAlgorithm& algorithm,
+ const blink::WebCryptoKey& base_key,
+ unsigned int length_bits,
+ std::vector<uint8_t>* derived_bytes) const;
+
// -----------------------------------------------
// Key import
// -----------------------------------------------