function GetSM2SignStr(SM4Encrp: string): string;
var
SM2SM4Class:Variant; {变体类型}
begin
{
sSM2Key: SM2私钥
sSM4Key: SM4私钥
}
Result := '';
try
if (sSM2Key='') or (sSM4Key='') then Exit;
SM2SM4Class := CreateOleObject('JQSM2SM4.SM2SM4Util'); {需要 use ComObj}
Result := SM2SM4Class.GetSM2SM4('SM2Sign',
sSM2Key,sSM4Key,SM4Encrp);
except on E:Exception do
Showmessage(E.Message);
end;
end;
下载地址:
技术交流微信feisng