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> |
||
|---|---|---|
| .. | ||
| BUILD.gn | ||
| engine.cc | ||
| ncrypto.cc | ||
| ncrypto.gyp | ||
| ncrypto.h | ||
| README.md | ||
| unofficial.gni | ||
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.