MySQL 8.0.30
Source Code Documentation
my_md5.cc File Reference

Wrapper functions for OpenSSL. More...

#include "my_md5.h"
#include <openssl/crypto.h>
#include <openssl/md5.h>

Functions

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

Detailed Description

Wrapper functions for OpenSSL.

Function Documentation

◆ 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)

◆ my_md5_hash()

static void my_md5_hash ( unsigned char *  digest,
unsigned const char *  buf,
int  len 
)
static