World of Might and Magic  0.2.0
Open reimplementation of Might and Magic 6 7 8 game engine
+ Граф связей класса HMAC:

Определения типов

typedef struct AVHMAC AVHMAC
 

Перечисления

enum  AVHMACType {
  AV_HMAC_MD5, AV_HMAC_SHA1, AV_HMAC_SHA224, AV_HMAC_SHA256,
  AV_HMAC_SHA384, AV_HMAC_SHA512
}
 

Функции

AVHMACav_hmac_alloc (enum AVHMACType type)
 
void av_hmac_free (AVHMAC *ctx)
 
void av_hmac_init (AVHMAC *ctx, const uint8_t *key, unsigned int keylen)
 
void av_hmac_update (AVHMAC *ctx, const uint8_t *data, unsigned int len)
 
int av_hmac_final (AVHMAC *ctx, uint8_t *out, unsigned int outlen)
 
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)
 

Подробное описание

Типы

◆ AVHMAC

typedef struct AVHMAC AVHMAC

#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavutil/hmac.h>

См. определение в файле hmac.h строка 42

Перечисления

◆ AVHMACType

enum AVHMACType

#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavutil/hmac.h>

Элементы перечислений
AV_HMAC_MD5 
AV_HMAC_SHA1 
AV_HMAC_SHA224 
AV_HMAC_SHA256 
AV_HMAC_SHA384 
AV_HMAC_SHA512 

См. определение в файле hmac.h строка 33

33  {
40 };

Функции

◆ av_hmac_alloc()

AVHMAC* av_hmac_alloc ( enum AVHMACType  type)

#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavutil/hmac.h>

Allocate an AVHMAC context.

Аргументы
typeThe hash function used for the HMAC.

◆ av_hmac_free()

void av_hmac_free ( AVHMAC ctx)

#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavutil/hmac.h>

Free an AVHMAC context.

Аргументы
ctxThe context to free, may be NULL

◆ av_hmac_init()

void av_hmac_init ( AVHMAC ctx,
const uint8_t key,
unsigned int  keylen 
)

#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavutil/hmac.h>

Initialize an AVHMAC context with an authentication key.

Аргументы
ctxThe HMAC context
keyThe authentication key
keylenThe length of the key, in bytes

◆ av_hmac_update()

void av_hmac_update ( AVHMAC ctx,
const uint8_t data,
unsigned int  len 
)

#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavutil/hmac.h>

Hash data with the HMAC.

Аргументы
ctxThe HMAC context
dataThe data to hash
lenThe length of the data, in bytes

◆ av_hmac_final()

int av_hmac_final ( AVHMAC ctx,
uint8_t out,
unsigned int  outlen 
)

#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavutil/hmac.h>

Finish hashing and output the HMAC digest.

Аргументы
ctxThe HMAC context
outThe output buffer to write the digest into
outlenThe length of the out buffer, in bytes
Возвращает
The number of bytes written to out, or a negative error code.

◆ 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 
)

#include <C:/git/world-of-might-and-magic/lib/win32/x86/ffmpeg-4.2.2/include/libavutil/hmac.h>

Hash an array of data with a key.

Аргументы
ctxThe HMAC context
dataThe data to hash
lenThe length of the data, in bytes
keyThe authentication key
keylenThe length of the key, in bytes
outThe output buffer to write the digest into
outlenThe length of the out buffer, in bytes
Возвращает
The number of bytes written to out, or a negative error code.
AV_HMAC_MD5
@ AV_HMAC_MD5
Definition: hmac.h:34
AV_HMAC_SHA256
@ AV_HMAC_SHA256
Definition: hmac.h:37
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
AV_HMAC_SHA224
@ AV_HMAC_SHA224
Definition: hmac.h:36