13#ifndef MBEDTLS_SHA256_H
14#define MBEDTLS_SHA256_H
23#define MBEDTLS_ERR_SHA256_BAD_INPUT_DATA -0x0074
29#if !defined(MBEDTLS_SHA256_ALT)
44#if defined(MBEDTLS_SHA224_C)
111 const unsigned char *input,
128 unsigned char *output);
143 const unsigned char data[64]);
169 unsigned char *output,
172#if defined(MBEDTLS_SELF_TEST)
174#if defined(MBEDTLS_SHA224_C)
184#if defined(MBEDTLS_SHA256_C)
Build-time configuration info.
Macro wrapper for struct's members.
#define MBEDTLS_PRIVATE(member)
int mbedtls_sha256_starts(mbedtls_sha256_context *ctx, int is224)
This function starts a SHA-224 or SHA-256 checksum calculation.
int mbedtls_sha224_self_test(int verbose)
The SHA-224 checkup routine.
struct mbedtls_sha256_context mbedtls_sha256_context
The SHA-256 context structure.
void mbedtls_sha256_free(mbedtls_sha256_context *ctx)
This function clears a SHA-256 context.
void mbedtls_sha256_init(mbedtls_sha256_context *ctx)
This function initializes a SHA-256 context.
int mbedtls_internal_sha256_process(mbedtls_sha256_context *ctx, const unsigned char data[64])
This function processes a single data block within the ongoing SHA-256 computation....
void mbedtls_sha256_clone(mbedtls_sha256_context *dst, const mbedtls_sha256_context *src)
This function clones the state of a SHA-256 context.
int mbedtls_sha256_finish(mbedtls_sha256_context *ctx, unsigned char *output)
This function finishes the SHA-256 operation, and writes the result to the output buffer.
int mbedtls_sha256_update(mbedtls_sha256_context *ctx, const unsigned char *input, size_t ilen)
This function feeds an input buffer into an ongoing SHA-256 checksum calculation.
int mbedtls_sha256_self_test(int verbose)
The SHA-256 checkup routine.
int mbedtls_sha256(const unsigned char *input, size_t ilen, unsigned char *output, int is224)
This function calculates the SHA-224 or SHA-256 checksum of a buffer.
The SHA-256 context structure.