MD5 implementation
[D-Bus secret internal implementation details]

MD5 hash. More...

Functions

void _dbus_md5_init (DBusMD5Context *context)
 Initializes the MD5 context.
void _dbus_md5_update (DBusMD5Context *context, const DBusString *data)
 Feeds more data into an existing md5sum computation.
dbus_bool_t _dbus_md5_final (DBusMD5Context *context, DBusString *results)
 MD5 finalization.
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.

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.

References _dbus_md5_final(), _dbus_md5_init(), _dbus_md5_update(), _dbus_string_free(), _dbus_string_hex_encode(), _dbus_string_init(), FALSE, and TRUE.

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.

References _dbus_string_append_len(), FALSE, and TRUE.

Referenced by _dbus_md5_compute().

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.

Referenced by _dbus_md5_compute().

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.

Referenced by _dbus_md5_compute().


Generated on Thu Apr 23 07:31:14 2009 for D-Bus by  doxygen 1.5.5