diff --git a/src/crypto/node/crypto.ts b/src/crypto/node/crypto.ts index eaaff400..7d045f2b 100644 --- a/src/crypto/node/crypto.ts +++ b/src/crypto/node/crypto.ts @@ -29,7 +29,7 @@ export class NodeCrypto implements Crypto { data: string | Buffer, signature: string ): Promise { - const verifier = crypto.createVerify('sha256'); + const verifier = crypto.createVerify('RSA-SHA256'); verifier.update(data); verifier.end(); return verifier.verify(pubkey, signature, 'base64');