Files
node/lib/internal/crypto
Tobias Nießen 72151769b8 crypto: remove default encoding from DiffieHellman
getDefaultEncoding() always returns 'buffer' in Node.js 20.

In diffiehellman.js, this value is always used as input to either
toBuf(), encode(), or getArrayBufferOrView(). All of these functions
treat any falsy encoding just like 'buffer', so we can safely remove the
calls to getDefaultEncoding().

Refs: https://github.com/nodejs/node/pull/47182
PR-URL: https://github.com/nodejs/node/pull/49169
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
2023-08-16 15:23:06 +00:00
..
2023-03-06 10:44:14 +01:00
2023-03-06 10:44:14 +01:00
2023-03-06 10:44:14 +01:00
2023-03-06 10:44:14 +01:00