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

Классы

struct  AVRC4
 

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

typedef struct AVRC4 AVRC4
 

Функции

AVRC4av_rc4_alloc (void)
 
int av_rc4_init (struct AVRC4 *d, const uint8_t *key, int key_bits, int decrypt)
 Initializes an AVRC4 context. Подробнее...
 
void av_rc4_crypt (struct AVRC4 *d, uint8_t *dst, const uint8_t *src, int count, uint8_t *iv, int decrypt)
 Encrypts / decrypts using the RC4 algorithm. Подробнее...
 

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

Типы

◆ AVRC4

Функции

◆ av_rc4_alloc()

◆ av_rc4_init()

int av_rc4_init ( struct AVRC4 d,
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/rc4.h>

Initializes an AVRC4 context.

Аргументы
key_bitsmust be a multiple of 8
decrypt0 for encryption, 1 for decryption, currently has no effect
Возвращает
zero on success, negative value otherwise

◆ av_rc4_crypt()

void av_rc4_crypt ( struct AVRC4 d,
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/rc4.h>

Encrypts / decrypts using the RC4 algorithm.

Аргументы
countnumber of bytes
dstdestination array, can be equal to src
srcsource array, can be equal to dst, may be NULL
ivnot (yet) used for RC4, should be NULL
decrypt0 for encryption, 1 for decryption, not (yet) used