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

Unified Diff: content/child/webcrypto/webcrypto_util.cc

Issue 267323009: [webcrypto] Add deriveBits key_op to JWK import/export. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 months 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/webcrypto_util.cc
diff --git a/content/child/webcrypto/webcrypto_util.cc b/content/child/webcrypto/webcrypto_util.cc
index f80fe32933a47605e3d68e1663e411d99b816f14..f7eeb22875ceb3fabafd57cabe14c45d83e3703b 100644
--- a/content/child/webcrypto/webcrypto_util.cc
+++ b/content/child/webcrypto/webcrypto_util.cc
@@ -67,7 +67,7 @@ const JwkToWebCryptoUsage kJwkWebCryptoUsageMap[] = {
{"encrypt", blink::WebCryptoKeyUsageEncrypt},
{"decrypt", blink::WebCryptoKeyUsageDecrypt},
{"deriveKey", blink::WebCryptoKeyUsageDeriveKey},
- // TODO(padolph): Add 'deriveBits' once supported by Blink.
+ {"deriveBits", blink::WebCryptoKeyUsageDeriveBits},
{"sign", blink::WebCryptoKeyUsageSign},
{"unwrapKey", blink::WebCryptoKeyUsageUnwrapKey},
{"verify", blink::WebCryptoKeyUsageVerify},

Powered by Google App Engine
This is Rietveld 408576698