/*====*====*====*====*====*====*====*====*====*====*====*====*====*====*====*

                       Authhat Common Template Header for crypto function(s)

GENERAL DESCRIPTION
 Declares common crypto interface function(s) - crypto

*====*====*====*====*====*====*====*====*====*====*====*====*====*====*====*/

#ifndef __sec_templ_h__
#define __sec_templ_h__

#include "authhat_protocol.h"

extern void integer_to_string(UINT32 val, UINT8* ar, UINT32 index);
extern void string_to_integer(UINT32* val, UINT8* ar, UINT32 index);
extern void integer64_to_array(uint64_t val, UINT8 *ar, UINT32 index);
extern void array_to_integer64(uint64_t *val, UINT8 *ar, UINT32 index);

extern UINT32 authhat_encode_metadata(UINT32 tz_type, UINT8* inMetaData, UINT32 inMetaDataSize, UINT8* outMetaData, UINT32* outMetaDataSize);

#endif /* __sec_templ_h__ */

