ELinks 0.18.0
|
Data Structures | |
struct | sha1_context |
Macros | |
#define | CONFIG_SHA1 1 |
#define | SHA_DIGEST_LENGTH 20 |
#define | SHA_HEX_DIGEST_LENGTH (SHA_DIGEST_LENGTH * 2) |
#define | SHA1_Init(context) init_sha1(context) |
#define | SHA1_Update(context, data, len) update_sha1(context, data, len) |
#define | SHA1_Final(sha1, context) done_sha1(context, sha1) |
#define | SHA1(data, len, sha1) digest_sha1(data, len, sha1) |
Typedefs | |
typedef unsigned char | sha1_digest_bin_T[SHA_DIGEST_LENGTH] |
typedef unsigned char | sha1_digest_hex_T[SHA_HEX_DIGEST_LENGTH] |
typedef struct sha1_context | SHA_CTX |
Functions | |
void | init_sha1 (struct sha1_context *context) |
void | update_sha1 (struct sha1_context *context, const unsigned char *data, unsigned long length) |
void | done_sha1 (struct sha1_context *context, sha1_digest_bin_T digest) |
unsigned char * | digest_sha1 (const unsigned char *data, unsigned long length, sha1_digest_bin_T digest) |
#define CONFIG_SHA1 1 |
#define SHA1 | ( | data, | |
len, | |||
sha1 ) digest_sha1(data, len, sha1) |
#define SHA1_Final | ( | sha1, | |
context ) done_sha1(context, sha1) |
#define SHA1_Init | ( | context | ) | init_sha1(context) |
#define SHA1_Update | ( | context, | |
data, | |||
len ) update_sha1(context, data, len) |
#define SHA_DIGEST_LENGTH 20 |
#define SHA_HEX_DIGEST_LENGTH (SHA_DIGEST_LENGTH * 2) |
typedef unsigned char sha1_digest_bin_T[SHA_DIGEST_LENGTH] |
typedef unsigned char sha1_digest_hex_T[SHA_HEX_DIGEST_LENGTH] |
typedef struct sha1_context SHA_CTX |
unsigned char * digest_sha1 | ( | const unsigned char * | data, |
unsigned long | length, | ||
sha1_digest_bin_T | digest ) |
void done_sha1 | ( | struct sha1_context * | context, |
sha1_digest_bin_T | digest ) |
void init_sha1 | ( | struct sha1_context * | context | ) |
void update_sha1 | ( | struct sha1_context * | context, |
const unsigned char * | data, | ||
unsigned long | length ) |