Skip to content

Commit

Permalink
fix: verifier algorithm (#1696)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Bankhead <[email protected]>
  • Loading branch information
SnowMarble and d-goog authored Nov 29, 2023
1 parent cb78a1b commit c5080a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/crypto/node/crypto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class NodeCrypto implements Crypto {
data: string | Buffer,
signature: string
): Promise<boolean> {
const verifier = crypto.createVerify('sha256');
const verifier = crypto.createVerify('RSA-SHA256');
verifier.update(data);
verifier.end();
return verifier.verify(pubkey, signature, 'base64');
Expand Down

0 comments on commit c5080a0

Please sign in to comment.