|
FFmpeg 9.0.2
|
SHA-512 (Secure Hash Algorithm) hash function implementations. More...
Files | |
| file | libavutil/sha512.h |
| Public header for SHA-512 implementation. | |
Functions | |
| struct AVSHA512 * | av_sha512_alloc (void) |
| Allocate an AVSHA512 context. | |
| int | av_sha512_init (struct AVSHA512 *context, int bits) |
| Initialize SHA-2 512 hashing. | |
| void | av_sha512_update (struct AVSHA512 *context, const uint8_t *data, size_t len) |
| Update hash value. | |
| void | av_sha512_final (struct AVSHA512 *context, uint8_t *digest) |
| Finish hashing and output digest value. | |
Variables | |
| const int | av_sha512_size |
SHA-512 (Secure Hash Algorithm) hash function implementations.
This module supports the following SHA-2 hash functions:
| struct AVSHA512 * av_sha512_alloc | ( | void | ) |
Allocate an AVSHA512 context.
| 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) |
| void av_sha512_update | ( | struct AVSHA512 * | context, |
| const uint8_t * | data, | ||
| size_t | len ) |
Update hash value.
| context | hash function context |
| data | input data to update hash with |
| len | input data length |
| void av_sha512_final | ( | struct AVSHA512 * | context, |
| uint8_t * | digest ) |
Finish hashing and output digest value.
| context | hash function context |
| digest | buffer where output digest value is stored |
|
extern |