soup-md5-utils 3 LIBSOUP Library
soup-md5-utils

## Synopsis

    struct      SoupMD5Context;
    void        soup_md5_init                   (SoupMD5Context *ctx);
    void        soup_md5_update                 (SoupMD5Context *ctx,
                                                 const guchar *buf,
                                                 guint32 len);
    void        soup_md5_final                  (SoupMD5Context *ctx,
                                                 guchar digest[16]);

## Description

## Details

### struct SoupMD5Context

    struct SoupMD5Context {

    	guint32  buf[4];
    	guint32  bits[2];
    	guchar   in[64];
    	gboolean doByteReverse;
    };

SoupMD5Context

### soup_md5_init ()

    void        soup_md5_init                   (SoupMD5Context *ctx);

Initialise an md5 buffer.

ctx :

  md5 context

soup_md5_init

### soup_md5_update ()

    void        soup_md5_update                 (SoupMD5Context *ctx,
                                                 const guchar *buf,
                                                 guint32 len);

Update context to reflect the concatenation of another buffer full of bytes. Use this to progressively construct an md5 hash.

ctx :

  conetxt object used for md5 computaion

buf :

  buffer to add

len :

  buffer length

soup_md5_update

### soup_md5_final ()

    void        soup_md5_final                  (SoupMD5Context *ctx,
                                                 guchar digest[16]);

copy the final md5 hash to a bufer

ctx :

  context containing the calculated md5

digest :

  16 bytes buffer

soup_md5_final