/usr/include/gnet-2.0/md5.h is in libgnet-dev 2.0.8-2.2ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | /**
This code is in the public domain. See md5.c for details.
Authors:
Colin Plumb [original author]
David Helder [GNet API]
*/
#ifndef _GNET_MD5_H
#define _GNET_MD5_H
#include <glib.h>
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
/**
* GMD5
*
* GMD5 is a MD5 hash.
*
**/
typedef struct _GMD5 GMD5;
/**
* GNET_MD5_HASH_LENGTH
*
* Length of the MD5 hash in bytes.
**/
#define GNET_MD5_HASH_LENGTH 16
GMD5* gnet_md5_new (const gchar* buffer, guint length);
GMD5* gnet_md5_new_string (const gchar* str);
GMD5* gnet_md5_clone (const GMD5* md5);
void gnet_md5_delete (GMD5* md5);
GMD5* gnet_md5_new_incremental (void);
void gnet_md5_update (GMD5* md5, const gchar* buffer, guint length);
void gnet_md5_final (GMD5* md5);
gboolean gnet_md5_equal (gconstpointer p1, gconstpointer p2);
guint gnet_md5_hash (gconstpointer p);
gchar* gnet_md5_get_digest (const GMD5* md5);
gchar* gnet_md5_get_string (const GMD5* md5);
void gnet_md5_copy_string (const GMD5* md5, gchar* buffer);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* _GNET_MD5_H */
|