sm2 签名验签通过

This commit is contained in:
cheney
2026-04-18 11:09:41 +08:00
parent 0cb442eaa0
commit cccff194b6
3 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -8,8 +8,8 @@ declare module 'sm-crypto' {
generateKeyPairHex: (privateKey?: string) => SM2KeyPair;
doEncrypt: (message: string, publicKey: string) => string;
doDecrypt: (ciphertext: string, privateKey: string) => string;
doSign: (message: string, privateKey: string) => string;
doVerify: (message: string, signature: string, publicKey: string) => boolean;
doSignature: (message: string, privateKey: string, options?: { hash?: boolean, der?: boolean, userId?: string, publicKey?: string, pointPool?: any[] }) => string;
doVerifySignature: (message: string, signature: string, publicKey: string, options?: { hash?: boolean, der?: boolean, userId?: string }) => boolean;
};
export const sm3: {