Ordo
0.3.4
Symmetric Cryptography Library
|
Primitive. More...
#include "ordo/primitives/hash_functions.h"
Go to the source code of this file.
Functions | |
ORDO_PUBLIC int | sha1_init (struct SHA1_STATE *state, const void *params) |
ORDO_PUBLIC void | sha1_update (struct SHA1_STATE *state, const void *buffer, size_t len) |
ORDO_PUBLIC void | sha1_final (struct SHA1_STATE *state, void *digest) |
ORDO_PUBLIC size_t | sha1_query (int query, size_t value) |
ORDO_PUBLIC size_t | sha1_bsize (void) |
Primitive.
The SHA-1 hash function, which produces a 160-bit digest.
ORDO_PUBLIC int sha1_init | ( | struct SHA1_STATE * | state, |
const void * | params | ||
) |
hash_init()
params
parameter is ignored. ORDO_PUBLIC void sha1_update | ( | struct SHA1_STATE * | state, |
const void * | buffer, | ||
size_t | len | ||
) |
hash_update()
ORDO_PUBLIC void sha1_final | ( | struct SHA1_STATE * | state, |
void * | digest | ||
) |
hash_final()
ORDO_PUBLIC size_t sha1_query | ( | int | query, |
size_t | value | ||
) |
hash_query()
ORDO_PUBLIC size_t sha1_bsize | ( | void | ) |
Gets the size in bytes of a SHA1_STATE
.