Blender V4.3
BLI_hash_md5.hh File Reference
#include <cstdio>
#include "BLI_sys_types.h"

Go to the source code of this file.

Functions

void * BLI_hash_md5_buffer (const char *buffer, size_t len, void *resblock)
 
int BLI_hash_md5_stream (FILE *stream, void *resblock)
 
char * BLI_hash_md5_to_hexdigest (const void *resblock, char r_hex_digest[33])
 

Function Documentation

◆ BLI_hash_md5_buffer()

void * BLI_hash_md5_buffer ( const char * buffer,
size_t len,
void * resblock )

Compute MD5 message digest for 'len' bytes beginning at 'buffer'. The result is always in little endian byte order, so that a byte-wise output yields to the wanted ASCII representation of the message digest.

Definition at line 346 of file hash_md5.cc.

References fillbuf, len, md5_init_ctx(), md5_process_block(), md5_read_ctx(), pad, and SWAP.

Referenced by IMB_thumb_load_font_get_hash(), render_result_exr_file_cache_path(), and thumbpathname_from_uri().

◆ BLI_hash_md5_stream()

int BLI_hash_md5_stream ( FILE * stream,
void * resblock )

Compute MD5 message digest for bytes read from 'stream'. The resulting message digest number will be written into the 16 bytes beginning at 'resblock'.

Returns
Non-zero if an error occurred.

Definition at line 273 of file hash_md5.cc.

References BLOCKSIZE, fillbuf, len, md5_init_ctx(), md5_process_block(), md5_read_ctx(), pad, sum(), and SWAP.

◆ BLI_hash_md5_to_hexdigest()

char * BLI_hash_md5_to_hexdigest ( const void * resblock,
char r_hex_digest[33] )