<refentry id="liblivejournal-md5">
<refmeta>
<refentrytitle>md5</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>LIBLIVEJOURNAL Library</refmiscinfo>
</refmeta>

<refnamediv>
<refname>md5</refname><refpurpose></refpurpose>
</refnamediv>

<refsynopsisdiv><title>Synopsis</title>

<synopsis>



typedef     <link linkend="lj-uint32">lj_uint32</link>;
void        <link linkend="lj-md5-init">lj_md5_init</link>                     (struct <link linkend="lj-md5-context">lj_md5_context</link> *context);
void        <link linkend="lj-md5-update">lj_md5_update</link>                   (struct <link linkend="lj-md5-context">lj_md5_context</link> *context,
                                             unsigned char const *buf,
                                             unsigned <link linkend="len">len</link>);
void        <link linkend="lj-md5-final">lj_md5_final</link>                    (unsigned char digest[16],
                                             struct <link linkend="lj-md5-context">lj_md5_context</link> *context);
void        <link linkend="lj-md5-transform">lj_md5_transform</link>                (<link linkend="lj-uint32">lj_uint32</link> buf[4],
                                             unsigned char in[64]);
void        <link linkend="lj-md5-hash">lj_md5_hash</link>                     (const char *src,
                                             char *dest);
</synopsis>
</refsynopsisdiv>







<refsect1>
<title>Description</title>
<para>

</para>
</refsect1>

<refsect1>
<title>Details</title>
<refsect2>
<title><anchor id="lj-uint32">lj_uint32</title>
<programlisting>typedef unsigned long lj_uint32;
</programlisting>
<para>

</para></refsect2>
<refsect2>
<title><anchor id="lj-md5-init">lj_md5_init ()</title>
<programlisting>void        lj_md5_init                     (struct <link linkend="lj-md5-context">lj_md5_context</link> *context);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>context</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="lj-md5-update">lj_md5_update ()</title>
<programlisting>void        lj_md5_update                   (struct <link linkend="lj-md5-context">lj_md5_context</link> *context,
                                             unsigned char const *buf,
                                             unsigned <link linkend="len">len</link>);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>context</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>buf</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>Param3</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="lj-md5-final">lj_md5_final ()</title>
<programlisting>void        lj_md5_final                    (unsigned char digest[16],
                                             struct <link linkend="lj-md5-context">lj_md5_context</link> *context);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>digest</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>context</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="lj-md5-transform">lj_md5_transform ()</title>
<programlisting>void        lj_md5_transform                (<link linkend="lj-uint32">lj_uint32</link> buf[4],
                                             unsigned char in[64]);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>buf</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>in</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="lj-md5-hash">lj_md5_hash ()</title>
<programlisting>void        lj_md5_hash                     (const char *src,
                                             char *dest);</programlisting>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>src</parameter>&nbsp;:</term>
<listitem><simpara>
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>dest</parameter>&nbsp;:</term>
<listitem><simpara>


</simpara></listitem></varlistentry>
</variablelist></refsect2>

</refsect1>




</refentry>
