#include <glib.h>
Go to the source code of this file.
Data Structures | |
struct | SHA1Context |
This structure will hold context information for the SHA-1 hashing operation. More... | |
Defines | |
#define | SHA1HashSize 20 |
Typedefs | |
typedef SHA1Context | SHA1Context |
This structure will hold context information for the SHA-1 hashing operation. | |
Enumerations | |
enum | { shaSuccess = 0, shaNull, shaInputTooLong, shaStateError } |
Functions | |
int | SHA1Reset (SHA1Context *) |
SHA1Reset. | |
int | SHA1Input (SHA1Context *, const guint8 *, unsigned int) |
SHA1Input. | |
int | SHA1Result (SHA1Context *, guint8 Message_Digest[SHA1HashSize]) |
SHA1Result. |
|
|
|
This structure will hold context information for the SHA-1 hashing operation.
|
|
|
|
SHA1Input. Description: This function accepts an array of octets as the next portion of the message. Parameters: context: [in/out] The SHA context to update message_array: [in] An array of characters representing the next portion of the message. length: [in] The length of the message in message_array Returns: sha Error Code. |
|
SHA1Reset. Description: This function will initialize the SHA1Context in preparation for computing a new SHA1 message digest. Parameters: context: [in/out] The context to reset. Returns: sha Error Code. |
|
SHA1Result. Description: This function will return the 160-bit message digest into the Message_Digest array provided by the caller. NOTE: The first octet of hash is stored in the 0th element, the last octet of hash in the 19th element. Parameters: context: [in/out] The context to use to calculate the SHA-1 hash. Message_Digest: [out] Where the digest is returned. Returns: sha Error Code. |