World of Might and Magic
0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
|
Функции | |
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 |
struct AVAES* av_aes_alloc | ( | void | ) |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavutil/aes.h>
Allocate an AVAES context.
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_bits | 128, 192 or 256 |
decrypt | 0 for encryption, 1 for decryption |
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.
count | number of 16 byte blocks |
dst | destination array, can be equal to src |
src | source array, can be equal to dst |
iv | initialization vector for CBC mode, if NULL then ECB will be used |
decrypt | 0 for encryption, 1 for decryption |
const int av_aes_size |