算法矩阵


🌐 Algorithm matrix

该表列出了 Node.js Web Crypto API 实现所支持的算法,以及每个算法所支持的 API:

🌐 The table details the algorithms supported by the Node.js Web Crypto API implementation and the APIs supported for each:

算法generateKeyexportKeyimportKeyencryptdecryptwrapKeyunwrapKeyderiveBitsderiveKeysignverifydigest
'RSASSA-PKCS1-v1_5'✔✔✔✔✔
'RSA-PSS'✔✔✔✔✔
'RSA-OAEP'✔✔✔✔✔✔✔
'ECDSA'✔✔✔✔✔
'Ed25519'1✔✔✔✔✔
'Ed448'1✔✔✔✔✔
'ECDH'✔✔✔✔✔
'X25519'1✔✔✔✔✔
'X448'1✔✔✔✔✔
'AES-CTR'✔✔✔✔✔✔✔
'AES-CBC'✔✔✔✔✔✔✔
'AES-GCM'✔✔✔✔✔✔✔
'AES-KW'✔✔✔✔✔
'HMAC'✔✔✔✔✔
'HKDF'✔✔✔✔
'PBKDF2'✔✔✔✔
'SHA-1'✔
'SHA-256'✔
'SHA-384'✔
'SHA-512'✔