Main Page   Modules   Data Structures   File List   Data Fields   Related Pages  

MD5 implementation
[D-BUS internal implementation details]

MD5 hash. More...

Functions

void _dbus_md5_init (DBusMD5Context *context)
 Initializes the MD5 context. More...

void _dbus_md5_update (DBusMD5Context *context, const DBusString *data)
 Feeds more data into an existing md5sum computation. More...

dbus_bool_t _dbus_md5_final (DBusMD5Context *context, DBusString *results)
 MD5 finalization. More...

dbus_bool_t _dbus_md5_compute (const DBusString *data, DBusString *ascii_output)
 Computes the ASCII hex-encoded md5sum of the given data and appends it to the output string. More...


Detailed Description

MD5 hash.

Types and functions related to computing MD5 sums.


Function Documentation

dbus_bool_t _dbus_md5_compute const DBusString   data,
DBusString   ascii_output
 

Computes the ASCII hex-encoded md5sum of the given data and appends it to the output string.

Parameters:
data  input data to be hashed
ascii_output  string to append ASCII md5sum to
Returns:
FALSE if not enough memory

Definition at line 468 of file dbus-md5.c.

dbus_bool_t _dbus_md5_final DBusMD5Context   context,
DBusString   results
 

MD5 finalization.

Ends an MD5 message-digest operation, writing the the message digest and zeroing the context. The results are returned as a raw 16-byte digest, not as the ascii-hex-digits string form of the digest.

Parameters:
context  the MD5 context
results  string to append the 16-byte MD5 digest to
Returns:
FALSE if not enough memory to append the digest

Definition at line 441 of file dbus-md5.c.

void _dbus_md5_init DBusMD5Context   context
 

Initializes the MD5 context.

Parameters:
context  an uninitialized context, typically on the stack.

Definition at line 404 of file dbus-md5.c.

void _dbus_md5_update DBusMD5Context   context,
const DBusString   data
 

Feeds more data into an existing md5sum computation.

Parameters:
context  the MD5 context
data  the additional data to hash

Definition at line 417 of file dbus-md5.c.


Generated on Wed Jun 9 05:01:28 2004 for D-BUS by doxygen1.2.15