|  |  |  | Evolution-Data-Server Manual: Utilities (libedataserver) |  | 
|---|---|---|---|---|
| Top | Description | ||||
                    MD5Context;
void                md5_get_digest                      (const gchar *buffer,
                                                         gint buffer_size,
                                                         guchar digest[16]);
void                md5_get_digest_from_file            (const gchar *filename,
                                                         guchar digest[16]);
void                md5_init                            (MD5Context *ctx);
void                md5_update                          (MD5Context *ctx,
                                                         const guchar *buf,
                                                         guint32 len);
void                md5_final                           (MD5Context *ctx,
                                                         guchar digest[16]);
typedef struct {
} MD5Context;
MD5Context is deprecated and should not be used in newly-written code.
A buffer structure used for md5 calculation.
void md5_get_digest (const gchar *buffer, gint buffer_size, guchar digest[16]);
md5_get_digest is deprecated and should not be used in newly-written code.
Get the md5 hash of a buffer. The result is put in
the 16 bytes buffer digest .
| 
 | byte buffer | 
| 
 | buffer size (in bytes) | 
| 
 | 16 bytes buffer receiving the hash code. | 
void md5_get_digest_from_file (const gchar *filename, guchar digest[16]);
md5_get_digest_from_file is deprecated and should not be used in newly-written code.
Get the md5 hash of a file. The result is put in
the 16 bytes buffer digest .
| 
 | file name | 
| 
 | 16 bytes buffer receiving the hash code. | 
void md5_init (MD5Context *ctx);
md5_init is deprecated and should not be used in newly-written code.
Initialise an md5 buffer.
| 
 | md5 context | 
void md5_update (MD5Context *ctx, const guchar *buf, guint32 len);
md5_update is deprecated and should not be used in newly-written code.
Update context to reflect the concatenation of another buffer full of bytes. Use this to progressively construct an md5 hash.
| 
 | context object used for md5 computaion | 
| 
 | buffer to add | 
| 
 | buffer length | 
void md5_final (MD5Context *ctx, guchar digest[16]);
md5_final is deprecated and should not be used in newly-written code.
copy the final md5 hash to a bufer
| 
 | context containing the calculated md5 | 
| 
 | 16 bytes buffer |