Azure IoT common library

Dependents:   STM32F746_iothub_client_sample_mqtt f767zi_mqtt iothub_client_sample_amqp iothub_client_sample_http ... more

Revision:
15:956c6d205aa7
Parent:
0:fa2de1b79154
Child:
19:2e0811512ceb
--- a/sha224.c	Fri Oct 21 22:11:02 2016 +0000
+++ b/sha224.c	Wed Nov 16 21:38:39 2016 -0800
@@ -67,7 +67,6 @@
 /*
 * add "length" to the length
 */
-static uint32_t addTemp;
 #define SHA224_256AddLength(context, length)               \
   (addTemp = (context)->Length_Low, (context)->Corrupted = \
     (((context)->Length_Low += (length)) < addTemp) &&     \
@@ -230,6 +229,7 @@
 int SHA256Input(SHA256Context *context, const uint8_t *message_array,
     unsigned int length)
 {
+    uint32_t addTemp;
     if (!length)
         return shaSuccess;
 
@@ -281,6 +281,7 @@
 int SHA256FinalBits(SHA256Context *context,
     const uint8_t message_bits, unsigned int length)
 {
+    uint32_t addTemp;
     uint8_t masks[8] = {
         /* 0 0b00000000 */ 0x00, /* 1 0b10000000 */ 0x80,
         /* 2 0b11000000 */ 0xC0, /* 3 0b11100000 */ 0xE0,