| libsoup Reference Manual |
|---|
soup-md5-utils —
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]);
struct SoupMD5Context {
guint32 buf[4];
guint32 bits[2];
guchar in[64];
gboolean doByteReverse;
};
void soup_md5_init (SoupMD5Context *ctx);
Initialise an md5 buffer.
| ctx : | md5 context |
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 |
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-headers | soup-message-private >> |