|
GNU libmicrohttpd
0.9.63
|

Go to the source code of this file.
Data Structures | |
| struct | sha256_ctx |
Macros | |
| #define | SHA256_DIGEST_SIZE 32 |
| #define | SHA256_BLOCK_SIZE 64 |
| #define | _SHA256_DIGEST_LENGTH 8 |
Functions | |
| void | sha256_init (void *ctx_) |
| void | sha256_update (void *ctx_, const uint8_t *data, size_t length) |
| void | sha256_digest (void *ctx_, uint8_t digest[SHA256_DIGEST_SIZE]) |
| #define _SHA256_DIGEST_LENGTH 8 |
Definition at line 43 of file sha256.h.
Referenced by sha256_init().
| #define SHA256_BLOCK_SIZE 64 |
Definition at line 40 of file sha256.h.
Referenced by sha256_write_digest().
| #define SHA256_DIGEST_SIZE 32 |
Definition at line 39 of file sha256.h.
Referenced by sha256_digest(), and sha256_write_digest().
| void sha256_digest | ( | void * | ctx_, |
| uint8_t | digest[SHA256_DIGEST_SIZE] | ||
| ) |
Complete SHA256 calculation.
| ctx_ | must be a struct sha256_ctx * |
| digest[out] | set to the hash, must be SHA256_DIGEST_SIZE bytes |
| void sha256_init | ( | void * | ctx_ | ) |
Start SHA256 calculation.
| ctx_ | must be a struct sha256_ctx * |
Definition at line 238 of file sha256.c.
References _SHA256_DIGEST_LENGTH, sha256_ctx::count, sha256_ctx::index, and sha256_ctx::state.
Referenced by sha256_digest().

| void sha256_update | ( | void * | ctx_, |
| const uint8_t * | data, | ||
| size_t | length | ||
| ) |
Update hash calculation.
| ctx_ | must be a struct sha256_ctx * |
| length | number of bytes in data |
| data | bytes to add to hash |
Definition at line 326 of file sha256.c.
References COMPRESS, sha256_ctx::count, data, and MD_UPDATE.