Azure IoT / azure_c_shared_utility

Dependents:   STM32F746_iothub_client_sample_mqtt f767zi_mqtt iothub_client_sample_amqp iothub_client_sample_http ... more

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers hmac.h Source File

hmac.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 HMAC_H
00005 #define HMAC_H
00006 
00007 #include "azure_c_shared_utility/sha.h"
00008 #include "azure_c_shared_utility/umock_c_prod.h"
00009 
00010 #ifdef __cplusplus
00011 extern "C" {
00012 #endif
00013 
00014     MOCKABLE_FUNCTION(, int, hmac, SHAversion, whichSha, const unsigned char *, text, int, text_len,
00015     const unsigned char *, key, int, key_len,
00016     uint8_t, digest[USHAMaxHashSize]);
00017 
00018 #ifdef __cplusplus
00019 }
00020 #endif
00021 
00022 #endif /* HMAC_H */