FFmpeg
|
Functions | |
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. | |
void | av_sha_update (struct AVSHA *context, const uint8_t *data, unsigned int len) |
Update hash value. | |
void | av_sha_final (struct AVSHA *context, uint8_t *digest) |
Finish hashing and output digest value. | |
Variables | |
const int | av_sha_size |
Allocate an AVSHA context.
Definition at line 45 of file sha.c.
Referenced by av_hash_alloc(), av_hmac_alloc(), ff_rtmp_calc_digest(), and mkv_write_attachments().
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) |
Definition at line 254 of file sha.c.
Referenced by av_hash_init(), ff_rtmp_calc_digest(), get_generic_seed(), and mkv_write_attachments().
Update hash value.
context | hash function context |
data | input data to update hash with |
len | input data length |
Definition at line 295 of file sha.c.
Referenced by av_hash_update(), av_hmac_alloc(), av_sha_final(), ff_rtmp_calc_digest(), get_generic_seed(), and mkv_write_attachments().
Finish hashing and output digest value.
context | hash function context |
digest | buffer where output digest value is stored |
Definition at line 322 of file sha.c.
Referenced by av_hash_final(), av_hmac_alloc(), ff_rtmp_calc_digest(), get_generic_seed(), and mkv_write_attachments().
const int av_sha_size |
Definition at line 43 of file sha.c.
Referenced by get_generic_seed().