World of Might and Magic
0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
hmac.h
См. документацию.
1
/*
2
* Copyright (C) 2012 Martin Storsjo
3
*
4
* This file is part of FFmpeg.
5
*
6
* FFmpeg is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU Lesser General Public
8
* License as published by the Free Software Foundation; either
9
* version 2.1 of the License, or (at your option) any later version.
10
*
11
* FFmpeg is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
* Lesser General Public License for more details.
15
*
16
* You should have received a copy of the GNU Lesser General Public
17
* License along with FFmpeg; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19
*/
20
21
#ifndef AVUTIL_HMAC_H
22
#define AVUTIL_HMAC_H
23
24
#include <stdint.h>
25
26
#include "version.h"
33
enum
AVHMACType
{
34
AV_HMAC_MD5
,
35
AV_HMAC_SHA1
,
36
AV_HMAC_SHA224
,
37
AV_HMAC_SHA256
,
38
AV_HMAC_SHA384
,
39
AV_HMAC_SHA512
,
40
};
41
42
typedef
struct
AVHMAC
AVHMAC
;
43
48
AVHMAC
*
av_hmac_alloc
(
enum
AVHMACType
type
);
49
54
void
av_hmac_free
(
AVHMAC
*
ctx
);
55
62
void
av_hmac_init
(
AVHMAC
*
ctx
,
const
uint8_t
*key,
unsigned
int
keylen);
63
70
void
av_hmac_update
(
AVHMAC
*
ctx
,
const
uint8_t
*
data
,
unsigned
int
len
);
71
79
int
av_hmac_final
(
AVHMAC
*
ctx
,
uint8_t
*out,
unsigned
int
outlen);
80
92
int
av_hmac_calc
(
AVHMAC
*
ctx
,
const
uint8_t
*
data
,
unsigned
int
len
,
93
const
uint8_t
*key,
unsigned
int
keylen,
94
uint8_t
*out,
unsigned
int
outlen);
95
100
#endif
/* AVUTIL_HMAC_H */
AV_HMAC_MD5
@ AV_HMAC_MD5
Definition:
hmac.h:34
av_hmac_calc
int av_hmac_calc(AVHMAC *ctx, const uint8_t *data, unsigned int len, const uint8_t *key, unsigned int keylen, uint8_t *out, unsigned int outlen)
av_hmac_final
int av_hmac_final(AVHMAC *ctx, uint8_t *out, unsigned int outlen)
len
GLenum GLsizei len
Definition:
SDL_opengl_glext.h:2929
AV_HMAC_SHA256
@ AV_HMAC_SHA256
Definition:
hmac.h:37
av_hmac_update
void av_hmac_update(AVHMAC *ctx, const uint8_t *data, unsigned int len)
AV_HMAC_SHA1
@ AV_HMAC_SHA1
Definition:
hmac.h:35
AV_HMAC_SHA384
@ AV_HMAC_SHA384
Definition:
hmac.h:38
AV_HMAC_SHA512
@ AV_HMAC_SHA512
Definition:
hmac.h:39
type
EGLenum type
Definition:
SDL_egl.h:850
ctx
EGLContext ctx
Definition:
SDL_egl.h:952
av_hmac_alloc
AVHMAC * av_hmac_alloc(enum AVHMACType type)
av_hmac_free
void av_hmac_free(AVHMAC *ctx)
uint8_t
unsigned __int8 uint8_t
Definition:
SDL_config.h:35
AVHMAC
struct AVHMAC AVHMAC
Definition:
hmac.h:42
av_hmac_init
void av_hmac_init(AVHMAC *ctx, const uint8_t *key, unsigned int keylen)
data
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
Definition:
SDL_opengl.h:1974
AVHMACType
AVHMACType
Definition:
hmac.h:33
AV_HMAC_SHA224
@ AV_HMAC_SHA224
Definition:
hmac.h:36
lib
win32
x86
ffmpeg-4.2.2
include
libavutil
hmac.h
Документация по World of Might and Magic. Последние изменения: Вт 7 Апр 2020 22:03:39. Создано системой
1.8.17