public static byte[] Decrypt(byte[] privkey, byte[] data) { byte[] plain = SM2Util.Decrypt(privkey, data); return(plain); }
/// <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); }