|
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 | sha256_init (struct SHA256_STATE *state, const void *params) |
| ORDO_PUBLIC void | sha256_update (struct SHA256_STATE *state, const void *buffer, size_t len) |
| ORDO_PUBLIC void | sha256_final (struct SHA256_STATE *state, void *digest) |
| ORDO_PUBLIC size_t | sha256_query (int query, size_t value) |
| ORDO_PUBLIC size_t | sha256_bsize (void) |
Primitive.
The SHA-256 hash function, which produces a 256-bit digest.
| ORDO_PUBLIC int sha256_init | ( | struct SHA256_STATE * | state, |
| const void * | params | ||
| ) |
hash_init() params parameter is ignored. | ORDO_PUBLIC void sha256_update | ( | struct SHA256_STATE * | state, |
| const void * | buffer, | ||
| size_t | len | ||
| ) |
hash_update() | ORDO_PUBLIC void sha256_final | ( | struct SHA256_STATE * | state, |
| void * | digest | ||
| ) |
hash_final() | ORDO_PUBLIC size_t sha256_query | ( | int | query, |
| size_t | value | ||
| ) |
hash_query() | ORDO_PUBLIC size_t sha256_bsize | ( | void | ) |
Gets the size in bytes of a SHA256_STATE.
1.8.6