Skip to content

Commit 1e9c916

Browse files
Fix ECDSA signature verification: use lowercase 'sha256' for ES256 algorithm
Co-authored-by: xuyushun441-sys <255036401+xuyushun441-sys@users.noreply.github.com>
1 parent f123db4 commit 1e9c916

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/core/src/security/plugin-signature-verifier.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,8 +308,8 @@ export class PluginSignatureVerifier {
308308
try {
309309
// Create verify object based on algorithm
310310
if (this.config.algorithm === 'ES256') {
311-
// ECDSA verification
312-
const verify = cryptoModule.createVerify('SHA256');
311+
// ECDSA verification - requires lowercase 'sha256'
312+
const verify = cryptoModule.createVerify('sha256');
313313
verify.update(data);
314314
return verify.verify(
315315
{

0 commit comments

Comments
 (0)