Open noway opened 6 months ago
I tried to find a workaround, but no luck.
I replaced
const isVerified = crypto.verify(null, data, { key: pubkey }, sig);
with
const isVerified = crypto.createVerify('RSA-SHA384').update(data).verify(pubkey, sig)
That made Bun throw a new error: error: Failed to match tag: "int" at: ["algorithm"]["params"]["p"]
. Node.js on the other hand has successfully verified the signature, which is the expected behaviour.
What version of Bun is running?
1.1.8+89d25807f
What platform is your computer?
Darwin 23.4.0 arm64 arm
What steps can reproduce the bug?
test.js
:Run:
What is the expected behavior?
print
true
What do you see instead?
Additional information
node test.js
printstrue