MySQL 9.1.0
Source Code Documentation
my_md5.cc File Reference

Wrapper functions for OpenSSL. More...

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

Functions

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

◆ my_md5_hash()

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