| 1 |
// Copyright (c) Microsoft. All rights reserved. |
| 2 |
// Licensed under the MIT license. See LICENSE file in the project root for full license information. |
| 3 |
|
| 4 |
#ifndef HMAC_H |
| 5 |
#define HMAC_H |
| 6 |
|
| 7 |
#ifdef __cplusplus |
| 8 |
#include <cstdint> |
| 9 |
#else |
| 10 |
#include <stdint.h> |
| 11 |
#endif |
| 12 |
|
| 13 |
#include "azure_c_shared_utility/sha.h" |
| 14 |
#include "umock_c/umock_c_prod.h" |
| 15 |
|
| 16 |
#ifdef __cplusplus |
| 17 |
extern "C" { |
| 18 |
#endif |
| 19 |
|
| 20 |
MOCKABLE_FUNCTION(, int, hmac, SHAversion, whichSha, const unsigned char *, text, int, text_len, |
| 21 |
const unsigned char *, key, int, key_len, |
| 22 |
uint8_t, digest[USHAMaxHashSize]); |
| 23 |
|
| 24 |
#ifdef __cplusplus |
| 25 |
} |
| 26 |
#endif |
| 27 |
|
| 28 |
#endif /* HMAC_H */ |