Example #1
0
 public static byte[] Sign(string privateKey, byte[] data)
 {
     byte[] signByte = SM2Util.Sign(Hex.Decode(privateKey), data);
     return(signByte);
 }
Example #2
0
 /// <summary>
 /// 私钥加签
 /// </summary>
 /// <returns></returns>
 public static byte[] Sign(byte[] privateKey, byte[] data)
 {
     byte[] signByte = SM2Util.Sign(privateKey, data);
     return(signByte);
 }