public WzBinaryWriter(Stream output, byte[] WzIv, bool leaveOpen)
     : base(output)
 {
     WzKey          = WzKeyGenerator.GenerateWzKey(WzIv);
     StringCache    = new Hashtable();
     this.LeaveOpen = leaveOpen;
 }
Ejemplo n.º 2
0
 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);
     }
 }
Ejemplo n.º 3
0
 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);
 }
Ejemplo n.º 5
0
 public WzBinaryWriter(Stream pOutput, byte[] pWzIv, bool pLeaveOpen = false) : base(pOutput)
 {
     WzKey       = WzKeyGenerator.GenerateWzKey(pWzIv);
     StringCache = new Hashtable();
     LeaveOpen   = pLeaveOpen;
 }