mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
exportKeySpki() and exportKeyPkcs8() contained identical switch statements mapping the algorithm name to its export function. Move the lookup into a shared getAsymmetricKeyExporter() helper. Assisted-by: Claude Signed-off-by: James M Snell <jasnell@gmail.com> PR-URL: https://github.com/nodejs/node/pull/67495 Reviewed-By: Guilherme Araújo <arauujogui@gmail.com> Reviewed-By: Filip Skokan <panva.ip@gmail.com> Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>