MD5 Utility Functions

MD5 Utility Functions — Functions for manipulating MD5 checksums.

Synopsis

                    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]);

Description

Details

MD5Context

typedef struct {
} MD5Context;

Warning

MD5Context is deprecated and should not be used in newly-written code.

A buffer structure used for md5 calculation.


md5_get_digest ()

void                md5_get_digest                      (const gchar *buffer,
                                                         gint buffer_size,
                                                         guchar digest[16]);

Warning

md5_get_digest is deprecated and should not be used in newly-written code.

buffer :

buffer_size :

digest :


md5_get_digest_from_file ()

void                md5_get_digest_from_file            (const gchar *filename,
                                                         guchar digest[16]);

Warning

md5_get_digest_from_file is deprecated and should not be used in newly-written code.

filename :

digest :


md5_init ()

void                md5_init                            (MD5Context *ctx);

Warning

md5_init is deprecated and should not be used in newly-written code.

ctx :


md5_update ()

void                md5_update                          (MD5Context *ctx,
                                                         const guchar *buf,
                                                         guint32 len);

Warning

md5_update is deprecated and should not be used in newly-written code.

ctx :

buf :

len :


md5_final ()

void                md5_final                           (MD5Context *ctx,
                                                         guchar digest[16]);

Warning

md5_final is deprecated and should not be used in newly-written code.

ctx :

digest :