2018-07-17 14:05:22 +02:00
|
|
|
#include <errno.h>
|
2018-07-24 17:11:24 +02:00
|
|
|
#include <stdio.h>
|
2018-07-17 14:05:22 +02:00
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
//Import our code
|
|
|
|
#include "decrypt.h"
|
2018-07-17 17:19:13 +02:00
|
|
|
#include "fileReader.h"
|
2018-07-17 14:05:22 +02:00
|
|
|
|
|
|
|
int main(int argc, unsigned char *argv[]) {
|
|
|
|
printf("Hello World!\n");
|
|
|
|
|
2018-07-17 15:05:57 +02:00
|
|
|
//Initialise file reader
|
2018-07-24 17:07:47 +02:00
|
|
|
initFileReader("1234", 0UL);
|
2018-07-17 15:05:57 +02:00
|
|
|
|
|
|
|
//Skip header (30 bytes + additional length)
|
2018-07-24 17:07:47 +02:00
|
|
|
char* fileHeader = getBytes(30UL);
|
|
|
|
printf(fileHeader);
|
2018-07-17 15:05:57 +02:00
|
|
|
|
|
|
|
//Initialise decryption (pass decryption keys)
|
|
|
|
|
|
|
|
//Skip 12-byte encryption header
|
|
|
|
|
|
|
|
//Decompress file
|
|
|
|
|
|
|
|
//Optionally perform xdelta3
|
|
|
|
|
2018-07-17 14:05:22 +02:00
|
|
|
return 0;
|
|
|
|
}
|