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

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: Moved import key empty usage to CheckKeyCreationUsages 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 fdfea99316d02933d3d9f503f25b09f6beb630a6..d16ddc6d4f8f9b9897b88e3339b789272d409e2e 100644
--- a/content/child/webcrypto/webcrypto_util.h
+++ b/content/child/webcrypto/webcrypto_util.h
@@ -68,7 +68,8 @@ Status GetHmacKeyGenLengthInBits(const blink::WebCryptoHmacKeyGenParams* params,
Status VerifyAesKeyLengthForImport(unsigned int keylen_bytes);
Status CheckKeyCreationUsages(blink::WebCryptoKeyUsageMask all_possible_usages,
- blink::WebCryptoKeyUsageMask actual_usages);
+ blink::WebCryptoKeyUsageMask actual_usages,
+ bool checkImportKeyEmptyUsage = false);
eroman 2014/12/09 17:42:55 The style forbids default parameters, and also thi
// 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