mirror of
https://github.com/CovidBraceletPrj/CovidBracelet.git
synced 2025-01-09 20:54:26 +01:00
41 lines
857 B
C
41 lines
857 B
C
/*
|
|
* Copyright (c) 2001-2019, Arm Limited and Contributors. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef MBEDTLS_SHA256_ALT_H
|
|
#define MBEDTLS_SHA256_ALT_H
|
|
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
#if defined (MBEDTLS_CONFIG_FILE)
|
|
#include MBEDTLS_CONFIG_FILE
|
|
#endif
|
|
|
|
#if defined (MBEDTLS_SHA256_ALT)
|
|
|
|
#define SHA_256_CONTEXT_SIZE_IN_WORDS 60
|
|
|
|
#define MBEDTLS_ERR_SHA256_HW_ACCEL_FAILED -0x0037 /**< SHA-256 hardware accelerator failed */
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/**
|
|
* \brief SHA-256 context structure
|
|
*/
|
|
typedef struct mbedtls_sha256_context {
|
|
uint32_t reserved;
|
|
uint32_t buff[SHA_256_CONTEXT_SIZE_IN_WORDS]; // defined in cc_hash_defs.h
|
|
} mbedtls_sha256_context;
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif /* MBEDTLS_SHA256_ALT */
|
|
|
|
#endif /* MBEDTLS_SHA256_ALT_H */
|