|
FFmpeg
2.8.6
|
Functions | |
| struct AVSHA * | av_sha_alloc (void) |
| Allocate an AVSHA context. More... | |
| int | av_sha_init (struct AVSHA *context, int bits) |
| Initialize SHA-1 or SHA-2 hashing. More... | |
| void | av_sha_update (struct AVSHA *context, const uint8_t *data, unsigned int len) |
| Update hash value. More... | |
| void | av_sha_final (struct AVSHA *context, uint8_t *digest) |
| Finish hashing and output digest value. More... | |
Variables | |
| const int | av_sha_size |
| struct AVSHA* av_sha_alloc | ( | void | ) |
Allocate an AVSHA context.
| int av_sha_init | ( | struct AVSHA * | context, |
| int | bits | ||
| ) |
Initialize SHA-1 or SHA-2 hashing.
| context | pointer to the function context (of size av_sha_size) |
| bits | number of bits in digest (SHA-1 - 160 bits, SHA-2 224 or 256 bits) |
| void av_sha_update | ( | struct AVSHA * | context, |
| const uint8_t * | data, | ||
| unsigned int | len | ||
| ) |
Update hash value.
| context | hash function context |
| data | input data to update hash with |
| len | input data length |
| void av_sha_final | ( | struct AVSHA * | context, |
| uint8_t * | digest | ||
| ) |
Finish hashing and output digest value.
| context | hash function context |
| digest | buffer where output digest value is stored |
| const int av_sha_size |
1.8.8