Explorar el Código

Fix decryption bug

Bernd Gottschlag hace 5 años
padre
commit
05696f7e74
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      weather-sensor/firmware/encryption.c

+ 1
- 1
weather-sensor/firmware/encryption.c Ver fichero

65
 
65
 
66
 		/* Setup for next block */
66
 		/* Setup for next block */
67
 		currentCipherBlock = previousCipherBlock;
67
 		currentCipherBlock = previousCipherBlock;
68
-		if (previousCipherBlock != (uint8_t*) data)
68
+		if (previousCipherBlock != (uint8_t*) data + LENGTH_OF_BLOCK)
69
 		{
69
 		{
70
 			previousCipherBlock -= LENGTH_OF_BLOCK;
70
 			previousCipherBlock -= LENGTH_OF_BLOCK;
71
 		}
71
 		}

Loading…
Cancelar
Guardar