World of Might and Magic  0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
+ Граф связей класса AES:

Функции

struct AVAES * av_aes_alloc (void)
 
int av_aes_init (struct AVAES *a, const uint8_t *key, int key_bits, int decrypt)
 
void av_aes_crypt (struct AVAES *a, uint8_t *dst, const uint8_t *src, int count, uint8_t *iv, int decrypt)
 

Переменные

const int av_aes_size
 

Подробное описание

Функции

◆ av_aes_alloc()

struct AVAES* av_aes_alloc ( void  )

◆ av_aes_init()

int av_aes_init ( struct AVAES *  a,
const uint8_t key,
int  key_bits,
int  decrypt 
)

#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavutil/aes.h>

Initialize an AVAES context.

Аргументы
key_bits128, 192 or 256
decrypt0 for encryption, 1 for decryption

◆ av_aes_crypt()

void av_aes_crypt ( struct AVAES *  a,
uint8_t dst,
const uint8_t src,
int  count,
uint8_t iv,
int  decrypt 
)

#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavutil/aes.h>

Encrypt or decrypt a buffer using a previously initialized context.

Аргументы
countnumber of 16 byte blocks
dstdestination array, can be equal to src
srcsource array, can be equal to dst
ivinitialization vector for CBC mode, if NULL then ECB will be used
decrypt0 for encryption, 1 for decryption

Переменные

◆ av_aes_size