source: azure_iot_hub/trunk/azure_iohub/c-utility/inc/azure_c_shared_utility/hmacsha256.h@ 388

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

Azure IoT Hub Device C SDK を使ったサンプルの追加

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
  • Property svn:mime-type set to text/x-chdr
File size: 839 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#include "azure_c_shared_utility/macro_utils.h"
8#include "azure_c_shared_utility/buffer_.h"
9#include "azure_c_shared_utility/umock_c_prod.h"
10
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15#define HMACSHA256_RESULT_VALUES \
16 HMACSHA256_OK, \
17 HMACSHA256_INVALID_ARG, \
18 HMACSHA256_ERROR
19
20MU_DEFINE_ENUM(HMACSHA256_RESULT, HMACSHA256_RESULT_VALUES)
21
22MOCKABLE_FUNCTION(, HMACSHA256_RESULT, HMACSHA256_ComputeHash, const unsigned char*, key, size_t, keyLen, const unsigned char*, payload, size_t, payloadLen, BUFFER_HANDLE, hash);
23
24#ifdef __cplusplus
25}
26#endif
27
28#endif /* HMACSHA256_H */
Note: See TracBrowser for help on using the repository browser.