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

Unified Diff: components/webcrypto/algorithms/secret_key_util.cc

Issue 2163053002: [webcrypto] Check for empty key usages *after* key creation rather than before, to match the spec's… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 4 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
« no previous file with comments | « components/webcrypto/algorithms/secret_key_util.h ('k') | components/webcrypto/algorithms/util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/webcrypto/algorithms/secret_key_util.cc
diff --git a/components/webcrypto/algorithms/secret_key_util.cc b/components/webcrypto/algorithms/secret_key_util.cc
index 3110e26dc21ef94f6b0f9b9a2af25264ccaabc29..9f0b0bf993a257f82289267e477bbec01b66b689 100644
--- a/components/webcrypto/algorithms/secret_key_util.cc
+++ b/components/webcrypto/algorithms/secret_key_util.cc
@@ -50,13 +50,6 @@ Status CreateWebCryptoSecretKey(const CryptoData& key_data,
return Status::Success();
}
-Status CheckSecretKeyCreationUsages(
- blink::WebCryptoKeyUsageMask all_possible_usages,
- blink::WebCryptoKeyUsageMask actual_usages) {
- return CheckKeyCreationUsages(all_possible_usages, actual_usages,
- EmptyUsagePolicy::REJECT_EMPTY);
-}
-
void WriteSecretKeyJwk(const CryptoData& raw_key_data,
const std::string& algorithm,
bool extractable,
« no previous file with comments | « components/webcrypto/algorithms/secret_key_util.h ('k') | components/webcrypto/algorithms/util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698