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

Функции

struct AVCAMELLIA * av_camellia_alloc (void)
 
int av_camellia_init (struct AVCAMELLIA *ctx, const uint8_t *key, int key_bits)
 
void av_camellia_crypt (struct AVCAMELLIA *ctx, uint8_t *dst, const uint8_t *src, int count, uint8_t *iv, int decrypt)
 

Переменные

const int av_camellia_size
 

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

Функции

◆ av_camellia_alloc()

struct AVCAMELLIA* av_camellia_alloc ( void  )

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

Allocate an AVCAMELLIA context To free the struct: av_free(ptr)

◆ av_camellia_init()

int av_camellia_init ( struct AVCAMELLIA *  ctx,
const uint8_t key,
int  key_bits 
)

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

Initialize an AVCAMELLIA context.

Аргументы
ctxan AVCAMELLIA context
keya key of 16, 24, 32 bytes used for encryption/decryption
key_bitsnumber of keybits: possible are 128, 192, 256

◆ av_camellia_crypt()

void av_camellia_crypt ( struct AVCAMELLIA *  ctx,
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/camellia.h>

Encrypt or decrypt a buffer using a previously initialized context

Аргументы
ctxan AVCAMELLIA context
dstdestination array, can be equal to src
srcsource array, can be equal to dst
countnumber of 16 byte blocks @paran iv initialization vector for CBC mode, NULL for ECB mode
decrypt0 for encryption, 1 for decryption

Переменные

◆ av_camellia_size