| 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 HMACSHA256_H |
| 5 |
#define HMACSHA256_H |
| 6 |
|
| 7 |
#ifdef __cplusplus |
| 8 |
#include <cstddef> |
| 9 |
#else |
| 10 |
#include <stddef.h> |
| 11 |
#endif |
| 12 |
|
| 13 |
#include "azure_macro_utils/macro_utils.h" |
| 14 |
#include "azure_c_shared_utility/buffer_.h" |
| 15 |
#include "umock_c/umock_c_prod.h" |
| 16 |
|
| 17 |
#ifdef __cplusplus |
| 18 |
extern "C" { |
| 19 |
#endif |
| 20 |
|
| 21 |
#define HMACSHA256_RESULT_VALUES \ |
| 22 |
HMACSHA256_OK, \ |
| 23 |
HMACSHA256_INVALID_ARG, \ |
| 24 |
HMACSHA256_ERROR |
| 25 |
|
| 26 |
MU_DEFINE_ENUM(HMACSHA256_RESULT, HMACSHA256_RESULT_VALUES) |
| 27 |
|
| 28 |
MOCKABLE_FUNCTION(, HMACSHA256_RESULT, HMACSHA256_ComputeHash, const unsigned char*, key, size_t, keyLen, const unsigned char*, payload, size_t, payloadLen, BUFFER_HANDLE, hash); |
| 29 |
|
| 30 |
#ifdef __cplusplus |
| 31 |
} |
| 32 |
#endif |
| 33 |
|
| 34 |
#endif /* HMACSHA256_H */ |