Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Unified Diff: content/child/webcrypto/algorithm_dispatch.h

Issue 749183004: WebCrypto: Implement crypto.subtle.deriveKey (chromium-side). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ecdh
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
« no previous file with comments | « no previous file | content/child/webcrypto/algorithm_dispatch.cc » ('j') | content/child/webcrypto/openssl/ecdh_openssl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698