From 59375ef04948b7e9724f21df1624104d30cdcf01 Mon Sep 17 00:00:00 2001 From: Javien Lee Date: Mon, 27 Nov 2023 16:14:58 +0900 Subject: [PATCH] fix: verifier algorithm --- src/crypto/node/crypto.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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');