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

Функции

struct AVTEA * av_tea_alloc (void)
 
void av_tea_init (struct AVTEA *ctx, const uint8_t key[16], int rounds)
 
void av_tea_crypt (struct AVTEA *ctx, uint8_t *dst, const uint8_t *src, int count, uint8_t *iv, int decrypt)
 

Переменные

const int av_tea_size
 

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

Функции

◆ av_tea_alloc()

struct AVTEA* av_tea_alloc ( void  )

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

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

◆ av_tea_init()

void av_tea_init ( struct AVTEA *  ctx,
const uint8_t  key[16],
int  rounds 
)

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

Initialize an AVTEA context.

Аргументы
ctxan AVTEA context
keya key of 16 bytes used for encryption/decryption
roundsthe number of rounds in TEA (64 is the "standard")

◆ av_tea_crypt()

void av_tea_crypt ( struct AVTEA *  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/tea.h>

Encrypt or decrypt a buffer using a previously initialized context.

Аргументы
ctxan AVTEA 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, if NULL then ECB will be used
decrypt0 for encryption, 1 for decryption

Переменные

◆ av_tea_size