summaryrefslogtreecommitdiffstats
path: root/apps/plugins/crypt_firmware.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/crypt_firmware.c')
-rw-r--r--apps/plugins/crypt_firmware.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/apps/plugins/crypt_firmware.c b/apps/plugins/crypt_firmware.c
index f9bdd4d031..14e9c2be96 100644
--- a/apps/plugins/crypt_firmware.c
+++ b/apps/plugins/crypt_firmware.c
@@ -36,8 +36,7 @@
*/
#include "plugin.h"
-
-
+#include "checksum.h"
static void aes_encrypt(void* data, uint32_t size)
{
@@ -133,17 +132,6 @@ static void put_uint32be(unsigned char* buf, uint32_t x)
buf[3] = x & 0xff;
}
-static uint32_t calc_checksum(uint32_t sum, unsigned char* buf, int len)
-{
- int i;
-
- for (i = 0; i < len ; i++) {
- sum += buf[i];
- }
-
- return sum;
-}
-
enum plugin_status plugin_start(const void* parameter)
{
int fd;