ThingWorx C SDK
twSig.h
1 /***************************************
2  * Copyright 2018, PTC, Inc.
3  ***************************************/
4 
5 
6 #ifndef TW_C_SDK_TWSIG_H
7 #define TW_C_SDK_TWSIG_H
8 #include <stdio.h>
9 void TWSHA256BinToHex(unsigned char binary[32],unsigned char hex[65]);
10 int TWSHA256_sha256_file(char *path, char outputBuffer[65]);
11 int decryptSignatureRsaFile(const char* publicKeyFilePath,char* encryptedData,size_t encryptedDataLength, char decryptedHex[65],char** commonName);
12 #endif //TW_C_SDK_TWSIG_H