Blender  V3.3
Functions
BLI_hash_md5.h File Reference

Go to the source code of this file.

Functions

voidBLI_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 (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 345 of file hash_md5.c.

References buffer, 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 272 of file hash_md5.c.

References BLOCKSIZE, buffer, 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 ( void resblock,
char  r_hex_digest[33] 
)