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

Unified Diff: Source/modules/crypto/Key.cpp

Issue 104653004: [webcrypto] order Key.usages alphabetically. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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
« no previous file with comments | « LayoutTests/crypto/encrypt-decrypt-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/crypto/Key.cpp
diff --git a/Source/modules/crypto/Key.cpp b/Source/modules/crypto/Key.cpp
index e4e00e6b5a4cbb8aa0119aeefa9c0b68b12c5db6..705e84e061e320c24afa8635c662b85fc01a7bd5 100644
--- a/Source/modules/crypto/Key.cpp
+++ b/Source/modules/crypto/Key.cpp
@@ -59,14 +59,15 @@ struct KeyUsageMapping {
const char* const name;
};
+// Keep this array sorted.
const KeyUsageMapping keyUsageMappings[] = {
- { blink::WebCryptoKeyUsageEncrypt, "encrypt" },
{ blink::WebCryptoKeyUsageDecrypt, "decrypt" },
+ { blink::WebCryptoKeyUsageDeriveKey, "deriveKey" },
+ { blink::WebCryptoKeyUsageEncrypt, "encrypt" },
{ blink::WebCryptoKeyUsageSign, "sign" },
+ { blink::WebCryptoKeyUsageUnwrapKey, "unwrapKey" },
{ blink::WebCryptoKeyUsageVerify, "verify" },
- { blink::WebCryptoKeyUsageDeriveKey, "deriveKey" },
{ blink::WebCryptoKeyUsageWrapKey, "wrapKey" },
- { blink::WebCryptoKeyUsageUnwrapKey, "unwrapKey" },
};
COMPILE_ASSERT(blink::EndOfWebCryptoKeyUsage == (1 << 6) + 1, update_keyUsageMappings);
« no previous file with comments | « LayoutTests/crypto/encrypt-decrypt-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698