public string GetSignString(string cert_sn, string str_to_sign) { SignStrOut result = SignString(new SingStrIn() { CertSn = cert_sn, StrToSign = str_to_sign }); return(result.Result.Signature); }
public SignStrOut SignString(SingStrIn singStrIn) { SignStrOut result = new SignStrOut(); try { result.Result = SignStr(singStrIn); result.error = null; } catch (Exception ex) { result.Result = null; result.error.Message = ex.Message; result.error.Code = 60600; } return(result); }