gwymd5 — Compute MD5 digest
void | gwy_md5_get_digest () |
#include <libgwyddion/gwyddion.h>
MD5 (RFC1321) is a reasonably fast digest function. It can be used for hash key creation and fast data indexing, but should be no longer used for cryptographic and security purposes.
void gwy_md5_get_digest (const gchar *buffer
,gint buffer_size
,guchar digest[16]
);
gwy_md5_get_digest
is deprecated and should not be used in newly-written code.
Compute the MD5 hash of a buffer.
The MD5 algorithm takes as input a message of arbitrary length and produces as output a 128-bit "fingerprint" or "message digest" of the input. For more information see RFC 1321.
This function is trivially replaced by GChecksum with G_CHECKSUM_MD5
. It is in fact currently a simple GChecksum
wrapper.
buffer |
A byte buffer. |
|
buffer_size |
Size of |
|
digest |
16 bytes to store the hash code to. |