|
Azure IoT middleware for FreeRTOS
|
The port file for crypto APIs. More...
Go to the source code of this file.
Functions | |
| AzureIoTResult_t | AzureIoTCrypto_SHA256Calculate (const char *pucInputPtr, uint64_t ulInputSize, const char *pucOutputPtr, uint64_t ulOutputSize) |
| Calculate a SHA256 hash. More... | |
| AzureIoTResult_t | AzureIoTCrypto_RS256Verify (const char *pucInputPtr, uint64_t ulInputSize, const char *pucSignaturePtr, uint64_t ulSignatureSize, const char *pucN, uint64_t ullNSize, const char *pucE, uint64_t ullESize, const char *pucBufferPtr, uint32_t ulBufferSize) |
| Verify an RS256 signed payload. More... | |
The port file for crypto APIs.
Used for verifying the ADU image payload.
| AzureIoTResult_t AzureIoTCrypto_RS256Verify | ( | const char * | pucInputPtr, |
| uint64_t | ulInputSize, | ||
| const char * | pucSignaturePtr, | ||
| uint64_t | ulSignatureSize, | ||
| const char * | pucN, | ||
| uint64_t | ullNSize, | ||
| const char * | pucE, | ||
| uint64_t | ullESize, | ||
| const char * | pucBufferPtr, | ||
| uint32_t | ulBufferSize | ||
| ) |
Verify an RS256 signed payload.
| [in] | pucInputPtr | The input to verify. |
| [in] | ulInputSize | The length of pucInputPtr. |
| [in] | pucSignaturePtr | The signature of the pucInputPtr payload. |
| [in] | ulSignatureSize | The length of pucSignaturePtr. |
| [in] | pucN | The pointer to the key modulus. |
| [in] | ullNSize | The length of pucN. |
| [in] | pucE | The pointer to the key exponent. |
| [in] | ullESize | The length of pucE. |
| [out] | pucBufferPtr | The buffer which will be used to make the calculation. |
| [in] | ulBufferSize | The size of pucBufferPtr. |
| AzureIoTResult_t AzureIoTCrypto_SHA256Calculate | ( | const char * | pucInputPtr, |
| uint64_t | ulInputSize, | ||
| const char * | pucOutputPtr, | ||
| uint64_t | ulOutputSize | ||
| ) |
Calculate a SHA256 hash.
| [in] | pucInputPtr | The input to calculate the SHA over. |
| [in] | ulInputSize | The size of pucInputPtr. |
| [out] | pucOutputPtr | The buffer into which the calculation will be placed. |
| [in] | ulOutputSize | The length of pucOutputPtr. |