#include "config.h"
#include <isc/assertions.h>
#include <isc/platform.h>
#include <isc/sha1.h>
#include <isc/string.h>
#include <isc/types.h>
#include <isc/util.h>
Go to the source code of this file.
Data Structures | |
union | CHAR64LONG16 |
Defines | |
#define | rol(value, bits) (((value) << (bits)) | ((value) >> (32 - (bits)))) |
#define | blk0(i) |
#define | blk(i) |
#define | R0(v, w, x, y, z, i) |
#define | R1(v, w, x, y, z, i) |
#define | R2(v, w, x, y, z, i) |
#define | R3(v, w, x, y, z, i) |
#define | R4(v, w, x, y, z, i) |
Functions | |
static void | transform (isc_uint32_t state[5], const unsigned char buffer[64]) |
void | isc_sha1_init (isc_sha1_t *context) |
void | isc_sha1_invalidate (isc_sha1_t *context) |
void | isc_sha1_update (isc_sha1_t *context, const unsigned char *data, unsigned int len) |
void | isc_sha1_final (isc_sha1_t *context, unsigned char *digest) |
Variables | |
static const unsigned char | final_200 = 128 |
static const unsigned char | final_0 = 0 |
Definition in file sha1.c.
#define rol | ( | value, | |||
bits | ) | (((value) << (bits)) | ((value) >> (32 - (bits)))) |
#define blk0 | ( | i | ) |
#define blk | ( | i | ) |
#define R0 | ( | v, | |||
w, | |||||
x, | |||||
y, | |||||
z, | |||||
i | ) |
#define R1 | ( | v, | |||
w, | |||||
x, | |||||
y, | |||||
z, | |||||
i | ) |
#define R2 | ( | v, | |||
w, | |||||
x, | |||||
y, | |||||
z, | |||||
i | ) |
#define R3 | ( | v, | |||
w, | |||||
x, | |||||
y, | |||||
z, | |||||
i | ) |
#define R4 | ( | v, | |||
w, | |||||
x, | |||||
y, | |||||
z, | |||||
i | ) |
static void transform | ( | isc_uint32_t | state[5], | |
const unsigned char | buffer[64] | |||
) | [static] |
void isc_sha1_init | ( | isc_sha1_t * | context | ) |
isc_sha1_init - Initialize new context
Definition at line 317 of file sha1.c.
References isc_sha1_t::count, INSIST, and isc_sha1_t::state.
Referenced by ATF_TC_BODY(), dns_ds_buildrdata(), hmacsha1_fromdns(), isc_entropy_getdata(), isc_hmacsha1_init(), isc_hmacsha1_sign(), and isc_iterated_hash().
void isc_sha1_invalidate | ( | isc_sha1_t * | context | ) |
void isc_sha1_update | ( | isc_sha1_t * | context, | |
const unsigned char * | data, | |||
unsigned int | len | |||
) |
Run your data through this.
Definition at line 340 of file sha1.c.
References isc_sha1_t::buffer, isc_sha1_t::count, INSIST, isc_sha1_t::state, and transform().
Referenced by ATF_TC_BODY(), dns_ds_buildrdata(), hmacsha1_fromdns(), isc_entropy_getdata(), isc_hmacsha1_init(), isc_hmacsha1_sign(), isc_hmacsha1_update(), isc_iterated_hash(), and isc_sha1_final().
void isc_sha1_final | ( | isc_sha1_t * | context, | |
unsigned char * | digest | |||
) |
Definition at line 374 of file sha1.c.
References isc_sha1_t::count, INSIST, isc_sha1_update(), and isc_sha1_t::state.
Referenced by ATF_TC_BODY(), dns_ds_buildrdata(), hmacsha1_fromdns(), isc_entropy_getdata(), isc_hmacsha1_init(), isc_hmacsha1_sign(), and isc_iterated_hash().
const unsigned char final_200 = 128 [static] |