/// <summary> /// 生成SM4 string Key /// </summary> /// <returns></returns> public static string GenerateKeyString() { byte[] sm4key = SM4Util.GenerateKey(SM4Util.SM4_KEY_128); return(Hex.ToHexString(sm4key, 0, sm4key.Length)); }
/// <summary> /// 生成SM4 byte Key /// </summary> /// <returns></returns> public static byte[] GenerateKey() { byte[] sm4key = SM4Util.GenerateKey(SM4Util.SM4_KEY_128); return(sm4key); }