World of Might and Magic
0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
|
Классы | |
struct | AVBlowfish |
Определения типов | |
typedef struct AVBlowfish | AVBlowfish |
Функции | |
AVBlowfish * | av_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) |
typedef struct AVBlowfish AVBlowfish |
AVBlowfish* av_blowfish_alloc | ( | void | ) |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavutil/blowfish.h>
Allocate an AVBlowfish context.
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.
ctx | an AVBlowfish context |
key | a key |
key_len | length of the key |
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.
ctx | an AVBlowfish context |
xl | left four bytes halves of input to be encrypted |
xr | right four bytes halves of input to be encrypted |
decrypt | 0 for encryption, 1 for decryption |
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.
ctx | an AVBlowfish context |
dst | destination array, can be equal to src |
src | source array, can be equal to dst |
count | number of 8 byte blocks |
iv | initialization vector for CBC mode, if NULL ECB will be used |
decrypt | 0 for encryption, 1 for decryption |