mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
Resolve the exposed digest options against provider descriptors and construct UTF-8 or octet strings according to their advertised types. Keep binary values intact for octet strings and reject NUL bytes for UTF-8 strings. Share hash initialization and one-shot input/output handling while retaining the plain digest fast paths and XOF length checks. Probe RSA implicit rejection without changing its context. Signed-off-by: Filip Skokan <panva.ip@gmail.com> Assisted-by: Codex PR-URL: https://github.com/nodejs/node/pull/67565 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>