Index: content/child/webcrypto/algorithm_dispatch.h |
diff --git a/content/child/webcrypto/algorithm_dispatch.h b/content/child/webcrypto/algorithm_dispatch.h |
index 977b792045f9d03c93d3bd81e385cf95ce7f2e84..b7402330f5be418a66580ff65950775596960de2 100644 |
--- a/content/child/webcrypto/algorithm_dispatch.h |
+++ b/content/child/webcrypto/algorithm_dispatch.h |
@@ -92,6 +92,15 @@ CONTENT_EXPORT Status DeriveBits(const blink::WebCryptoAlgorithm& algorithm, |
unsigned int length_bits, |
std::vector<uint8_t>* derived_bytes); |
+CONTENT_EXPORT Status |
+DeriveKey(const blink::WebCryptoAlgorithm& algorithm, |
+ const blink::WebCryptoKey& base_key, |
+ const blink::WebCryptoAlgorithm& import_algorithm, |
+ const blink::WebCryptoAlgorithm& key_length_algorithm, |
Ryan Sleevi
2014/12/10 03:21:26
Wait, why is |key_length_algorithm| different than
eroman
2014/12/10 17:58:55
I'll add a comment.
In the spec there is a single
Ryan Sleevi
2014/12/11 23:23:48
Thanks. A comment for this sounds perfect.
eroman
2014/12/12 01:21:17
Done. I added this comment:
// Derives a key by c
|
+ bool extractable, |
+ blink::WebCryptoKeyUsageMask usages, |
+ blink::WebCryptoKey* derived_key); |
+ |
CONTENT_EXPORT scoped_ptr<blink::WebCryptoDigestor> CreateDigestor( |
blink::WebCryptoAlgorithmId algorithm); |