Strophe 0.12
XMPP client library
|
SHA-1 hash. More...
Macros | |
#define | rol(value, bits) (((value) << (bits)) | ((value) >> (32 - (bits)))) |
#define | blk0(i) (block->l[i] = host_to_be(block->l[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) |
#define | le_to_be(i) ((rol((i), 24) & 0xFF00FF00) | (rol((i), 8) & 0x00FF00FF)) |
Functions | |
static uint32_t | host_to_be (uint32_t i) |
static void | SHA1_Transform (uint32_t state[5], const uint8_t buffer[64]) |
static void | SHA1_cleanse (void *p, size_t len) |
void | crypto_SHA1_Init (SHA1_CTX *context) |
void | crypto_SHA1_Update (SHA1_CTX *context, const uint8_t *data, size_t len) |
void | crypto_SHA1_Final (SHA1_CTX *context, uint8_t *digest) |
void | crypto_SHA1 (const uint8_t *data, size_t len, uint8_t *digest) |
Variables | |
static void *(*volatile | SHA1_explicit_memset )(void *, int, size_t) = &memset |
SHA-1 hash.
#define rol | ( | value, | |
bits | |||
) | (((value) << (bits)) | ((value) >> (32 - (bits)))) |
#define blk0 | ( | i | ) | (block->l[i] = host_to_be(block->l[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 |
|
static |
|
static |
void crypto_SHA1_Init | ( | SHA1_CTX * | context | ) |
void crypto_SHA1_Update | ( | SHA1_CTX * | context, |
const uint8_t * | data, | ||
size_t | len | ||
) |
void crypto_SHA1_Final | ( | SHA1_CTX * | context, |
uint8_t * | digest | ||
) |
void crypto_SHA1 | ( | const uint8_t * | data, |
size_t | len, | ||
uint8_t * | digest | ||
) |
|
static |