コード例 #1
0
 public static byte[] Decrypt(byte[] privkey, byte[] data)
 {
     byte[] plain = SM2Util.Decrypt(privkey, data);
     return(plain);
 }
コード例 #2
0
 /// <summary>
 /// 私钥解密
 /// </summary>
 /// <param name="privkey">私钥</param>
 /// <param name="data">数据</param>
 /// <returns></returns>
 public static byte[] Decrypt(string privkey, byte[] data)
 {
     byte[] plain = SM2Util.Decrypt(Hex.Decode(privkey), data);
     return(plain);
 }