VLC 4.0.0-dev
Loading...
Searching...
No Matches
Helper functions

Functions commonly used together with hashing functions. More...

Collaboration diagram for Helper functions:

Macros

#define vlc_hash_FinishHex(ctx, output)
 Finish hash computation and return hex representation.
 

Detailed Description

Functions commonly used together with hashing functions.

Macro Definition Documentation

◆ vlc_hash_FinishHex

#define vlc_hash_FinishHex (   ctx,
  output 
)
Value:
do { \
char out_tmp[_Generic((ctx), \
_Generic((ctx), \
(ctx, out_tmp, sizeof(out_tmp)); \
vlc_hex_encode_binary(out_tmp, sizeof(out_tmp), output); \
} while (0)
void vlc_hash_md5_Finish(vlc_hash_md5_t *ctx, void *output, size_t size)
Finish MD5 hash computation.
Definition md5.c:348
#define VLC_HASH_MD5_DIGEST_SIZE
MD5 digest output size.
Definition vlc_hash.h:98
MD5 hash context.
Definition vlc_hash.h:86

Finish hash computation and return hex representation.

Finishes the hash computation and provides the hash for the concatenation of all provided data in hex encoded format. The result is written to the buffer pointed to by output, which must be larger than twice the size of the hash output.

Parameters
[in,out]ctxHash context to finish
[out]outputOutput buffer to write the string to