Go to the source code of this file.
Functions |
void | ldns_sha256_init (ldns_sha256_CTX *) |
void | ldns_sha256_update (ldns_sha256_CTX *, const uint8_t *, size_t) |
void | ldns_sha256_final (uint8_t[32], ldns_sha256_CTX *) |
void | ldns_sha384_init (ldns_sha384_CTX *) |
void | ldns_sha384_update (ldns_sha384_CTX *, const uint8_t *, size_t) |
void | ldns_sha384_final (uint8_t[48], ldns_sha384_CTX *) |
void | ldns_sha512_init (ldns_sha512_CTX *) |
void | ldns_sha512_update (ldns_sha512_CTX *, const uint8_t *, size_t) |
void | ldns_sha512_final (uint8_t[64], ldns_sha512_CTX *) |
unsigned char * | ldns_sha256 (unsigned char *data, unsigned int data_len, unsigned char *digest) |
| Convenience function to digest a fixed block of data at once.
|
unsigned char * | ldns_sha384 (unsigned char *data, unsigned int data_len, unsigned char *digest) |
| Convenience function to digest a fixed block of data at once.
|
unsigned char * | ldns_sha512 (unsigned char *data, unsigned int data_len, unsigned char *digest) |
| Convenience function to digest a fixed block of data at once.
|
Macro Definition Documentation
#define LDNS_SHA256_BLOCK_LENGTH 64 |
#define LDNS_SHA256_DIGEST_LENGTH 32 |
#define LDNS_SHA384_BLOCK_LENGTH 128 |
#define LDNS_SHA384_DIGEST_LENGTH 48 |
#define LDNS_SHA512_BLOCK_LENGTH 128 |
#define LDNS_SHA512_DIGEST_LENGTH 64 |
Typedef Documentation
Function Documentation
unsigned char* ldns_sha256 |
( |
unsigned char * |
data, |
|
|
unsigned int |
data_len, |
|
|
unsigned char * |
digest |
|
) |
| |
Convenience function to digest a fixed block of data at once.
- Parameters:
-
[in] | data | the data to digest |
[in] | data_len | the length of data in bytes |
[out] | digest | the length of data in bytes This pointer MUST have LDNS_SHA256_DIGEST_LENGTH bytes available |
- Returns:
- the SHA1 digest of the given data
Definition at line 613 of file sha2.c.
References ldns_sha256_final(), ldns_sha256_init(), and ldns_sha256_update().
unsigned char* ldns_sha384 |
( |
unsigned char * |
data, |
|
|
unsigned int |
data_len, |
|
|
unsigned char * |
digest |
|
) |
| |
Convenience function to digest a fixed block of data at once.
- Parameters:
-
[in] | data | the data to digest |
[in] | data_len | the length of data in bytes |
[out] | digest | the length of data in bytes This pointer MUST have LDNS_SHA384_DIGEST_LENGTH bytes available |
- Returns:
- the SHA1 digest of the given data
Definition at line 975 of file sha2.c.
References ldns_sha384_final(), ldns_sha384_init(), and ldns_sha384_update().
unsigned char* ldns_sha512 |
( |
unsigned char * |
data, |
|
|
unsigned int |
data_len, |
|
|
unsigned char * |
digest |
|
) |
| |
Convenience function to digest a fixed block of data at once.
- Parameters:
-
[in] | data | the data to digest |
[in] | data_len | the length of data in bytes |
[out] | digest | the length of data in bytes This pointer MUST have LDNS_SHA512_DIGEST_LENGTH bytes available |
- Returns:
- the SHA1 digest of the given data
Definition at line 922 of file sha2.c.
References ldns_sha512_final(), ldns_sha512_init(), and ldns_sha512_update().