Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
doc: compress Web Cryptography Algorithm matrix
  • Loading branch information
panva committed Aug 18, 2025
commit 96f9918b33cf63a93cfa75d7af0b0327ac5fd7f0
60 changes: 30 additions & 30 deletions doc/api/webcrypto.md
Original file line number Diff line number Diff line change
Expand Up @@ -479,36 +479,36 @@ const decrypted = new TextDecoder().decode(await crypto.subtle.decrypt(
The table details the algorithms supported by the Node.js Web Crypto API
implementation and the APIs supported for each:

| Algorithm | `generateKey` | `exportKey` | `importKey` | `encrypt` | `decrypt` | `wrapKey` | `unwrapKey` | `deriveBits` | `deriveKey` | `sign` | `verify` | `digest` | `getPublicKey` |
| ---------------------------- | ------------- | ----------- | ----------- | --------- | --------- | --------- | ----------- | ------------ | ----------- | ------ | -------- | -------- | -------------- |
| `'AES-CBC'` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | | | | | |
| `'AES-CTR'` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | | | | | |
| `'AES-GCM'` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | | | | | |
| `'AES-KW'` | ✔ | ✔ | ✔ | | | ✔ | ✔ | | | | | | |
| `'cSHAKE128'`[^modern-algos] | | | | | | | | | | | | ✔ | |
| `'cSHAKE256'`[^modern-algos] | | | | | | | | | | | | ✔ | |
| `'ECDH'` | ✔ | ✔ | ✔ | | | | | ✔ | ✔ | | | | ✔ |
| `'ECDSA'` | ✔ | ✔ | ✔ | | | | | | | ✔ | ✔ | | ✔ |
| `'Ed25519'` | ✔ | ✔ | ✔ | | | | | | | ✔ | ✔ | | ✔ |
| `'Ed448'`[^secure-curves] | ✔ | ✔ | ✔ | | | | | | | ✔ | ✔ | | ✔ |
| `'HKDF'` | | | ✔ | | | | | ✔ | ✔ | | | | |
| `'HMAC'` | ✔ | ✔ | ✔ | | | | | | | ✔ | ✔ | | |
| `'ML-DSA-44'`[^modern-algos] | ✔ | ✔ | ✔ | | | | | | | ✔ | ✔ | | ✔ |
| `'ML-DSA-65'`[^modern-algos] | ✔ | ✔ | ✔ | | | | | | | ✔ | ✔ | | ✔ |
| `'ML-DSA-87'`[^modern-algos] | ✔ | ✔ | ✔ | | | | | | | ✔ | ✔ | | ✔ |
| `'PBKDF2'` | | | ✔ | | | | | ✔ | ✔ | | | | |
| `'RSA-OAEP'` | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ | | | | | | ✔ |
| `'RSA-PSS'` | ✔ | ✔ | ✔ | | | | | | | ✔ | ✔ | | ✔ |
| `'RSASSA-PKCS1-v1_5'` | ✔ | ✔ | ✔ | | | | | | | ✔ | ✔ | | ✔ |
| `'SHA-1'` | | | | | | | | | | | | ✔ | |
| `'SHA-256'` | | | | | | | | | | | | ✔ | |
| `'SHA-384'` | | | | | | | | | | | | ✔ | |
| `'SHA-512'` | | | | | | | | | | | | ✔ | |
| `'SHA3-256'`[^modern-algos] | | | | | | | | | | | | ✔ | |
| `'SHA3-384'`[^modern-algos] | | | | | | | | | | | | ✔ | |
| `'SHA3-512'`[^modern-algos] | | | | | | | | | | | | ✔ | |
| `'X25519'` | ✔ | ✔ | ✔ | | | | | ✔ | ✔ | | | | ✔ |
| `'X448'`[^secure-curves] | ✔ | ✔ | ✔ | | | | | ✔ | ✔ | | | | ✔ |
| Algorithm | `generateKey` | `exportKey` | `importKey` | `encrypt/decrypt` | `wrapKey/unwrapKey` | `deriveBits/deriveKey` | `sign/verify` | `digest` | `getPublicKey` |
| ---------------------------- | ------------- | ----------- | ----------- | ----------------- | ------------------- | ---------------------- | ------------- | -------- | -------------- |
| `'AES-CBC'` | ✔ | ✔ | ✔ | ✔ | ✔ | | | | |
| `'AES-CTR'` | ✔ | ✔ | ✔ | ✔ | ✔ | | | | |
| `'AES-GCM'` | ✔ | ✔ | ✔ | ✔ | ✔ | | | | |
| `'AES-KW'` | ✔ | ✔ | ✔ | | ✔ | | | | |
| `'cSHAKE128'`[^modern-algos] | | | | | | | | ✔ | |
| `'cSHAKE256'`[^modern-algos] | | | | | | | | ✔ | |
| `'ECDH'` | ✔ | ✔ | ✔ | | | ✔ | | | ✔ |
| `'ECDSA'` | ✔ | ✔ | ✔ | | | | ✔ | | ✔ |
| `'Ed25519'` | ✔ | ✔ | ✔ | | | | ✔ | | ✔ |
| `'Ed448'`[^secure-curves] | ✔ | ✔ | ✔ | | | | ✔ | | ✔ |
| `'HKDF'` | | | ✔ | | | ✔ | | | |
| `'HMAC'` | ✔ | ✔ | ✔ | | | | ✔ | | |
| `'ML-DSA-44'`[^modern-algos] | ✔ | ✔ | ✔ | | | | ✔ | | ✔ |
| `'ML-DSA-65'`[^modern-algos] | ✔ | ✔ | ✔ | | | | ✔ | | ✔ |
| `'ML-DSA-87'`[^modern-algos] | ✔ | ✔ | ✔ | | | | ✔ | | ✔ |
| `'PBKDF2'` | | | ✔ | | | ✔ | | | |
| `'RSA-OAEP'` | ✔ | ✔ | ✔ | ✔ | ✔ | | | | ✔ |
| `'RSA-PSS'` | ✔ | ✔ | ✔ | | | | ✔ | | ✔ |
| `'RSASSA-PKCS1-v1_5'` | ✔ | ✔ | ✔ | | | | ✔ | | ✔ |
| `'SHA-1'` | | | | | | | | ✔ | |
| `'SHA-256'` | | | | | | | | ✔ | |
| `'SHA-384'` | | | | | | | | ✔ | |
| `'SHA-512'` | | | | | | | | ✔ | |
| `'SHA3-256'`[^modern-algos] | | | | | | | | ✔ | |
| `'SHA3-384'`[^modern-algos] | | | | | | | | ✔ | |
| `'SHA3-512'`[^modern-algos] | | | | | | | | ✔ | |
| `'X25519'` | ✔ | ✔ | ✔ | | | ✔ | | | ✔ |
| `'X448'`[^secure-curves] | ✔ | ✔ | ✔ | | | ✔ | | | ✔ |

## Class: `Crypto`

Expand Down