Skip to content

crypto: reject public keys properly

Rodrigo Muino Tomonari requested to merge github/fork/tniessen/fix-29904 into master

If the underlying operation requires a private key, isPublic must be set to false instead of undefined. (The latter means that both public and private keys are accepted.)

Fixes: https://github.com/nodejs/node/issues/29904

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines

Merge request reports

Loading