| D-Bus
    1.10.22
    | 
SHA-1 hash. More...
| Functions | |
| void | _dbus_sha_init (DBusSHAContext *context) | 
| Initializes the SHA context.  More... | |
| void | _dbus_sha_update (DBusSHAContext *context, const DBusString *data) | 
| Feeds more data into an existing shasum computation.  More... | |
| dbus_bool_t | _dbus_sha_final (DBusSHAContext *context, DBusString *results) | 
| SHA finalization.  More... | |
| 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.  More... | |
SHA-1 hash.
Types and functions related to computing SHA-1 hash.
| 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.
| data | input data to be hashed | 
| ascii_output | string to append ASCII shasum to | 
Definition at line 483 of file dbus-sha.c.
References _dbus_assert_not_reached, _dbus_concat_dir_and_file(), _dbus_file_get_contents(), _dbus_sha_compute(), _dbus_sha_final(), _dbus_sha_init(), _dbus_sha_update(), _dbus_string_append(), _dbus_string_append_byte(), _dbus_string_delete(), _dbus_string_equal(), _dbus_string_find(), _dbus_string_free(), _dbus_string_hex_encode(), _dbus_string_init(), _dbus_string_init_const(), _dbus_string_init_const_len(), _dbus_string_move(), _dbus_string_parse_int(), _dbus_string_pop_line(), _dbus_string_set_length(), _dbus_string_skip_blank(), _dbus_string_starts_with_c_str(), _dbus_warn(), dbus_error_free(), DBUS_ERROR_INIT, FALSE, DBusError::message, NULL, and TRUE.
Referenced by _dbus_read_local_machine_uuid(), and _dbus_sha_compute().
| dbus_bool_t _dbus_sha_final | ( | DBusSHAContext * | context, | 
| DBusString * | results | ||
| ) | 
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.
| context | the SHA context | 
| results | string to append the 20-byte SHA digest to | 
Definition at line 456 of file dbus-sha.c.
Referenced by _dbus_sha_compute().
| void _dbus_sha_init | ( | DBusSHAContext * | context | ) | 
Initializes the SHA context.
| context | an uninitialized context, typically on the stack. | 
Definition at line 420 of file dbus-sha.c.
Referenced by _dbus_sha_compute().
| void _dbus_sha_update | ( | DBusSHAContext * | context, | 
| const DBusString * | data | ||
| ) | 
Feeds more data into an existing shasum computation.
| context | the SHA context | 
| data | the additional data to hash | 
Definition at line 432 of file dbus-sha.c.
Referenced by _dbus_sha_compute().
 1.8.13
 1.8.13