Nigel Rantor / azure_c_shared_utility

Fork of azure_c_shared_utility by Azure IoT

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers hmacsha256.h Source File

hmacsha256.h

00001 // Copyright (c) Microsoft. All rights reserved.
00002 // Licensed under the MIT license. See LICENSE file in the project root for full license information.
00003 
00004 #ifndef HMACSHA256_H
00005 #define HMACSHA256_H
00006 
00007 #include "azure_c_shared_utility/macro_utils.h"
00008 #include "azure_c_shared_utility/buffer_.h"
00009 #include "azure_c_shared_utility/umock_c_prod.h"
00010 
00011 #ifdef __cplusplus
00012 extern "C" {
00013 #endif
00014 
00015 #define HMACSHA256_RESULT_VALUES              \
00016     HMACSHA256_OK,                            \
00017     HMACSHA256_INVALID_ARG,                   \
00018     HMACSHA256_ERROR
00019 
00020 DEFINE_ENUM(HMACSHA256_RESULT, HMACSHA256_RESULT_VALUES)
00021 
00022 MOCKABLE_FUNCTION(, HMACSHA256_RESULT, HMACSHA256_ComputeHash, const unsigned char*, key, size_t, keyLen, const unsigned char*, payload, size_t, payloadLen, BUFFER_HANDLE, hash);
00023 
00024 #ifdef __cplusplus
00025 }
00026 #endif
00027 
00028 #endif /* HMACSHA256_H */