public static WzMutableKey GenerateWzKey(byte[] WzIv) { return(new WzMutableKey(WzIv, CryptoConstants.GetTrimmedUserKey())); }
public static WzMutableKey GenerateWzKey(byte[] wzIv) => new WzMutableKey(wzIv, CryptoConstants.GetTrimmedUserKey());
public WzBinaryReader(Stream input, byte[] WzIv) : base(input) { WzKey = new WzMutableKey(WzIv, CryptoConstants.GetTrimmedUserKey()); }
public WzBinaryReader(Stream input, WzMapleVersion mapleVersion) : base(input) { WzKey = new WzMutableKey(mapleVersion.EncryptionKey(), CryptoConstants.GetTrimmedUserKey(mapleVersion)); }
/// <summary> /// Encrypts data with AES and updates the IV /// </summary> /// <param name="data"> The data to crypt </param> public void Crypt(byte[] data) { AESEncryption.AESCrypt(IV, data, data.Length, CryptoConstants.GetTrimmedUserKey()); UpdateIV(); }