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

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

Issue 777403004: [WebCrypto] Throw syntaxError if keyUsage is empty in ImportKey (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated issues in ecdh tests and other review comments. 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/webcrypto_util.h
diff --git a/content/child/webcrypto/webcrypto_util.h b/content/child/webcrypto/webcrypto_util.h
index e90dee778b0842e56917b40fa0bb43457ebabe62..8daf0666a44f525191b15fc8d8847f332ea9df7a 100644
--- a/content/child/webcrypto/webcrypto_util.h
+++ b/content/child/webcrypto/webcrypto_util.h
@@ -79,7 +79,8 @@ Status GetHmacImportKeyLengthBits(
Status VerifyAesKeyLengthForImport(unsigned int keylen_bytes);
Status CheckKeyCreationUsages(blink::WebCryptoKeyUsageMask all_possible_usages,
- blink::WebCryptoKeyUsageMask actual_usages);
+ blink::WebCryptoKeyUsageMask actual_usages,
+ bool allow_empty_usages);
// Extracts the public exponent and modulus length from the Blink parameters.
// On success it is guaranteed that:

Powered by Google App Engine
This is Rietveld 408576698