node/deps/ncrypto
Tobias Nießen 88011a3689
crypto,tls: do not ignore BN_get_word error
This changes `BignumPointer::GetWord` such that it does not hide errors
from the caller. In the context of RSA keys within X.509 certificates,
we should eventually compute the public exponent correctly regardless of
its size. This patch, however, is designed to be a minimal change that
prevents callers from using erroneous return values of `BN_get_word`.

Signed-off-by: Tobias Nießen <tniessen@tnie.de>
PR-URL: https://github.com/nodejs/node/pull/63895
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2026-06-20 16:58:11 +02:00
..
BUILD.gn
engine.cc crypto: revert dangerous uses of std::string_view 2025-04-15 12:09:22 +00:00
ncrypto.cc crypto,tls: do not ignore BN_get_word error 2026-06-20 16:58:11 +02:00
ncrypto.gyp src: add BoringSSL EVP enumeration fallback 2026-05-19 14:08:19 +02:00
ncrypto.h crypto,tls: do not ignore BN_get_word error 2026-06-20 16:58:11 +02:00
README.md
unofficial.gni build: use variable for crypto dep path 2024-11-23 11:06:02 +00:00

Node.js crypto (ncrypto) library

The ncrypto library extracts the base internal implementation of Node.js crypto operations that support both node:crypto and Web Crypto implementations and makes them available for use in other projects that need to emulate Node.js' behavior.