node/test/fixtures/crypto
Filip Skokan 8ec37ebbd6
crypto: support non-byte WebCrypto lengths and cSHAKE
Add shared bit-length helpers for WebCrypto operations that accept bit
sequences whose length is not byte-aligned.

Use the helpers for cSHAKE output, ECDH-derived bits, HMAC/KMAC key
generation/import/derivation, and KMAC sign/verify output. Preserve the
requested bit length in CryptoKey algorithm metadata while storing and
exporting rounded-up byte material with unused low bits cleared.

Keep byte-multiple validation for algorithms whose specs require it.

Extend the lower-end of KMAC's key length support.

Enable cSHAKE customization and functionName parameters.

Signed-off-by: Filip Skokan <panva.ip@gmail.com>
PR-URL: https://github.com/nodejs/node/pull/63988
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
2026-06-20 18:42:04 +02:00
..
aes_cbc.js
aes_ctr.js
aes_gcm.js
aes_ocb.js crypto: add AES-OCB Web Cryptography algorithm 2025-08-24 09:47:20 +00:00
chacha20_poly1305.js crypto: add ChaCha20-Poly1305 Web Cryptography algorithm 2025-08-19 15:57:08 +02:00
ecdsa.js test,crypto: sha3 algorithms aren't supported with BoringSSL 2025-10-25 11:30:34 +00:00
eddsa.js crypto: support Ed448 and ML-DSA context parameter in Web Cryptography 2025-09-07 13:17:42 +00:00
hmac.js test,crypto: sha3 algorithms aren't supported with BoringSSL 2025-10-25 11:30:34 +00:00
kmac.js crypto: support non-byte WebCrypto lengths and cSHAKE 2026-06-20 18:42:04 +02:00
ml-dsa.js crypto: support Ed448 and ML-DSA context parameter in Web Cryptography 2025-09-07 13:17:42 +00:00
ml-kem.js crypto: support ML-KEM in Web Cryptography 2025-08-23 17:01:51 +02:00
rsa.js
rsa_pkcs.js test,crypto: sha3 algorithms aren't supported with BoringSSL 2025-10-25 11:30:34 +00:00
rsa_pss.js test,crypto: sha3 algorithms aren't supported with BoringSSL 2025-10-25 11:30:34 +00:00