1 /*
2  * Copyright (c) 2001-2019, Arm Limited and Contributors. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 #ifndef MBEDTLS_HASH_COMMON_H
7 #define MBEDTLS_HASH_COMMON_H
8 #include "mbedtls_common.h"
9 #ifdef __cplusplus
10 extern "C"
11 {
12 #endif
13 
14 
15 uint32_t   mbedtls_hashUpdate(void   *pHashUserCtx,
16                         uint8_t     *pDataIn,
17                         size_t      dataInSize);
18 
19 void mbedtls_sha_init_internal( void *ctx );
20 
21 int mbedtls_sha_process_internal( void *ctx, const unsigned char *data );
22 
23 int mbedtls_sha_finish_internal( void *ctx );
24 
25 int mbedtls_sha_update_internal( void *ctx, const unsigned char *input, size_t ilen );
26 
27 int mbedtls_sha_starts_internal( void *ctx, hashMode_t mode);
28 
29 
30 
31 
32 #ifdef __cplusplus
33 }
34 #endif
35 
36 #endif  /* MBEDTLS_HASH_COMMON_H */
37