MySQL 8.3.0
Source Code Documentation
my_md5.h File Reference

Wrapper function for MD5 implementation. More...

#include <sys/types.h>
#include "dig_vec.h"
#include "my_inttypes.h"

Go to the source code of this file.

Functions

int compute_md5_hash (char *digest, const char *buf, size_t len)
 Wrapper function to compute MD5 message digest. More...
 
static void array_to_hex (char *to, const unsigned char *str, uint len)
 

Detailed Description

Wrapper function for MD5 implementation.

Function Documentation

◆ array_to_hex()

static void array_to_hex ( char *  to,
const unsigned char *  str,
uint  len 
)
inlinestatic

◆ compute_md5_hash()

int compute_md5_hash ( char *  digest,
const char *  buf,
size_t  len 
)

Wrapper function to compute MD5 message digest.

Parameters
[out]digestComputed MD5 digest
[in]bufMessage to be computed
[in]lenLength of the message
Returns
0 when MD5 hash function called successfully 1 when MD5 hash function doesn't called because of fips mode (ON/STRICT)