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

Классы

struct  AVBlowfish
 

Определения типов

typedef struct AVBlowfish AVBlowfish
 

Функции

AVBlowfishav_blowfish_alloc (void)
 
void av_blowfish_init (struct AVBlowfish *ctx, const uint8_t *key, int key_len)
 
void av_blowfish_crypt_ecb (struct AVBlowfish *ctx, uint32_t *xl, uint32_t *xr, int decrypt)
 
void av_blowfish_crypt (struct AVBlowfish *ctx, uint8_t *dst, const uint8_t *src, int count, uint8_t *iv, int decrypt)
 

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

Типы

◆ AVBlowfish

Функции

◆ av_blowfish_alloc()

◆ av_blowfish_init()

void av_blowfish_init ( struct AVBlowfish ctx,
const uint8_t key,
int  key_len 
)

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

Initialize an AVBlowfish context.

Аргументы
ctxan AVBlowfish context
keya key
key_lenlength of the key

◆ av_blowfish_crypt_ecb()

void av_blowfish_crypt_ecb ( struct AVBlowfish ctx,
uint32_t xl,
uint32_t xr,
int  decrypt 
)

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

Encrypt or decrypt a buffer using a previously initialized context.

Аргументы
ctxan AVBlowfish context
xlleft four bytes halves of input to be encrypted
xrright four bytes halves of input to be encrypted
decrypt0 for encryption, 1 for decryption

◆ av_blowfish_crypt()

void av_blowfish_crypt ( struct AVBlowfish 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/blowfish.h>

Encrypt or decrypt a buffer using a previously initialized context.

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