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

Файлы

файл  sha512.h
 

Функции

struct AVSHA512 * av_sha512_alloc (void)
 
int av_sha512_init (struct AVSHA512 *context, int bits)
 
void av_sha512_update (struct AVSHA512 *context, const uint8_t *data, unsigned int len)
 
void av_sha512_final (struct AVSHA512 *context, uint8_t *digest)
 

Переменные

const int av_sha512_size
 

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

SHA-512 (Secure Hash Algorithm) hash function implementations.

This module supports the following SHA-2 hash functions:

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

Функции

◆ av_sha512_alloc()

struct AVSHA512* av_sha512_alloc ( void  )

◆ av_sha512_init()

int av_sha512_init ( struct AVSHA512 *  context,
int  bits 
)

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

Initialize SHA-2 512 hashing.

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

◆ av_sha512_update()

void av_sha512_update ( struct AVSHA512 *  context,
const uint8_t data,
unsigned int  len 
)

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

Update hash value.

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

◆ av_sha512_final()

void av_sha512_final ( struct AVSHA512 *  context,
uint8_t digest 
)

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

Finish hashing and output digest value.

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

Переменные

◆ av_sha512_size