node/lib/internal/crypto
Dario Piotrowicz 4ef7a6c77e
lib: backport _tls_common and _tls_wrap refactors
This is the same as the original change, minus the `process.emitWarning`
calls and unit tests that expect the deprecation warnings, plus
re-application of the fixes for CVE-2025-59465 and CVE-2026-21637.

Original commit message:
    lib: deprecate _tls_common and _tls_wrap

    runtime deprecate the _tls_common and _tls_wrap
    modules, users should use nust node:tls insteal
    and internally internal/tls/commond and
    internal/tls/wrap should be used instead

PR-URL: https://github.com/nodejs/node/pull/57643
Backport-PR-URL: https://github.com/nodejs/node/pull/61044
Co-authored-by: =?UTF-8?q?Micha=C3=ABl=20Zasso?= <targos@protonmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
2026-02-04 15:32:52 +01:00
..
aes.js crypto: use return await when returning Promises from async functions 2025-09-24 09:03:33 +02:00
argon2.js lib: prefer TypedArrayPrototype primordials 2025-09-09 08:34:17 +02:00
certificate.js
cfrg.js crypto: use return await when returning Promises from async functions 2025-09-24 09:03:33 +02:00
chacha20_poly1305.js crypto: use return await when returning Promises from async functions 2025-09-24 09:03:33 +02:00
cipher.js lib,test: enforce use of assert.fail via a lint rule 2026-01-27 22:20:25 +01:00
diffiehellman.js lib: prefer TypedArrayPrototype primordials 2025-09-09 08:34:17 +02:00
ec.js crypto: use return await when returning Promises from async functions 2025-09-24 09:03:33 +02:00
hash.js crypto: use return await when returning Promises from async functions 2025-09-24 09:03:33 +02:00
hashnames.js crypto: add SHA-3 Web Cryptography digest algorithms 2025-08-21 19:01:08 +02:00
hkdf.js crypto: add SubtleCrypto.supports feature detection in Web Cryptography 2025-08-21 19:01:08 +02:00
kem.js crypto: support ML-KEM, DHKEM, and RSASVE key encapsulation mechanisms 2025-08-21 19:01:13 +02:00
keygen.js crypto: support SLH-DSA KeyObject, sign, and verify 2025-08-28 08:39:02 +02:00
keys.js lib: refactor JWK import PQC support check 2026-01-19 19:19:04 +01:00
mac.js crypto: avoid calls to promise.catch() 2025-09-24 09:03:32 +02:00
ml_dsa.js crypto: use return await when returning Promises from async functions 2025-09-24 09:03:33 +02:00
ml_kem.js crypto: use return await when returning Promises from async functions 2025-09-24 09:03:33 +02:00
pbkdf2.js lib: prefer TypedArrayPrototype primordials 2025-09-09 08:34:17 +02:00
random.js lib: prefer TypedArrayPrototype primordials 2025-09-09 08:34:17 +02:00
rsa.js crypto: use return await when returning Promises from async functions 2025-09-24 09:03:33 +02:00
scrypt.js crypto: remove ERR_CRYPTO_SCRYPT_INVALID_PARAMETER 2024-07-10 16:38:00 +00:00
sig.js crypto: ensure documented RSA-PSS saltLength default is used 2025-11-18 15:29:16 +01:00
util.js crypto: support Ed448 and ML-DSA context parameter in Web Cryptography 2025-09-09 08:34:18 +02:00
webcrypto.js crypto: use return await when returning Promises from async functions 2025-09-24 09:03:33 +02:00
webidl.js crypto: support Ed448 and ML-DSA context parameter in Web Cryptography 2025-09-09 08:34:18 +02:00
x509.js lib: backport _tls_common and _tls_wrap refactors 2026-02-04 15:32:52 +01:00