World of Might and Magic
0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
|
Классы | |
struct | AVXTEA |
Определения типов | |
typedef struct AVXTEA | AVXTEA |
Функции | |
AVXTEA * | av_xtea_alloc (void) |
void | av_xtea_init (struct AVXTEA *ctx, const uint8_t key[16]) |
void | av_xtea_le_init (struct AVXTEA *ctx, const uint8_t key[16]) |
void | av_xtea_crypt (struct AVXTEA *ctx, uint8_t *dst, const uint8_t *src, int count, uint8_t *iv, int decrypt) |
void | av_xtea_le_crypt (struct AVXTEA *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/xtea.h>
Allocate an AVXTEA context.
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavutil/xtea.h>
Initialize an AVXTEA context.
ctx | an AVXTEA context |
key | a key of 16 bytes used for encryption/decryption, interpreted as big endian 32 bit numbers |
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavutil/xtea.h>
Initialize an AVXTEA context.
ctx | an AVXTEA context |
key | a key of 16 bytes used for encryption/decryption, interpreted as little endian 32 bit numbers |
void av_xtea_crypt | ( | struct AVXTEA * | 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/xtea.h>
Encrypt or decrypt a buffer using a previously initialized context, in big endian format.
ctx | an AVXTEA 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 then ECB will be used |
decrypt | 0 for encryption, 1 for decryption |
void av_xtea_le_crypt | ( | struct AVXTEA * | 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/xtea.h>
Encrypt or decrypt a buffer using a previously initialized context, in little endian format.
ctx | an AVXTEA 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 then ECB will be used |
decrypt | 0 for encryption, 1 for decryption |