Functions | |
void | _dbus_sha_init (DBusSHAContext *context) |
Initializes the SHA context. | |
void | _dbus_sha_update (DBusSHAContext *context, const DBusString *data) |
Feeds more data into an existing shasum computation. | |
dbus_bool_t | _dbus_sha_final (DBusSHAContext *context, DBusString *results) |
SHA finalization. | |
dbus_bool_t | _dbus_sha_compute (const DBusString *data, DBusString *ascii_output) |
Computes the ASCII hex-encoded shasum of the given data and appends it to the output string. |
Types and functions related to computing SHA-1 hash.
|
Computes the ASCII hex-encoded shasum of the given data and appends it to the output string.
Definition at line 482 of file dbus-sha.c. References _dbus_sha_final(), _dbus_sha_init(), _dbus_sha_update(), _dbus_string_free(), _dbus_string_get_length(), _dbus_string_hex_encode(), and _dbus_string_init(). |
|
SHA finalization. Ends an SHA message-digest operation, writing the the message digest and zeroing the context. The results are returned as a raw 20-byte digest, not as the ascii-hex-digits string form of the digest.
Definition at line 455 of file dbus-sha.c. References _dbus_string_append_len(). Referenced by _dbus_sha_compute(). |
|
Initializes the SHA context.
Definition at line 419 of file dbus-sha.c. Referenced by _dbus_sha_compute(). |
|
Feeds more data into an existing shasum computation.
Definition at line 431 of file dbus-sha.c. References _dbus_string_get_const_data(), and _dbus_string_get_length(). Referenced by _dbus_sha_compute(). |