source: azure_iot_hub_f767zi/trunk/azure_iot_sdk/c-utility/inc/azure_c_shared_utility/hmacsha256.h@ 457

Last change on this file since 457 was 457, checked in by coas-nagasima, 4 years ago

ファイルを追加

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-chdr;charset=UTF-8
File size: 891 bytes
Line 
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
18extern "C" {
19#endif
20
21#define HMACSHA256_RESULT_VALUES \
22 HMACSHA256_OK, \
23 HMACSHA256_INVALID_ARG, \
24 HMACSHA256_ERROR
25
26MU_DEFINE_ENUM(HMACSHA256_RESULT, HMACSHA256_RESULT_VALUES)
27
28MOCKABLE_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 */
Note: See TracBrowser for help on using the repository browser.