index.html
Main Page
|
modules.html
Modules
|
namespaces.html
Namespace List
|
hierarchy.html
Class Hierarchy
|
annotated.html
Data Structures
|
dirs.html
Directories
|
files.html
File List
|
namespacemembers.html
Namespace Members
|
functions.html
Data Fields
|
pages.html
Related Pages
SHA implementation
[
group__DBusInternals.html
D-BUS internal implementation details
]
SHA-1 hash.
#_details
More...
Functions
void
group__DBusSHA.html#ga0
_dbus_sha_init
(
structDBusSHAContext.html
DBusSHAContext
*context)
Initializes the SHA context.
#ga0
void
group__DBusSHA.html#ga1
_dbus_sha_update
(
structDBusSHAContext.html
DBusSHAContext
*context, const
structDBusString.html
DBusString
*data)
Feeds more data into an existing shasum computation.
#ga1
group__DBusTypes.html#ga2
dbus_bool_t
group__DBusSHA.html#ga2
_dbus_sha_final
(
structDBusSHAContext.html
DBusSHAContext
*context,
structDBusString.html
DBusString
*results)
SHA finalization.
#ga2
group__DBusTypes.html#ga2
dbus_bool_t
group__DBusSHA.html#ga3
_dbus_sha_compute
(const
structDBusString.html
DBusString
*data,
structDBusString.html
DBusString
*ascii_output)
Computes the ASCII hex-encoded shasum of the given data and appends it to the output string.
#ga3
Detailed Description
SHA-1 hash.
Types and functions related to computing SHA-1 hash.
Function Documentation
group__DBusTypes.html#ga2
dbus_bool_t
_dbus_sha_compute
(
const
structDBusString.html
DBusString
*
data
,
structDBusString.html
DBusString
*
ascii_output
)
Computes the ASCII hex-encoded shasum of the given data and appends it to the output string.
Parameters:
data
input data to be hashed
ascii_output
string to append ASCII shasum to
Returns:
group__DBusMacros.html#ga3
FALSE
if not enough memory
Definition at line
dbus-sha_8c-source.html#l00482
482
of file
dbus-sha_8c-source.html
dbus-sha.c
.
References
dbus-sha_8c-source.html#l00455
_dbus_sha_final()
,
dbus-sha_8c-source.html#l00419
_dbus_sha_init()
,
dbus-sha_8c-source.html#l00431
_dbus_sha_update()
,
dbus-string_8c-source.html#l00261
_dbus_string_free()
,
dbus-string_8c-source.html#l02306
_dbus_string_hex_encode()
,
dbus-string_8c-source.html#l00174
_dbus_string_init()
,
group__DBusMacros.html#ga3
FALSE
, and
group__DBusMacros.html#ga2
TRUE
.
group__DBusTypes.html#ga2
dbus_bool_t
_dbus_sha_final
(
structDBusSHAContext.html
DBusSHAContext
*
context
,
structDBusString.html
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.
Parameters:
context
the SHA context
results
string to append the 20-byte SHA digest to
Returns:
group__DBusMacros.html#ga3
FALSE
if not enough memory to append the digest
Definition at line
dbus-sha_8c-source.html#l00455
455
of file
dbus-sha_8c-source.html
dbus-sha.c
.
References
dbus-string_8c-source.html#l01253
_dbus_string_append_len()
,
group__DBusMacros.html#ga3
FALSE
, and
group__DBusMacros.html#ga2
TRUE
.
Referenced by
dbus-sha_8c-source.html#l00482
_dbus_sha_compute()
.
void _dbus_sha_init
(
structDBusSHAContext.html
DBusSHAContext
*
context
)
Initializes the SHA context.
Parameters:
context
an uninitialized context, typically on the stack.
Definition at line
dbus-sha_8c-source.html#l00419
419
of file
dbus-sha_8c-source.html
dbus-sha.c
.
Referenced by
dbus-sha_8c-source.html#l00482
_dbus_sha_compute()
.
void _dbus_sha_update
(
structDBusSHAContext.html
DBusSHAContext
*
context
,
const
structDBusString.html
DBusString
*
data
)
Feeds more data into an existing shasum computation.
Parameters:
context
the SHA context
data
the additional data to hash
Definition at line
dbus-sha_8c-source.html#l00431
431
of file
dbus-sha_8c-source.html
dbus-sha.c
.
Referenced by
dbus-sha_8c-source.html#l00482
_dbus_sha_compute()
.
Generated on Tue Sep 13 01:28:09 2005 for D-BUS by
http://www.doxygen.org/index.html
doxygen
1.4.4
