Repository navigation
Conversation
crypto.publicEncrypt, privateDecrypt, privateEncrypt and publicDecrypt had no lowering. They run through mbedTLS's RSA context on key material, KeyObjects, and option records, matching Node's padding coercions, OAEP hash and label handling, and OpenSSL's error codes and messages for every rejected key, padding and ciphertext shape. privateDecrypt and publicDecrypt also answer the implicit-rejection block Node's OpenSSL builds produce, byte for byte. The introspection statics lower too: getMacs answers the provider MAC list, secureHeapUsed a fresh all-zero usage record, setEngine accepts "dynamic" and reports ERR_CRYPTO_ENGINE_UNKNOWN for every other engine, and the deprecated crypto.fips read reports DEP0093 once per process as the CommonJS exports getter (the ES module namespace does not export it, as in Node). Each behavior is pinned by differential corpus programs that run the same input under Node 24 and the compiled binary.
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
publicEncrypt,privateDecrypt,privateEncrypt,publicDecrypt,getFips,getMacs,secureHeapUsed,setEngine, and the deprecatedcrypto.fips.