60#define vlc_hash_FinishHex(ctx, output) \
62 char out_tmp[_Generic((ctx), \
63 vlc_hash_md5_t *: VLC_HASH_MD5_DIGEST_SIZE)]; \
65 vlc_hash_md5_t *: vlc_hash_md5_Finish) \
66 (ctx, out_tmp, sizeof(out_tmp)); \
67 vlc_hex_encode_binary(out_tmp, sizeof(out_tmp), output); \
97#define VLC_HASH_MD5_DIGEST_SIZE 16
102#define VLC_HASH_MD5_DIGEST_HEX_SIZE 33
#define VLC_API
Definition: fourcc_gen.c:31
void vlc_hash_md5_Update(vlc_hash_md5_t *ctx, const void *data, size_t size)
Update MD5 hash computation with new data.
Definition: md5.c:343
void vlc_hash_md5_Finish(vlc_hash_md5_t *ctx, void *output, size_t size)
Finish MD5 hash computation.
Definition: md5.c:348
void vlc_hash_md5_Init(vlc_hash_md5_t *ctx)
Initialize MD5 context.
Definition: md5.c:338
struct vlc_hash_md5_ctx vlc_hash_md5_t
MD5 hash context.
Definition: vlc_hash.h:87
uint32_t A
Definition: vlc_hash.h:88
int count
Definition: vlc_hash.h:91
uint32_t nblocks
Definition: vlc_hash.h:89
uint32_t B
Definition: vlc_hash.h:88
uint8_t buf[64]
Definition: vlc_hash.h:90
uint32_t C
Definition: vlc_hash.h:88
uint32_t D
Definition: vlc_hash.h:88
MD5 hash context.
Definition: vlc_hash.h:86
struct vlc_hash_md5_ctx::md5_s priv
This file is a collection of common definitions and types.