Table of Contents

Class Modcrypt

Namespace
SceneGate.Ekona.Security
Assembly
SceneGate.Ekona.dll

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

iv byte[]

The initialization value.

key byte[]

The key.

Methods

Create(ProgramInfo, int)

Create a Modcrypt for a twilight program.

public static Modcrypt Create(ProgramInfo programInfo, int area)

Parameters

programInfo ProgramInfo

Information of the program to initialize encryption.

area int

Modcrypt 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 Stream

The input data.

Returns

DataStream

The decrypted or encrypted data.