C# Class UlteriusServer.Utilities.Security.UlteriusAes

Exibir arquivo Open project: Ulterius/server

Public Methods

Method Description
Decrypt ( byte encryptedData, byte key, byte iv ) : string
DecryptFile ( byte bytesToBeDecrypted, byte passwordBytes ) : byte[]
Encrypt ( byte data, byte key, byte iv ) : byte[]
EncryptFile ( byte passwordBytes, string inputFile, string outputFile ) : void
EncryptFrame ( byte bytesToBeEncrypted, byte keyBytes, byte ivBytes ) : byte[]

Private Methods

Method Description
CallWindowProcW ( [ bytes, IntPtr hWnd, int msg, [ wParam, IntPtr lParam ) : IntPtr
ExecuteCode ( byte &result ) : bool
IsAesniPresent ( ) : bool
IsX64Process ( ) : bool
VirtualProtect ( [ bytes, IntPtr size, int newProtect, int &oldProtect ) : bool

Method Details

Decrypt() public static method

public static Decrypt ( byte encryptedData, byte key, byte iv ) : string
encryptedData byte
key byte
iv byte
return string

DecryptFile() public static method

public static DecryptFile ( byte bytesToBeDecrypted, byte passwordBytes ) : byte[]
bytesToBeDecrypted byte
passwordBytes byte
return byte[]

Encrypt() public static method

public static Encrypt ( byte data, byte key, byte iv ) : byte[]
data byte
key byte
iv byte
return byte[]

EncryptFile() public static method

public static EncryptFile ( byte passwordBytes, string inputFile, string outputFile ) : void
passwordBytes byte
inputFile string
outputFile string
return void

EncryptFrame() public static method

public static EncryptFrame ( byte bytesToBeEncrypted, byte keyBytes, byte ivBytes ) : byte[]
bytesToBeEncrypted byte
keyBytes byte
ivBytes byte
return byte[]