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); |