// ******************************************************************************
//  MbedTls SHA256 context definition
//
//  Version/Date    Comment
//   2026.05.28     - First release
// ******************************************************************************

#ifndef __SHA256_ALT_H__
#define __SHA256_ALT_H__

#ifdef MBEDTLS_SHA256_ALT

#include <stdint.h>
#include <stdbool.h>

#define SHA_BLOCK_SIZE 64

typedef struct mbedtls_sha256_context {
  unsigned char buffer[SHA_BLOCK_SIZE];   // Buffer
  bool          buffer_first;             // Indicates first data
  uint32_t      buffer_index;             // Index in buffer
  uint32_t      state[8];                 // The intermediate digest state
} mbedtls_sha256_context;

#endif

#endif // __SHA256_ALT_H__
