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 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 #ifdef __cplusplus
00008 extern "C" {
00009 #endif
00010 
00011 #include "azure_c_shared_utility/sha.h"
00012 #include "azure_c_shared_utility/umock_c_prod.h"
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 */