libusual
0.1
|
SHA256 and SHA224 cryptographic hashes. More...
Data Structures | |
struct | sha256_ctx |
State structure for both SHA256 and SHA224. More... | |
Defines | |
#define | SHA224_BLOCK_SIZE |
SHA224 block size in bytes. | |
#define | SHA256_BLOCK_SIZE |
SHA256 block size in bytes. | |
#define | SHA224_DIGEST_LENGTH |
SHA224 result length in bytes. | |
#define | SHA256_DIGEST_LENGTH |
SHA256 result length in bytes. | |
Functions | |
void | sha256_reset (struct sha256_ctx *ctx) |
Initialize structure for SHA256. | |
void | sha256_update (struct sha256_ctx *ctx, const void *data, unsigned int len) |
Process more data. | |
void | sha256_final (struct sha256_ctx *ctx, uint8_t *dst) |
Calculate final result. | |
void | sha224_reset (struct sha256_ctx *ctx) |
Initialize structure for SHA224. | |
void | sha224_update (struct sha256_ctx *ctx, const void *data, unsigned int len) |
Process more data. | |
void | sha224_final (struct sha256_ctx *ctx, uint8_t *dst) |
Calculate final result. |
SHA256 and SHA224 cryptographic hashes.
#define SHA224_BLOCK_SIZE |
SHA224 block size in bytes.
#define SHA256_BLOCK_SIZE |
SHA256 block size in bytes.
#define SHA224_DIGEST_LENGTH |
SHA224 result length in bytes.
#define SHA256_DIGEST_LENGTH |
SHA256 result length in bytes.
void sha256_reset | ( | struct sha256_ctx * | ctx | ) |
Initialize structure for SHA256.
void sha256_update | ( | struct sha256_ctx * | ctx, |
const void * | data, | ||
unsigned int | len | ||
) |
Process more data.
void sha256_final | ( | struct sha256_ctx * | ctx, |
uint8_t * | dst | ||
) |
Calculate final result.
void sha224_reset | ( | struct sha256_ctx * | ctx | ) |
Initialize structure for SHA224.
void sha224_update | ( | struct sha256_ctx * | ctx, |
const void * | data, | ||
unsigned int | len | ||
) |
Process more data.
void sha224_final | ( | struct sha256_ctx * | ctx, |
uint8_t * | dst | ||
) |
Calculate final result.