1 /* 2 * Copyright (c) 2001-2022, Arm Limited and Contributors. All rights reserved. 3 * 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6 7 #ifndef MBEDTLS_SHA1_ALT_H 8 #define MBEDTLS_SHA1_ALT_H 9 10 #include <stddef.h> 11 #include <stdint.h> 12 13 #include "cc_hash_defs_proj.h" 14 15 #include "mbedtls/build_info.h" 16 17 #define MBEDTLS_ERR_SHA1_HW_ACCEL_FAILED -0x0035 /**< SHA-1 hardware accelerator failed */ 18 19 #ifdef __cplusplus 20 extern "C" { 21 #endif 22 23 /** 24 * \brief SHA-1 context structure 25 */ 26 typedef struct mbedtls_sha1_context { 27 /*! Internal buffer */ 28 uint32_t buff[CC_HASH_USER_CTX_SIZE_IN_WORDS]; // defined in cc_hash_defs_proj.h 29 } mbedtls_sha1_context; 30 31 #ifdef __cplusplus 32 } 33 #endif 34 35 #endif /* MBEDTLS_SHA1_ALT_H */ 36