public MapleCipher(short majorVersion, byte[] IV, AesCipher aes, CipherType transformDirection) { m_majorVersion = majorVersion; m_IV = new byte[IVLength]; Buffer.BlockCopy(IV, 0, m_IV, 0, IVLength); m_aesCipher = aes; }
public MapleCipher(short majorVersion, byte[] IV, AesCipher aes, CipherType transformDirection) { m_majorVersion = majorVersion; m_IV = new byte[IVLength]; Buffer.BlockCopy(IV, 0, m_IV, 0, IVLength); m_aesCipher = aes; m_transformer = transformDirection == CipherType.Encrypt ? new Action <byte[]>(EncryptTransform) : new Action <byte[]>(DecryptTransform); }