sm2 改进

This commit is contained in:
cheney
2026-04-18 14:58:39 +08:00
parent c9d66a77b1
commit 20c27b2e5b
4 changed files with 239 additions and 168 deletions
+1
View File
@@ -10,6 +10,7 @@ declare module 'sm-crypto' {
doDecrypt: (ciphertext: string, privateKey: string) => string;
doSignature: (message: string | Uint8Array, privateKey: string, options?: { hash?: boolean, der?: boolean, userId?: string, publicKey?: string, pointPool?: any[] }) => string;
doVerifySignature: (message: string | Uint8Array, signature: string, publicKey: string, options?: { hash?: boolean, der?: boolean, userId?: string }) => boolean;
getPublicKeyFromPrivateKey: (privateKey: string) => string;
};
export const sm3: {