World of Might and Magic
0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
xtea.h
См. документацию.
1
/*
2
* A 32-bit implementation of the XTEA algorithm
3
* Copyright (c) 2012 Samuel Pitoiset
4
*
5
* This file is part of FFmpeg.
6
*
7
* FFmpeg is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU Lesser General Public
9
* License as published by the Free Software Foundation; either
10
* version 2.1 of the License, or (at your option) any later version.
11
*
12
* FFmpeg is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
* Lesser General Public License for more details.
16
*
17
* You should have received a copy of the GNU Lesser General Public
18
* License along with FFmpeg; if not, write to the Free Software
19
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20
*/
21
22
#ifndef AVUTIL_XTEA_H
23
#define AVUTIL_XTEA_H
24
25
#include <stdint.h>
26
35
typedef
struct
AVXTEA
{
36
uint32_t
key
[16];
37
}
AVXTEA
;
38
42
AVXTEA
*
av_xtea_alloc
(
void
);
43
51
void
av_xtea_init
(
struct
AVXTEA
*
ctx
,
const
uint8_t
key[16]);
52
60
void
av_xtea_le_init
(
struct
AVXTEA
*
ctx
,
const
uint8_t
key[16]);
61
73
void
av_xtea_crypt
(
struct
AVXTEA
*
ctx
,
uint8_t
*
dst
,
const
uint8_t
*
src
,
74
int
count
,
uint8_t
*iv,
int
decrypt);
75
87
void
av_xtea_le_crypt
(
struct
AVXTEA
*
ctx
,
uint8_t
*
dst
,
const
uint8_t
*
src
,
88
int
count
,
uint8_t
*iv,
int
decrypt);
89
94
#endif
/* AVUTIL_XTEA_H */
av_xtea_crypt
void av_xtea_crypt(struct AVXTEA *ctx, uint8_t *dst, const uint8_t *src, int count, uint8_t *iv, int decrypt)
count
GLuint GLuint GLsizei count
Definition:
SDL_opengl.h:1571
av_xtea_init
void av_xtea_init(struct AVXTEA *ctx, const uint8_t key[16])
AVXTEA::key
uint32_t key[16]
Definition:
xtea.h:36
src
GLenum src
Definition:
SDL_opengl_glext.h:1740
ctx
EGLContext ctx
Definition:
SDL_egl.h:952
dst
GLenum GLenum dst
Definition:
SDL_opengl_glext.h:1740
av_xtea_le_init
void av_xtea_le_init(struct AVXTEA *ctx, const uint8_t key[16])
AVXTEA
Definition:
xtea.h:35
uint8_t
unsigned __int8 uint8_t
Definition:
SDL_config.h:35
av_xtea_alloc
AVXTEA * av_xtea_alloc(void)
av_xtea_le_crypt
void av_xtea_le_crypt(struct AVXTEA *ctx, uint8_t *dst, const uint8_t *src, int count, uint8_t *iv, int decrypt)
uint32_t
unsigned __int32 uint32_t
Definition:
SDL_config.h:39
AVXTEA
struct AVXTEA AVXTEA
lib
win32
x86
ffmpeg-4.2.2
include
libavutil
xtea.h
Документация по World of Might and Magic. Последние изменения: Вт 7 Апр 2020 22:03:40. Создано системой
1.8.17