<refentry id="GMimeFilterMd5">
<refmeta>
<refentrytitle role="top_of_page" id="GMimeFilterMd5.top_of_page">GMimeFilterMd5</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>
  GMIME Library
</refmiscinfo>
</refmeta>
<refnamediv>
<refname>GMimeFilterMd5</refname>
<refpurpose>Calculate an md5sum</refpurpose>
</refnamediv>

<refsynopsisdiv id="GMimeFilterMd5.synopsis" role="synopsis">
<title role="synopsis.title">Synopsis</title>

<synopsis>                    <link linkend="GMimeFilterMd5-struct">GMimeFilterMd5</link>;
<link linkend="GMimeFilter"><returnvalue>GMimeFilter</returnvalue></link> *       <link linkend="g-mime-filter-md5-new">g_mime_filter_md5_new</link>               (<parameter><type>void</type></parameter>);
<link linkend="void"><returnvalue>void</returnvalue></link>                <link linkend="g-mime-filter-md5-get-digest">g_mime_filter_md5_get_digest</link>        (<parameter><link linkend="GMimeFilterMd5"><type>GMimeFilterMd5</type></link> *md5</parameter>,
                                                         <parameter>unsigned <link linkend="char"><type>char</type></link> digest[16]</parameter>);
</synopsis>
</refsynopsisdiv>
<refsect1 id="GMimeFilterMd5.object-hierarchy" role="object_hierarchy">
<title role="object_hierarchy.title">Object Hierarchy</title>
<synopsis>
  <link linkend="GObject">GObject</link>
   +----<link linkend="GMimeFilter">GMimeFilter</link>
         +----GMimeFilterMd5
</synopsis>
</refsect1>

<refsect1 id="GMimeFilterMd5.description" role="desc">
<title role="desc.title">Description</title>
<para>
Calculate an md5sum for a stream.
</para>
</refsect1>
<refsect1 id="GMimeFilterMd5.details" role="details">
<title role="details.title">Details</title>
<refsect2 id="GMimeFilterMd5-struct" role="struct">
<title>GMimeFilterMd5</title>
<indexterm zone="GMimeFilterMd5-struct"><primary>GMimeFilterMd5</primary></indexterm>
<programlisting>typedef struct _GMimeFilterMd5 GMimeFilterMd5;</programlisting>
<para>
A filter for calculating the MD5 checksum of a stream.
</para><variablelist role="struct">
</variablelist></refsect2>
<refsect2 id="g-mime-filter-md5-new" role="function">
<title>g_mime_filter_md5_new ()</title>
<indexterm zone="g-mime-filter-md5-new"><primary>g_mime_filter_md5_new</primary></indexterm>
<programlisting><link linkend="GMimeFilter"><returnvalue>GMimeFilter</returnvalue></link> *       g_mime_filter_md5_new               (<parameter><type>void</type></parameter>);</programlisting>
<para>
Creates a new Md5 filter.
</para><variablelist role="params">
<varlistentry><term><emphasis>Returns</emphasis>&#160;:</term><listitem><simpara> a new Md5 filter.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2 id="g-mime-filter-md5-get-digest" role="function">
<title>g_mime_filter_md5_get_digest ()</title>
<indexterm zone="g-mime-filter-md5-get-digest"><primary>g_mime_filter_md5_get_digest</primary></indexterm>
<programlisting><link linkend="void"><returnvalue>void</returnvalue></link>                g_mime_filter_md5_get_digest        (<parameter><link linkend="GMimeFilterMd5"><type>GMimeFilterMd5</type></link> *md5</parameter>,
                                                         <parameter>unsigned <link linkend="char"><type>char</type></link> digest[16]</parameter>);</programlisting>
<para>
Outputs the md5 digest into <parameter>digest</parameter>.
</para><variablelist role="params">
<varlistentry><term><parameter>md5</parameter>&#160;:</term>
<listitem><simpara>md5 filter object
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>digest</parameter>&#160;:</term>
<listitem><simpara>output buffer of at least 16 bytes
</simpara></listitem></varlistentry>
</variablelist></refsect2>

</refsect1>
<refsect1 id="GMimeFilterMd5.see-also">
<title>See Also</title>
<link linkend="GMimeFilter"><type>GMimeFilter</type></link>
</refsect1>

</refentry>
