Class Modcrypt
Twilight modcrypt encryption (AES-CTR).
public class Modcrypt
- Inheritance
-
Modcrypt
- Inherited Members
Constructors
Modcrypt(byte[], byte[])
Initializes a new instance of the Modcrypt class.
public Modcrypt(byte[] iv, byte[] key)
Parameters
Methods
Create(ProgramInfo, int)
Create a Modcrypt for a twilight program.
public static Modcrypt Create(ProgramInfo programInfo, int area)
Parameters
programInfo
ProgramInfoInformation of the program to initialize encryption.
area
intModcrypt area 1 or 2.
Returns
- Modcrypt
The initialized encryption.
Exceptions
- ArgumentException
Area is not 1/2 or the program flags disable modcrypt.
Transform(Stream)
Encrypt or decrypt (same operation) the input into a new stream.
public DataStream Transform(Stream input)
Parameters
input
StreamThe input data.
Returns
- DataStream
The decrypted or encrypted data.