Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
FAES Struct Reference

#include <AES.h>

Classes

struct  FAESKey
 

Static Public Member Functions

static void EncryptData (uint8 *Contents, uint64 NumBytes, const FAESKey &Key)
 
static void EncryptData (uint8 *Contents, uint64 NumBytes, const ANSICHAR *Key)
 
static void EncryptData (uint8 *Contents, uint64 NumBytes, const uint8 *KeyBytes, uint32 NumKeyBytes)
 
static void DecryptData (uint8 *Contents, uint64 NumBytes, const FAESKey &Key)
 
static void DecryptData (uint8 *Contents, uint64 NumBytes, const ANSICHAR *Key)
 
static void DecryptData (uint8 *Contents, uint64 NumBytes, const uint8 *KeyBytes, uint32 NumKeyBytes)
 

Static Public Attributes

static constexpr uint32 AESBlockSize = 16
 

Detailed Description

Definition at line 19 of file AES.h.

Member Function Documentation

◆ DecryptData() [1/3]

static void FAES::DecryptData ( uint8 * Contents,
uint64 NumBytes,
const ANSICHAR * Key )
static

Decrypts a chunk of data using a specific key

Parameters
Contentsthe buffer to encrypt
NumBytesthe size of the buffer
Keya null terminated string that is a 32 bytes long

◆ DecryptData() [2/3]

static void FAES::DecryptData ( uint8 * Contents,
uint64 NumBytes,
const FAESKey & Key )
static

Decrypts a chunk of data using a specific key

Parameters
Contentsthe buffer to encrypt
NumBytesthe size of the buffer
KeyAn FAESKey object containing the decryption key

◆ DecryptData() [3/3]

static void FAES::DecryptData ( uint8 * Contents,
uint64 NumBytes,
const uint8 * KeyBytes,
uint32 NumKeyBytes )
static

Decrypts a chunk of data using a specific key

Parameters
Contentsthe buffer to encrypt
NumBytesthe size of the buffer
Keya byte array that is a 32 byte length
NumKeyByteslength of Key byte array, must be 32

◆ EncryptData() [1/3]

static void FAES::EncryptData ( uint8 * Contents,
uint64 NumBytes,
const ANSICHAR * Key )
static

Encrypts a chunk of data using a specific key

Parameters
Contentsthe buffer to encrypt
NumBytesthe size of the buffer
Keya null terminated string that is a 32 bytes long

◆ EncryptData() [2/3]

static void FAES::EncryptData ( uint8 * Contents,
uint64 NumBytes,
const FAESKey & Key )
static

Encrypts a chunk of data using a specific key

Parameters
Contentsthe buffer to encrypt
NumBytesthe size of the buffer
KeyAn FAESKey object containing the encryption key

◆ EncryptData() [3/3]

static void FAES::EncryptData ( uint8 * Contents,
uint64 NumBytes,
const uint8 * KeyBytes,
uint32 NumKeyBytes )
static

Encrypts a chunk of data using a specific key

Parameters
Contentsthe buffer to encrypt
NumBytesthe size of the buffer
Keya byte array that is a 32 byte length
NumKeyByteslength of Key byte array, must be 32

Member Data Documentation

◆ AESBlockSize

constexpr uint32 FAES::AESBlockSize = 16
staticconstexpr

Definition at line 21 of file AES.h.


The documentation for this struct was generated from the following file: