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

Функции

struct AVCAST5 * av_cast5_alloc (void)
 
int av_cast5_init (struct AVCAST5 *ctx, const uint8_t *key, int key_bits)
 
void av_cast5_crypt (struct AVCAST5 *ctx, uint8_t *dst, const uint8_t *src, int count, int decrypt)
 
void av_cast5_crypt2 (struct AVCAST5 *ctx, uint8_t *dst, const uint8_t *src, int count, uint8_t *iv, int decrypt)
 

Переменные

const int av_cast5_size
 

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

Функции

◆ av_cast5_alloc()

struct AVCAST5* av_cast5_alloc ( void  )

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

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

◆ av_cast5_init()

int av_cast5_init ( struct AVCAST5 *  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/cast5.h>

Initialize an AVCAST5 context.

Аргументы
ctxan AVCAST5 context
keya key of 5,6,...16 bytes used for encryption/decryption
key_bitsnumber of keybits: possible are 40,48,...,128
Возвращает
0 on success, less than 0 on failure

◆ av_cast5_crypt()

void av_cast5_crypt ( struct AVCAST5 *  ctx,
uint8_t dst,
const uint8_t src,
int  count,
int  decrypt 
)

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

Encrypt or decrypt a buffer using a previously initialized context, ECB mode only

Аргументы
ctxan AVCAST5 context
dstdestination array, can be equal to src
srcsource array, can be equal to dst
countnumber of 8 byte blocks
decrypt0 for encryption, 1 for decryption

◆ av_cast5_crypt2()

void av_cast5_crypt2 ( struct AVCAST5 *  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/cast5.h>

Encrypt or decrypt a buffer using a previously initialized context

Аргументы
ctxan AVCAST5 context
dstdestination array, can be equal to src
srcsource array, can be equal to dst
countnumber of 8 byte blocks
ivinitialization vector for CBC mode, NULL for ECB mode
decrypt0 for encryption, 1 for decryption

Переменные

◆ av_cast5_size