[vlc-devel] [PATCH v3 02/14] src: add cleaner md5 API

Francois Cartegnie fcvlcdev at free.fr
Wed Apr 8 16:54:06 CEST 2020


Le 08/04/2020 à 16:10, Marvin Scholz a écrit :
> +void vlc_hash_md5_FinishHex(vlc_hash_md5_t *ctx, char *output, size_t size)
> +{
> +    assert(size >= VLC_HASH_MD5_DIGEST_SIZE);
> +    VLC_UNUSED(size);
> +
> +    md5_final(&ctx->priv);
> +    vlc_hex_encode_binary(ctx->priv.buf, VLC_HASH_MD5_DIGEST_SIZE, output);
> +    vlc_hash_md5_Init(ctx);

That's still creating an API for something not related to md5.

-- 
Francois Cartegnie
VideoLAN - VLC Developer


More information about the vlc-devel mailing list