Skip to content

Commit 3ba3f2d

Browse files
authored
Add patch for ed/idl/webcrypto.idl (#1656)
Drop `KeyUsage` and `KeyFormat` enumerations
1 parent 6d99c71 commit 3ba3f2d

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

ed/idlpatches/webcrypto.idl.patch

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
From 35274a4d962eaf2f92efd36de0fc1155221b3f94 Mon Sep 17 00:00:00 2001
2+
From: Francois Daoust <[email protected]>
3+
Date: Thu, 4 Sep 2025 09:45:12 +0200
4+
Subject: [PATCH] Drop `KeyUsage` and `KeyFormat` enumerations
5+
6+
The "Modern Algorithms in the Web Cryptography API" proposal extends
7+
definitions in Web Crypto. Most extensions are handled through `partial`
8+
definitions but Web IDL does not support partial enumerations.
9+
---
10+
ed/idl/webcrypto.idl | 4 ----
11+
1 file changed, 4 deletions(-)
12+
13+
diff --git a/ed/idl/webcrypto.idl b/ed/idl/webcrypto.idl
14+
index 9c742fa970..ebb9cf5718 100644
15+
--- a/ed/idl/webcrypto.idl
16+
+++ b/ed/idl/webcrypto.idl
17+
@@ -28,8 +28,6 @@ dictionary KeyAlgorithm {
18+
19+
enum KeyType { "public", "private", "secret" };
20+
21+
-enum KeyUsage { "encrypt", "decrypt", "sign", "verify", "deriveKey", "deriveBits", "wrapKey", "unwrapKey" };
22+
-
23+
[SecureContext,Exposed=(Window,Worker),Serializable]
24+
interface CryptoKey {
25+
readonly attribute KeyType type;
26+
@@ -38,8 +36,6 @@ interface CryptoKey {
27+
readonly attribute object usages;
28+
};
29+
30+
-enum KeyFormat { "raw", "spki", "pkcs8", "jwk" };
31+
-
32+
[SecureContext,Exposed=(Window,Worker)]
33+
interface SubtleCrypto {
34+
Promise<ArrayBuffer> encrypt(
35+
--
36+
2.37.1.windows.1
37+

0 commit comments

Comments
 (0)