MySQL  8.0.26
Source Code Documentation
my_md5.h File Reference

Wrapper function for MD5 implementation. More...

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

Go to the source code of this file.

Functions

int compute_md5_hash (char *digest, const char *buf, int 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,
int  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)