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. | |
Types and functions related to computing MD5 sums.
| 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.
| data | input data to be hashed | |
| ascii_output | string to append ASCII md5sum to |
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.
| context | the MD5 context | |
| results | string to append the 16-byte MD5 digest to |
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.
| 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.
| context | the MD5 context | |
| data | the additional data to hash |
Definition at line 417 of file dbus-md5.c.
Referenced by _dbus_md5_compute().
1.5.5