1
0
Fork 0
mirror of https://github.com/CTCaer/hekate.git synced 2024-11-10 04:21:45 +00:00
hekate/bootloader
Stéphane Lesimple ee884add8c [Tools] implement hashfile generation on backup
Add a configuration option "Full w/ hashfile" to
the "verification" option menu, to enable hashfile
generation when doing full verification of a backup.

When enabled, during full backup verification we save the
chunk's SHA256 digest in a hashfile next to the output file
we're currently verifying.

The performance impact is negligible between "Full verify"
and "Full verify w/ hashfile", because we already
compute the SHA256 of the chunks when verifying.

We save the SHA256 per chunks (4 MB) because due to
SE limitations, we can't compute the SHA256 of the
whole partition (or rawnand).

On the other hand a pure software implementation
is way too slow to be bearable, even asm-optimized:
between 15 and 90 seconds per 4 MB chunk for
crc32/sha1/sha256, depending on the optimizations
and the actual algorithm.

The output hash file format is as follows:
 # chunksize: <CHUNKSIZE_IN_BYTES>
 sha256_of_chunk_1
 sha256_of_chunk_2
 ...
 sha256_of_chunk_N
2019-04-26 17:53:24 +02:00
..
config [Tools] implement hashfile generation on backup 2019-04-26 17:53:24 +02:00
frontend [Tools] implement hashfile generation on backup 2019-04-26 17:53:24 +02:00
gfx [GFX] Finish ctxt global usage 2019-04-21 17:33:39 +03:00
hos [HOS] Add full 8.0.0 support 2019-04-21 17:37:12 +03:00
ianos [GFX] Refactor gfx to utilize global contexts 2019-04-14 02:30:14 +03:00
libs [GFX] Finish ctxt global usage 2019-04-21 17:33:39 +03:00
mem Bugfixes and hardcoded naming 2019-03-08 00:19:04 +02:00
power [PMIC] Refactoring 2019-02-16 01:23:14 +02:00
rtc Add max77620-rtc driver & disable alarm on shut off 2019-02-12 00:45:27 +02:00
sec [TSEC] Fix tsec timeout 2019-04-19 11:54:09 -04:00
soc [GFX] Finish ctxt global usage 2019-04-21 17:33:39 +03:00
storage [HOS] Add full 8.0.0 support 2019-04-21 17:37:12 +03:00
utils Various bugfixes 2019-04-14 02:19:04 +03:00
link.ld [Versioning] Better and smarter for update and sept 2019-03-07 23:53:58 +02:00
main.c Bump version to v4.10.0 2019-04-21 17:38:29 +03:00
start.S Refactor ALL the things + enable LTO 2018-08-13 11:58:24 +03:00