From 1499b4948559e1c3d04beb9980dec9da36f9d4af Mon Sep 17 00:00:00 2001 From: eroman Date: Wed, 26 Nov 2014 11:59:53 -0800 Subject: 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} --- content/child/webcrypto/algorithm_implementation.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'content/child/webcrypto/algorithm_implementation.h') 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* derived_bytes) const; + // ----------------------------------------------- // Key import // ----------------------------------------------- -- cgit v1.1