public WzBinaryWriter(Stream output, byte[] WzIv, bool leaveOpen) : base(output) { WzKey = WzKeyGenerator.GenerateWzKey(WzIv); StringCache = new Hashtable(); this.LeaveOpen = leaveOpen; }
public static bool AESSelfCheck(ref string exceptionResult) { try { byte[] foo = WzKeyGenerator.GenerateWzKey(GetIvByMapleVersion(WzMapleVersion.GMS)); return(true); } catch (Exception e) { exceptionResult = e.Message; return(false); } }
public WzBinaryReader(Stream pInput, byte[] pWzIv, bool setKey = false) : base(pInput) { WzKey = setKey ? pWzIv : WzKeyGenerator.GenerateWzKey(pWzIv); noEncryption = WzKey.All(singleByte => singleByte == 0); }
public WzBinaryReader(Stream input, byte[] WzIv) : base(input) { WzKey = WzKeyGenerator.GenerateWzKey(WzIv); }
public WzBinaryWriter(Stream pOutput, byte[] pWzIv, bool pLeaveOpen = false) : base(pOutput) { WzKey = WzKeyGenerator.GenerateWzKey(pWzIv); StringCache = new Hashtable(); LeaveOpen = pLeaveOpen; }