1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
<html xmlns:cf="http://docbook.sourceforge.net/xmlns/chunkfast/1.0">
4
3
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
5
4
<title>MD5 Utility Functions</title>
6
<meta name="generator" content="DocBook XSL Stylesheets V1.69.0">
5
<meta name="generator" content="DocBook XSL Stylesheets V1.69.1">
7
6
<link rel="start" href="index.html" title="Evolution API Reference: libedataserver, utility library">
8
7
<link rel="up" href="ch01.html" title="Evolution API Reference: libedataserver, utility library">
9
8
<link rel="prev" href="libedataserver-e-xml-hash-utils.html" title="EXMLHash">
12
11
<link rel="chapter" href="ch01.html" title="Evolution API Reference: libedataserver, utility library">
14
13
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
14
<table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
17
15
<td><a accesskey="p" href="libedataserver-e-xml-hash-utils.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18
16
<td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
19
17
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
20
18
<th width="100%" align="center">Evolution API Reference: libedataserver, utility library</th>
23
<tr><td colspan="5" class="shortcuts"><nobr><a href="#top_of_page" class="shortcut">Top</a>
25
<a href="#desc" class="shortcut">Description</a></nobr></td></tr>
27
20
<div class="refentry" lang="en">
28
21
<a name="libedataserver-md5-utils"></a><div class="titlepage"></div>
29
22
<div class="refnamediv"><table width="100%"><tr>
31
<h2><span class="refentrytitle"><a name="top_of_page"></a>MD5 Utility Functions</span></h2>
24
<h2><span class="refentrytitle">MD5 Utility Functions</span></h2>
32
25
<p>MD5 Utility Functions — Functions for manipulating MD5 checksums.</p>
34
27
<td valign="top" align="right"></td>
35
28
</tr></table></div>
36
29
<div class="refsynopsisdiv">
37
<a name="synopsis"></a><h2>Synopsis</h2>
38
31
<pre class="synopsis">
42
35
<a href="libedataserver-md5-utils.html#MD5Context">MD5Context</a>;
43
36
void <a href="libedataserver-md5-utils.html#md5-get-digest">md5_get_digest</a> (const <a
44
href="../glib/glib-Basic-Types.html#gchar"
37
href="/opt/gnome/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
45
38
>gchar</a> *buffer,
47
href="../glib/glib-Basic-Types.html#gint"
40
href="/opt/gnome/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
48
41
>gint</a> buffer_size,
50
href="../glib/glib-Basic-Types.html#guchar"
43
href="/opt/gnome/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
51
44
>guchar</a> digest[16]);
52
45
void <a href="libedataserver-md5-utils.html#md5-get-digest-from-file">md5_get_digest_from_file</a> (const <a
53
href="../glib/glib-Basic-Types.html#gchar"
46
href="/opt/gnome/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
54
47
>gchar</a> *filename,
56
href="../glib/glib-Basic-Types.html#guchar"
49
href="/opt/gnome/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
57
50
>guchar</a> digest[16]);
58
51
void <a href="libedataserver-md5-utils.html#md5-init">md5_init</a> (<a href="libedataserver-md5-utils.html#MD5Context">MD5Context</a> *ctx);
59
52
void <a href="libedataserver-md5-utils.html#md5-update">md5_update</a> (<a href="libedataserver-md5-utils.html#MD5Context">MD5Context</a> *ctx,
61
href="../glib/glib-Basic-Types.html#guchar"
54
href="/opt/gnome/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
64
href="../glib/glib-Basic-Types.html#guint32"
57
href="/opt/gnome/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
66
59
void <a href="libedataserver-md5-utils.html#md5-final">md5_final</a> (<a href="libedataserver-md5-utils.html#MD5Context">MD5Context</a> *ctx,
68
href="../glib/glib-Basic-Types.html#guchar"
61
href="/opt/gnome/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
69
62
>guchar</a> digest[16]);
72
65
<div class="refsect1" lang="en">
73
<a name="desc"></a><h2>Description</h2>
66
<a name="id2593991"></a><h2>Description</h2>
78
71
<div class="refsect1" lang="en">
79
<a name="details"></a><h2>Details</h2>
72
<a name="id2594002"></a><h2>Details</h2>
80
73
<div class="refsect2" lang="en">
81
<a name="id2599855"></a><h3>
74
<a name="id2594008"></a><h3>
82
75
<a name="MD5Context"></a>MD5Context</h3>
83
<a class="indexterm" name="id2599867"></a><pre class="programlisting">typedef struct {
76
<a class="indexterm" name="id2594018"></a><pre class="programlisting">typedef struct {
93
86
<div class="refsect2" lang="en">
94
<a name="id2596264"></a><h3>
87
<a name="id2594038"></a><h3>
95
88
<a name="md5-get-digest"></a>md5_get_digest ()</h3>
96
<a class="indexterm" name="id2596276"></a><pre class="programlisting">void md5_get_digest (const <a
97
href="../glib/glib-Basic-Types.html#gchar"
89
<a class="indexterm" name="id2594048"></a><pre class="programlisting">void md5_get_digest (const <a
90
href="/opt/gnome/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
98
91
>gchar</a> *buffer,
100
href="../glib/glib-Basic-Types.html#gint"
93
href="/opt/gnome/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"
101
94
>gint</a> buffer_size,
103
href="../glib/glib-Basic-Types.html#guchar"
96
href="/opt/gnome/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
104
97
>guchar</a> digest[16]);</pre>
106
99
Get the md5 hash of a buffer. The result is put in
136
129
<div class="refsect2" lang="en">
137
<a name="id2596375"></a><h3>
130
<a name="id2598748"></a><h3>
138
131
<a name="md5-get-digest-from-file"></a>md5_get_digest_from_file ()</h3>
139
<a class="indexterm" name="id2596386"></a><pre class="programlisting">void md5_get_digest_from_file (const <a
140
href="../glib/glib-Basic-Types.html#gchar"
132
<a class="indexterm" name="id2598757"></a><pre class="programlisting">void md5_get_digest_from_file (const <a
133
href="/opt/gnome/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"
141
134
>gchar</a> *filename,
143
href="../glib/glib-Basic-Types.html#guchar"
136
href="/opt/gnome/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
144
137
>guchar</a> digest[16]);</pre>
146
139
Get the md5 hash of a file. The result is put in
190
183
<div class="refsect2" lang="en">
191
<a name="id2601922"></a><h3>
184
<a name="id2598893"></a><h3>
192
185
<a name="md5-update"></a>md5_update ()</h3>
193
<a class="indexterm" name="id2601934"></a><pre class="programlisting">void md5_update (<a href="libedataserver-md5-utils.html#MD5Context">MD5Context</a> *ctx,
186
<a class="indexterm" name="id2598902"></a><pre class="programlisting">void md5_update (<a href="libedataserver-md5-utils.html#MD5Context">MD5Context</a> *ctx,
195
href="../glib/glib-Basic-Types.html#guchar"
188
href="/opt/gnome/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
196
189
>guchar</a> *buf,
198
href="../glib/glib-Basic-Types.html#guint32"
191
href="/opt/gnome/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"
199
192
>guint32</a> len);</pre>
201
194
Update context to reflect the concatenation of another buffer full
231
224
<div class="refsect2" lang="en">
232
<a name="id2602028"></a><h3>
225
<a name="id2596212"></a><h3>
233
226
<a name="md5-final"></a>md5_final ()</h3>
234
<a class="indexterm" name="id2602040"></a><pre class="programlisting">void md5_final (<a href="libedataserver-md5-utils.html#MD5Context">MD5Context</a> *ctx,
227
<a class="indexterm" name="id2596222"></a><pre class="programlisting">void md5_final (<a href="libedataserver-md5-utils.html#MD5Context">MD5Context</a> *ctx,
236
href="../glib/glib-Basic-Types.html#guchar"
229
href="/opt/gnome/share/gtk-doc/html/glib/glib-Basic-Types.html#guchar"
237
230
>guchar</a> digest[16]);</pre>
239
232
copy the final md5 hash to a bufer</p>