node/lib/internal/crypto
Dario Piotrowicz 73deff77c1
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.

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/62231
Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
Co-authored-by: =?UTF-8?q?Micha=C3=ABl=20Zasso?= <targos@protonmail.com>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
2026-03-16 17:29:52 +01:00
..
aes.js crypto: use return await when returning Promises from async functions 2025-10-11 20:49:13 +02:00
certificate.js
cfrg.js crypto: use return await when returning Promises from async functions 2025-10-11 20:49:13 +02:00
cipher.js
diffiehellman.js src: refactor SubtleCrypto algorithm and length validations 2025-04-17 10:51:28 -03:00
ec.js crypto: use return await when returning Promises from async functions 2025-10-11 20:49:13 +02:00
hash.js crypto: fix SHAKE128/256 breaking change introduced with OpenSSL 3.4 2025-07-21 16:22:26 +02:00
hashnames.js crypto: ensure expected JWK alg in SubtleCrypto.importKey RSA imports 2025-04-17 10:51:45 -03:00
hkdf.js src: refactor SubtleCrypto algorithm and length validations 2025-04-17 10:51:28 -03:00
keygen.js src: refactor SubtleCrypto algorithm and length validations 2025-04-17 10:51:28 -03:00
keys.js lib: revert to using default derived class constructors 2025-09-20 06:16:14 +00:00
mac.js crypto: avoid calls to promise.catch() 2025-10-11 20:49:13 +02:00
pbkdf2.js src: refactor SubtleCrypto algorithm and length validations 2025-04-17 10:51:28 -03:00
random.js crypto: forbid passing Float16Array to getRandomValues() 2025-05-19 12:13:58 +02:00
rsa.js crypto: use return await when returning Promises from async functions 2025-10-11 20:49:13 +02:00
scrypt.js
sig.js crypto: ensure documented RSA-PSS saltLength default is used 2026-02-17 15:09:14 +01:00
util.js crypto: prepare webcrypto key import/export for modern algorithms 2025-08-26 11:22:39 +02:00
webcrypto.js crypto: use return await when returning Promises from async functions 2025-10-11 20:49:13 +02:00
webidl.js crypto: fix cross-realm SharedArrayBuffer validation 2025-05-19 12:14:02 +02:00
x509.js lib: backport _tls_common and _tls_wrap refactors 2026-03-16 17:29:52 +01:00