FFmpeg
|
Functions | |
struct AVSHA512 * | av_sha512_alloc (void) |
Allocate an AVSHA512 context. More... | |
int | av_sha512_init (struct AVSHA512 *context, int bits) |
Initialize SHA-2 512 hashing. More... | |
void | av_sha512_update (struct AVSHA512 *context, const uint8_t *data, unsigned int len) |
Update hash value. More... | |
void | av_sha512_final (struct AVSHA512 *context, uint8_t *digest) |
Finish hashing and output digest value. More... | |
Variables | |
const int | av_sha512_size |
Allocate an AVSHA512 context.
Definition at line 43 of file sha512.c.
Referenced by av_hash_alloc(), av_hmac_alloc(), and main().
int av_sha512_init | ( | struct AVSHA512 * | context, |
int | bits | ||
) |
Initialize SHA-2 512 hashing.
context | pointer to the function context (of size av_sha512_size) |
bits | number of bits in digest (224, 256, 384 or 512 bits) |
Definition at line 191 of file sha512.c.
Referenced by av_hash_init(), and main().
Update hash value.
context | hash function context |
data | input data to update hash with |
len | input data length |
Definition at line 242 of file sha512.c.
Referenced by av_hash_update(), av_hmac_alloc(), av_sha512_final(), and main().
Finish hashing and output digest value.
context | hash function context |
digest | buffer where output digest value is stored |
Definition at line 269 of file sha512.c.
Referenced by av_hash_final(), av_hmac_alloc(), and main().