#include <isc/lang.h>
#include <isc/platform.h>
#include <isc/types.h>
Go to the source code of this file.
Data Structures | |
struct | isc_sha256_t |
struct | isc_sha512_t |
Defines | |
#define | ISC_SHA224_BLOCK_LENGTH 64U |
#define | ISC_SHA224_DIGESTLENGTH 28U |
#define | ISC_SHA224_DIGESTSTRINGLENGTH (ISC_SHA224_DIGESTLENGTH * 2 + 1) |
#define | ISC_SHA256_BLOCK_LENGTH 64U |
#define | ISC_SHA256_DIGESTLENGTH 32U |
#define | ISC_SHA256_DIGESTSTRINGLENGTH (ISC_SHA256_DIGESTLENGTH * 2 + 1) |
#define | ISC_SHA384_BLOCK_LENGTH 128 |
#define | ISC_SHA384_DIGESTLENGTH 48U |
#define | ISC_SHA384_DIGESTSTRINGLENGTH (ISC_SHA384_DIGESTLENGTH * 2 + 1) |
#define | ISC_SHA512_BLOCK_LENGTH 128U |
#define | ISC_SHA512_DIGESTLENGTH 64U |
#define | ISC_SHA512_DIGESTSTRINGLENGTH (ISC_SHA512_DIGESTLENGTH * 2 + 1) |
Typedefs | |
typedef isc_sha256_t | isc_sha224_t |
typedef isc_sha512_t | isc_sha384_t |
Functions | |
ISC_LANG_BEGINDECLS void | isc_sha224_init (isc_sha224_t *) |
void | isc_sha224_invalidate (isc_sha224_t *) |
void | isc_sha224_update (isc_sha224_t *, const isc_uint8_t *, size_t) |
void | isc_sha224_final (isc_uint8_t[ISC_SHA224_DIGESTLENGTH], isc_sha224_t *) |
char * | isc_sha224_end (isc_sha224_t *, char[ISC_SHA224_DIGESTSTRINGLENGTH]) |
char * | isc_sha224_data (const isc_uint8_t *, size_t, char[ISC_SHA224_DIGESTSTRINGLENGTH]) |
void | isc_sha256_init (isc_sha256_t *) |
void | isc_sha256_invalidate (isc_sha256_t *) |
void | isc_sha256_update (isc_sha256_t *, const isc_uint8_t *, size_t) |
void | isc_sha256_final (isc_uint8_t[ISC_SHA256_DIGESTLENGTH], isc_sha256_t *) |
char * | isc_sha256_end (isc_sha256_t *, char[ISC_SHA256_DIGESTSTRINGLENGTH]) |
char * | isc_sha256_data (const isc_uint8_t *, size_t, char[ISC_SHA256_DIGESTSTRINGLENGTH]) |
void | isc_sha384_init (isc_sha384_t *) |
void | isc_sha384_invalidate (isc_sha384_t *) |
void | isc_sha384_update (isc_sha384_t *, const isc_uint8_t *, size_t) |
void | isc_sha384_final (isc_uint8_t[ISC_SHA384_DIGESTLENGTH], isc_sha384_t *) |
char * | isc_sha384_end (isc_sha384_t *, char[ISC_SHA384_DIGESTSTRINGLENGTH]) |
char * | isc_sha384_data (const isc_uint8_t *, size_t, char[ISC_SHA384_DIGESTSTRINGLENGTH]) |
void | isc_sha512_init (isc_sha512_t *) |
void | isc_sha512_invalidate (isc_sha512_t *) |
void | isc_sha512_update (isc_sha512_t *, const isc_uint8_t *, size_t) |
void | isc_sha512_final (isc_uint8_t[ISC_SHA512_DIGESTLENGTH], isc_sha512_t *) |
char * | isc_sha512_end (isc_sha512_t *, char[ISC_SHA512_DIGESTSTRINGLENGTH]) |
char * | isc_sha512_data (const isc_uint8_t *, size_t, char[ISC_SHA512_DIGESTSTRINGLENGTH]) |
#define ISC_SHA224_BLOCK_LENGTH 64U |
Definition at line 66 of file sha2.h.
Referenced by hmacsha224_compare(), hmacsha224_createctx(), hmacsha224_fromdns(), hmacsha224_generate(), isc_hmacsha224_init(), and isc_hmacsha224_sign().
#define ISC_SHA224_DIGESTLENGTH 28U |
Definition at line 67 of file sha2.h.
Referenced by ATF_TC_BODY(), dst_key_sigsize(), hmacsha224_fromdns(), hmacsha224_sign(), hmacsha224_verify(), isc_hmacsha224_sign(), isc_hmacsha224_verify(), sign(), and verify().
#define ISC_SHA224_DIGESTSTRINGLENGTH (ISC_SHA224_DIGESTLENGTH * 2 + 1) |
#define ISC_SHA256_BLOCK_LENGTH 64U |
Definition at line 69 of file sha2.h.
Referenced by hmacsha256_compare(), hmacsha256_createctx(), hmacsha256_fromdns(), hmacsha256_generate(), isc_hmacsha256_init(), isc_hmacsha256_sign(), and isc_sha224_init().
#define ISC_SHA256_DIGESTLENGTH 32U |
Definition at line 70 of file sha2.h.
Referenced by ATF_TC_BODY(), check_options(), dlv_validatezonekey(), dns_ds_buildrdata(), dst_key_sigsize(), fromstruct_cds(), fromstruct_dlv(), fromstruct_ds(), fromtext_cds(), fromtext_dlv(), fromtext_ds(), fromwire_cds(), fromwire_dlv(), fromwire_ds(), hmacsha256_fromdns(), hmacsha256_sign(), hmacsha256_verify(), isc_hmacsha256_sign(), isc_hmacsha256_verify(), isc_sha224_init(), load_configuration(), sign(), validatezonekey(), and verify().
#define ISC_SHA256_DIGESTSTRINGLENGTH (ISC_SHA256_DIGESTLENGTH * 2 + 1) |
#define ISC_SHA384_BLOCK_LENGTH 128 |
Definition at line 72 of file sha2.h.
Referenced by hmacsha384_compare(), hmacsha384_createctx(), hmacsha384_fromdns(), hmacsha384_generate(), isc_hmacsha384_init(), and isc_hmacsha384_sign().
#define ISC_SHA384_DIGESTLENGTH 48U |
Definition at line 73 of file sha2.h.
Referenced by ATF_TC_BODY(), dns_ds_buildrdata(), dst_key_sigsize(), fromstruct_cds(), fromstruct_dlv(), fromstruct_ds(), fromtext_cds(), fromtext_dlv(), fromtext_ds(), fromwire_cds(), fromwire_dlv(), fromwire_ds(), hmacsha384_fromdns(), hmacsha384_sign(), hmacsha384_verify(), isc_hmacsha384_sign(), isc_hmacsha384_verify(), sign(), and verify().
#define ISC_SHA384_DIGESTSTRINGLENGTH (ISC_SHA384_DIGESTLENGTH * 2 + 1) |
#define ISC_SHA512_BLOCK_LENGTH 128U |
Definition at line 75 of file sha2.h.
Referenced by hmacsha512_compare(), hmacsha512_createctx(), hmacsha512_fromdns(), hmacsha512_generate(), isc_hmacsha512_init(), and isc_hmacsha512_sign().
#define ISC_SHA512_DIGESTLENGTH 64U |
Definition at line 76 of file sha2.h.
Referenced by ATF_TC_BODY(), dst_key_sigsize(), hmacsha512_fromdns(), hmacsha512_sign(), hmacsha512_verify(), isc_hmacsha512_sign(), isc_hmacsha512_verify(), sign(), and verify().
#define ISC_SHA512_DIGESTSTRINGLENGTH (ISC_SHA512_DIGESTLENGTH * 2 + 1) |
typedef isc_sha256_t isc_sha224_t |
typedef isc_sha512_t isc_sha384_t |
ISC_LANG_BEGINDECLS void isc_sha224_init | ( | isc_sha224_t * | ) |
Definition at line 830 of file sha2.c.
References isc_sha256_t::buffer, ISC_SHA256_BLOCK_LENGTH, ISC_SHA256_DIGESTLENGTH, and isc_sha256_t::state.
Referenced by ATF_TC_BODY(), hmacsha224_fromdns(), isc_hmacsha224_init(), isc_hmacsha224_sign(), and isc_sha256_end().
void isc_sha224_invalidate | ( | isc_sha224_t * | ) |
void isc_sha224_update | ( | isc_sha224_t * | , | |
const isc_uint8_t * | , | |||
size_t | ||||
) |
Definition at line 846 of file sha2.c.
Referenced by ATF_TC_BODY(), hmacsha224_fromdns(), isc_hmacsha224_init(), isc_hmacsha224_sign(), isc_hmacsha224_update(), and isc_sha256_end().
void isc_sha224_final | ( | isc_uint8_t | [ISC_SHA224_DIGESTLENGTH], | |
isc_sha224_t * | ||||
) |
Referenced by ATF_TC_BODY(), hmacsha224_fromdns(), isc_hmacsha224_init(), and isc_hmacsha224_sign().
char* isc_sha224_end | ( | isc_sha224_t * | , | |
char | [ISC_SHA224_DIGESTSTRINGLENGTH] | |||
) |
Referenced by isc_sha256_end().
char* isc_sha224_data | ( | const isc_uint8_t * | , | |
size_t | , | |||
char | [ISC_SHA224_DIGESTSTRINGLENGTH] | |||
) |
void isc_sha256_init | ( | isc_sha256_t * | ) |
Definition at line 860 of file sha2.c.
Referenced by ATF_TC_BODY(), dns_ds_buildrdata(), hmacsha256_fromdns(), isc_hmacsha256_init(), isc_hmacsha256_sign(), and isc_sha512_end().
void isc_sha256_invalidate | ( | isc_sha256_t * | ) |
void isc_sha256_update | ( | isc_sha256_t * | , | |
const isc_uint8_t * | , | |||
size_t | ||||
) |
Definition at line 1056 of file sha2.c.
Referenced by ATF_TC_BODY(), dns_ds_buildrdata(), hmacsha256_fromdns(), isc_hmacsha256_init(), isc_hmacsha256_sign(), isc_hmacsha256_update(), and isc_sha512_end().
void isc_sha256_final | ( | isc_uint8_t | [ISC_SHA256_DIGESTLENGTH], | |
isc_sha256_t * | ||||
) |
Referenced by ATF_TC_BODY(), dns_ds_buildrdata(), hmacsha256_fromdns(), isc_hmacsha256_init(), and isc_hmacsha256_sign().
char* isc_sha256_end | ( | isc_sha256_t * | , | |
char | [ISC_SHA256_DIGESTSTRINGLENGTH] | |||
) |
Referenced by isc_sha512_end().
char* isc_sha256_data | ( | const isc_uint8_t * | , | |
size_t | , | |||
char | [ISC_SHA256_DIGESTSTRINGLENGTH] | |||
) |
void isc_sha384_init | ( | isc_sha384_t * | ) |
Definition at line 1503 of file sha2.c.
Referenced by ATF_TC_BODY(), dns_ds_buildrdata(), hmacsha384_fromdns(), isc_hmacsha384_init(), and isc_hmacsha384_sign().
void isc_sha384_invalidate | ( | isc_sha384_t * | ) |
void isc_sha384_update | ( | isc_sha384_t * | , | |
const isc_uint8_t * | , | |||
size_t | ||||
) |
Definition at line 1519 of file sha2.c.
Referenced by ATF_TC_BODY(), dns_ds_buildrdata(), hmacsha384_fromdns(), isc_hmacsha384_init(), isc_hmacsha384_sign(), and isc_hmacsha384_update().
void isc_sha384_final | ( | isc_uint8_t | [ISC_SHA384_DIGESTLENGTH], | |
isc_sha384_t * | ||||
) |
Referenced by ATF_TC_BODY(), dns_ds_buildrdata(), hmacsha384_fromdns(), isc_hmacsha384_init(), and isc_hmacsha384_sign().
char* isc_sha384_end | ( | isc_sha384_t * | , | |
char | [ISC_SHA384_DIGESTSTRINGLENGTH] | |||
) |
char* isc_sha384_data | ( | const isc_uint8_t * | , | |
size_t | , | |||
char | [ISC_SHA384_DIGESTSTRINGLENGTH] | |||
) |
void isc_sha512_init | ( | isc_sha512_t * | ) |
Definition at line 1183 of file sha2.c.
Referenced by ATF_TC_BODY(), hmacsha512_fromdns(), isc_hmacsha512_init(), isc_hmacsha512_sign(), and isc_sha384_end().
void isc_sha512_invalidate | ( | isc_sha512_t * | ) |
void isc_sha512_update | ( | isc_sha512_t * | , | |
const isc_uint8_t * | , | |||
size_t | ||||
) |
Definition at line 1372 of file sha2.c.
Referenced by ATF_TC_BODY(), hmacsha512_fromdns(), isc_hmacsha512_init(), isc_hmacsha512_sign(), isc_hmacsha512_update(), and isc_sha384_end().
void isc_sha512_final | ( | isc_uint8_t | [ISC_SHA512_DIGESTLENGTH], | |
isc_sha512_t * | ||||
) |
Referenced by ATF_TC_BODY(), hmacsha512_fromdns(), isc_hmacsha512_init(), and isc_hmacsha512_sign().
char* isc_sha512_end | ( | isc_sha512_t * | , | |
char | [ISC_SHA512_DIGESTSTRINGLENGTH] | |||
) |
Referenced by isc_sha384_end().
char* isc_sha512_data | ( | const isc_uint8_t * | , | |
size_t | , | |||
char | [ISC_SHA512_DIGESTSTRINGLENGTH] | |||
) |