libosmogsm 1.10.0.65-d581
Osmocom GSM library
|
Go to the source code of this file.
Data Structures | |
struct | sha256_state |
Macros | |
#define | SHA256_BLOCK_SIZE 64 |
Functions | |
void | sha256_init (struct sha256_state *md) |
int | sha256_process (struct sha256_state *md, const unsigned char *in, unsigned long inlen) |
Process a block of memory though the hash. More... | |
int | sha256_done (struct sha256_state *md, unsigned char *out) |
Terminate the hash to get the digest. More... | |
#define SHA256_BLOCK_SIZE 64 |
int sha256_done | ( | struct sha256_state * | md, |
unsigned char * | out | ||
) |
Terminate the hash to get the digest.
md | The hash state |
out | [out] The destination of the hash (32 bytes) |
References sha256_state::buf, sha256_state::curlen, sha256_state::length, SHA256_BLOCK_SIZE, sha256_compress(), sha256_state::state, WPA_PUT_BE32, and WPA_PUT_BE64.
Referenced by sha256_vector().
void sha256_init | ( | struct sha256_state * | md | ) |
References sha256_state::curlen, sha256_state::length, and sha256_state::state.
Referenced by sha256_vector().
int sha256_process | ( | struct sha256_state * | md, |
const unsigned char * | in, | ||
unsigned long | inlen | ||
) |
Process a block of memory though the hash.
md | The hash state |
in | The data to hash |
inlen | The length of the data (octets) |
References sha256_state::buf, sha256_state::curlen, sha256_state::length, MIN, n, os_memcpy, SHA256_BLOCK_SIZE, and sha256_compress().
Referenced by sha256_vector().