Gammu internals  1.38.0
md5.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void CalculateMD5 (unsigned char *buffer, int length, char *checksum)
 

Function Documentation

§ CalculateMD5()

void CalculateMD5 ( unsigned char *  buffer,
int  length,
char *  checksum 
)

Wrapper for glib checksum functionality.

Definition at line 8 of file md5-glib.c.

References MD5Final(), MD5Init(), and MD5Update().

9 {
10  gchar *ret;
11  ret = g_compute_checksum_for_data(G_CHECKSUM_MD5, buffer, length);
12  strcpy(checksum, ret);
13  g_free(ret);
14 }