Skip to content

Commit

Permalink
feat(api): Add Ed25519 sign/verify SubtleCrypto algo (#22033)
Browse files Browse the repository at this point in the history
* feat(api): Add Ed25519 sign/verify SubtleCrypto algo

* feat(api): Add Ed25519 sign/verify SubtleCrypto algo, fix linting

* feat(api): Ed25519 SubtleCrypto algo, generateKey, changes based on reviewer feedback
  • Loading branch information
bsmth authored Feb 1, 2024
1 parent 5134558 commit c2761cb
Showing 1 changed file with 245 additions and 0 deletions.
245 changes: 245 additions & 0 deletions api/SubtleCrypto.json
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,55 @@
"standard_track": true,
"deprecated": false
}
},
"ed25519": {
"__compat": {
"description": "<code>Ed25519</code> algorithm",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/SubtleCrypto/exportKey",
"spec_url": "https://wicg.github.io/webcrypto-secure-curves/#ed25519",
"support": {
"chrome": {
"version_added": "113",
"flags": [
{
"type": "preference",
"name": "#enable-experimental-web-platform-features",
"value_to_set": "Enabled"
}
]
},
"chrome_android": "mirror",
"deno": {
"version_added": "1.26"
},
"edge": "mirror",
"firefox": {
"version_added": false
},
"firefox_android": "mirror",
"ie": {
"version_added": false
},
"nodejs": {
"version_added": "16.17.0",
"notes": "Marked as <a href='https://nodejs.org/dist/latest-v16.x/docs/api/webcrypto.html#ed25519ed448x25519x448-key-pairs'>'Stability 1' - Experimental</a>."
},
"oculus": "mirror",
"opera": "mirror",
"opera_android": "mirror",
"safari": {
"version_added": "17"
},
"safari_ios": "mirror",
"samsunginternet_android": "mirror",
"webview_android": "mirror"
},
"status": {
"experimental": false,
"standard_track": true,
"deprecated": false
}
}
}
},
"generateKey": {
Expand Down Expand Up @@ -739,6 +788,55 @@
"standard_track": true,
"deprecated": false
}
},
"ed25519": {
"__compat": {
"description": "<code>Ed25519</code> algorithm",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/SubtleCrypto/generateKey",
"spec_url": "https://wicg.github.io/webcrypto-secure-curves/#ed25519",
"support": {
"chrome": {
"version_added": "113",
"flags": [
{
"type": "preference",
"name": "#enable-experimental-web-platform-features",
"value_to_set": "Enabled"
}
]
},
"chrome_android": "mirror",
"deno": {
"version_added": "1.26"
},
"edge": "mirror",
"firefox": {
"version_added": false
},
"firefox_android": "mirror",
"ie": {
"version_added": false
},
"nodejs": {
"version_added": "16.17.0",
"notes": "Marked as <a href='https://nodejs.org/dist/latest-v16.x/docs/api/webcrypto.html#ed25519ed448x25519x448-key-pairs'>'Stability 1' - Experimental</a>."
},
"oculus": "mirror",
"opera": "mirror",
"opera_android": "mirror",
"safari": {
"version_added": "17"
},
"safari_ios": "mirror",
"samsunginternet_android": "mirror",
"webview_android": "mirror"
},
"status": {
"experimental": false,
"standard_track": true,
"deprecated": false
}
}
}
},
"importKey": {
Expand Down Expand Up @@ -815,6 +913,55 @@
"standard_track": true,
"deprecated": false
}
},
"ed25519": {
"__compat": {
"description": "<code>Ed25519</code> algorithm",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/SubtleCrypto/importKey",
"spec_url": "https://wicg.github.io/webcrypto-secure-curves/#ed25519",
"support": {
"chrome": {
"version_added": "113",
"flags": [
{
"type": "preference",
"name": "#enable-experimental-web-platform-features",
"value_to_set": "Enabled"
}
]
},
"chrome_android": "mirror",
"deno": {
"version_added": "1.26"
},
"edge": "mirror",
"firefox": {
"version_added": false
},
"firefox_android": "mirror",
"ie": {
"version_added": false
},
"nodejs": {
"version_added": "16.17.0",
"notes": "Marked as <a href='https://nodejs.org/dist/latest-v16.x/docs/api/webcrypto.html#ed25519ed448x25519x448-key-pairs'>'Stability 1' - Experimental</a>."
},
"oculus": "mirror",
"opera": "mirror",
"opera_android": "mirror",
"safari": {
"version_added": "17"
},
"safari_ios": "mirror",
"samsunginternet_android": "mirror",
"webview_android": "mirror"
},
"status": {
"experimental": false,
"standard_track": true,
"deprecated": false
}
}
}
},
"sign": {
Expand Down Expand Up @@ -868,6 +1015,55 @@
"standard_track": true,
"deprecated": false
}
},
"ed25519": {
"__compat": {
"description": "<code>Ed25519</code> algorithm",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/SubtleCrypto/sign",
"spec_url": "https://wicg.github.io/webcrypto-secure-curves/#ed25519",
"support": {
"chrome": {
"version_added": "113",
"flags": [
{
"type": "preference",
"name": "#enable-experimental-web-platform-features",
"value_to_set": "Enabled"
}
]
},
"chrome_android": "mirror",
"deno": {
"version_added": "1.26"
},
"edge": "mirror",
"firefox": {
"version_added": false
},
"firefox_android": "mirror",
"ie": {
"version_added": false
},
"nodejs": {
"version_added": "16.17.0",
"notes": "Marked as <a href='https://nodejs.org/dist/latest-v16.x/docs/api/webcrypto.html#ed25519ed448x25519x448-key-pairs'>'Stability 1' - Experimental</a>."
},
"oculus": "mirror",
"opera": "mirror",
"opera_android": "mirror",
"safari": {
"version_added": "17"
},
"safari_ios": "mirror",
"samsunginternet_android": "mirror",
"webview_android": "mirror"
},
"status": {
"experimental": false,
"standard_track": true,
"deprecated": false
}
}
}
},
"unwrapKey": {
Expand Down Expand Up @@ -985,6 +1181,55 @@
"standard_track": true,
"deprecated": false
}
},
"ed25519": {
"__compat": {
"description": "<code>Ed25519</code> algorithm",
"mdn_url": "https://developer.mozilla.org/docs/Web/API/SubtleCrypto/verify",
"spec_url": "https://wicg.github.io/webcrypto-secure-curves/#ed25519",
"support": {
"chrome": {
"version_added": "113",
"flags": [
{
"type": "preference",
"name": "#enable-experimental-web-platform-features",
"value_to_set": "Enabled"
}
]
},
"chrome_android": "mirror",
"deno": {
"version_added": "1.26"
},
"edge": "mirror",
"firefox": {
"version_added": false
},
"firefox_android": "mirror",
"ie": {
"version_added": false
},
"nodejs": {
"version_added": "16.17.0",
"notes": "Marked as <a href='https://nodejs.org/dist/latest-v16.x/docs/api/webcrypto.html#ed25519ed448x25519x448-key-pairs'>'Stability 1' - Experimental</a>."
},
"oculus": "mirror",
"opera": "mirror",
"opera_android": "mirror",
"safari": {
"version_added": "17"
},
"safari_ios": "mirror",
"samsunginternet_android": "mirror",
"webview_android": "mirror"
},
"status": {
"experimental": false,
"standard_track": true,
"deprecated": false
}
}
}
},
"wrapKey": {
Expand Down

0 comments on commit c2761cb

Please sign in to comment.