hmac.h
Go to the documentation of this file.
1 /*!**********************************************************************
2  *
3  * @copyright Copyright (C) 2016 Siemens Aktiengesellschaft.\n
4  * All rights reserved.
5  *
6  *************************************************************************
7  *
8  * @file hmac.h
9  * @date Aug 16, 2016
10  * @brief HMAC module header file.
11  *
12  * HMAC module which defines several hashing functions required by other modules.
13  *
14  ************************************************************************/
15 
16 #ifndef HMAC_H_
17 #define HMAC_H_
18 
19 #include "mcl/mcl_common.h"
20 
40 E_MCL_ERROR_CODE hmac_sha256(const mcl_uint8_t *data, mcl_size_t data_size, const mcl_uint8_t *key, mcl_size_t key_size, mcl_uint8_t **hash, mcl_size_t *hash_size);
41 
42 #endif //HMAC_H_
Common module interface header file.
E_MCL_ERROR_CODE hmac_sha256(const mcl_uint8_t *data, mcl_size_t data_size, const mcl_uint8_t *key, mcl_size_t key_size, mcl_uint8_t **hash, mcl_size_t *hash_size)
Definition: hmac.c:27
E_MCL_ERROR_CODE
MCL Error code definitions. Every function returning an error code uses this enum values...
Definition: mcl_common.h:137
uint8_t mcl_uint8_t
Definition: mcl_common.h:43
size_t mcl_size_t
Definition: mcl_common.h:38