35#ifndef MBEDTLS_SHA256_ALT_H
36#define MBEDTLS_SHA256_ALT_H
40#if defined(MBEDTLS_SHA256_ALT)
42#include "sss_common.h"
48#define ST_SHA256_BUF_SIZE ((size_t) 256)
49struct mbedtls_sha256_context_s;
54typedef struct mbedtls_sha256_context_s {
58 unsigned char buffer[64];
65 unsigned char sbuf[ST_SHA256_BUF_SIZE];
66 stOCTET_STRING pstMessage;
67 stOCTET_STRING pstDigest;
130#if !defined(MBEDTLS_DEPRECATED_REMOVED)
131#if defined(MBEDTLS_DEPRECATED_WARNING)
132#define MBEDTLS_DEPRECATED __attribute__((deprecated))
134#define MBEDTLS_DEPRECATED
160 const unsigned char *input,
173 unsigned char output[32]);
186 const unsigned char data[64]);
188#undef MBEDTLS_DEPRECATED
void mbedtls_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_finish(mbedtls_sha256_context *ctx, unsigned char output[32])
This function finishes the SHA-256 operation, and writes the result to the output buffer.
void 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.
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_ret(mbedtls_sha256_context *ctx, unsigned char output[32])
This function finishes the SHA-256 operation, and writes the result to the output buffer.
void mbedtls_sha256_starts(mbedtls_sha256_context *ctx, int is224)
This function starts a SHA-224 or SHA-256 checksum calculation.
int mbedtls_sha256_starts_ret(mbedtls_sha256_context *ctx, int is224)
This function starts a SHA-224 or SHA-256 checksum calculation.
int mbedtls_sha256_update_ret(mbedtls_sha256_context *ctx, const unsigned char *input, size_t ilen)
This function feeds an input buffer into an ongoing SHA-256 checksum calculation.
This file contains SHA-224 and SHA-256 definitions and functions.
The SHA-256 context structure.