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

Файлы

файл  sha.h
 

Функции

struct AVSHA * av_sha_alloc (void)
 
int av_sha_init (struct AVSHA *context, int bits)
 
void av_sha_update (struct AVSHA *ctx, const uint8_t *data, unsigned int len)
 
void av_sha_final (struct AVSHA *context, uint8_t *digest)
 

Переменные

const int av_sha_size
 

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

SHA-1 and SHA-256 (Secure Hash Algorithm) hash function implementations.

This module supports the following SHA hash functions:

См. также
For SHA-384, SHA-512, and variants thereof, see SHA-512.

Функции

◆ av_sha_alloc()

struct AVSHA* av_sha_alloc ( void  )

◆ av_sha_init()

int av_sha_init ( struct AVSHA *  context,
int  bits 
)

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

Initialize SHA-1 or SHA-2 hashing.

Аргументы
contextpointer to the function context (of size av_sha_size)
bitsnumber of bits in digest (SHA-1 - 160 bits, SHA-2 224 or 256 bits)
Возвращает
zero if initialization succeeded, -1 otherwise

◆ av_sha_update()

void av_sha_update ( struct AVSHA *  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/sha.h>

Update hash value.

Аргументы
ctxhash function context
datainput data to update hash with
leninput data length

◆ av_sha_final()

void av_sha_final ( struct AVSHA *  context,
uint8_t digest 
)

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

Finish hashing and output digest value.

Аргументы
contexthash function context
digestbuffer where output digest value is stored

Переменные

◆ av_sha_size