|
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 |
| 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)
#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavutil/tea.h>
Initialize an AVTEA context.
| ctx | an AVTEA context |
| key | a key of 16 bytes used for encryption/decryption |
| rounds | the number of rounds in TEA (64 is the "standard") |
| 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.
| ctx | an AVTEA 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 |
| const int av_tea_size |