| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Review requested:
|
Sorry, something went wrong.
|
The notable-change PRs with changes that should be highlighted in changelogs. label has been added by @panva. Please suggest a text for the release notes if you'd like to include a more detailed summary, then proceed to update the PR description with the text or a link to the notable change suggested text comment. Otherwise, the commit will be placed in the Other Notable Changes section. |
Sorry, something went wrong.
Codecov Report❌ Patch coverage is 87.58170% with 19 lines in your changes missing coverage. Please review.
@@ Coverage Diff @@
## main #62345 +/- ##
==========================================
- Coverage 91.60% 89.69% -1.92%
==========================================
Files 337 676 +339
Lines 140745 206795 +66050
Branches 21807 39615 +17808
==========================================
+ Hits 128933 185485 +56552
- Misses 11588 13443 +1855
- Partials 224 7867 +7643
... and 457 files with indirect coverage changes 🚀 New features to boost your workflow:
|
Sorry, something went wrong.
|
Not entirely certain how this works, will test |
Sorry, something went wrong.
regular crypto.sign('sha256', data, key) uses OpenSSL's EVP_DigestSign API, it hashes the input internally, then signs the resulting digest. One call does both steps. prehashed crypto.signDigest('sha256', digest, key) uses the lower-level EVP_PKEY_sign API, it receives an already-computed digest and goes straight for the signature. No hashing happens inside OpenSSL. Even though the digest is already computed, OpenSSL needs to know which digest was used:
Other key type dependant cases:
|
Sorry, something went wrong.
|
(nothing changed about the implementation, just extended test coverage) |
Sorry, something went wrong.
|
(I've removed ML-DSA from this PR for now until I figure if and how to make both external mu and HashML-DSA work) |
Sorry, something went wrong.
Resolves: nodejs#60263 Signed-off-by: Filip Skokan <panva.ip@gmail.com>
|
This pull request has been marked as stale due to 90 days of inactivity. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
notable-change PRs with changes that should be highlighted in changelogs. 👇
Adds crypto.signDigest() and crypto.verifyDigest(), one-shot functions that sign/verify a pre-computed hash digest directly, without hashing internally.
Supports RSA (PKCS#1 v1.5, PSS), ECDSA, DSA, Ed25519, Ed448, and ML-DSA (external mu) I've removed ML-DSA external mu for now.
Resolves: #60263
Pre-hash variants of Ed25519 and Ed448 are defined in RFC8032