rockbox/utils
Nikita Burnashev e232f69214 atjboottool: gzipped fw files, option for big-endian fw, clarify ECIES in fwu
Added fw modifications required to unpack real world player dumps.


Documented more fwu header fields, magic numbers and finite field arithmetics (extended Euclidean for inverse, long division for reducing modulo field_poly).

v3 encryption used is standard RC4 with the key additionally ciphered by the Elliptic Curve Integrated Encryption Scheme.

Either sect233k1 (NIST K-233) or sect163r2 (NIST B-163) curves can be used, with the former overwhelmingly prevailing, being hardwired in SDK's maker.exe. Using a private/public key scheme is superfluous because both are stored in the firmware, with the added level of complexity likely serving the purpose of obfuscation. The private key is generated at random with each invokation.

None of KDF or MAC from ECIES are used, RC4 key is directly xored with the shared secret. The random number r used to calculate rG isn't stored, but that's unimportant since only krG == rkG is actually used in the encryption.

Change-Id: Ieacf8cc744bc90c7c5582dd724b2c10a41bfc191
2023-05-17 13:19:31 -04:00
..
AMS/hacking amsinfo: save files with .bin extension 2011-12-13 03:01:16 +00:00
analysis Python3-related fixes in some of our scripts 2020-07-09 14:39:27 +00:00
atj2137 atjboottool: gzipped fw files, option for big-endian fw, clarify ECIES in fwu 2023-05-17 13:19:31 -04:00
bootchart
bspatch rbutil: Merge rbutil with utils folder. 2021-12-24 18:05:53 +01:00
bzip2 rbutil: Merge rbutil with utils folder. 2021-12-24 18:05:53 +01:00
chinachippatcher rbutil: Merge rbutil with utils folder. 2021-12-24 18:05:53 +01:00
cmake utils: Work around windeployqt bug. 2022-03-13 16:20:10 +01:00
common Remove outdated theme editor deploy script. 2022-02-28 20:37:32 +01:00
disassembler/arm
e200rpatcher rbutil: Merge rbutil with utils folder. 2021-12-24 18:05:53 +01:00
e200tool Add new tool to upload code on e200/c200/view in manufacturer mode 2014-04-07 22:25:06 +02:00
editors
hwpatcher hwpatcher: add generic RKW file patching script 2014-09-02 22:35:26 +02:00
hwstub makefiles: Suppress stray backslash warnings with grep 3.8 2023-03-21 04:48:31 -04:00
ibassoboot/jni rbutil: Merge rbutil with utils folder. 2021-12-24 18:05:53 +01:00
imxtools sbtools: Change crypto wrapper implementation to C. 2020-10-18 19:08:32 +02:00
ingenic_tools Add ingenic_tools/usbboot utility 2021-02-28 02:52:56 +00:00
ipod
ipodpatcher rbutil: Fix ipodpatcher bootloader install on Windows. 2022-04-13 21:36:44 +02:00
jz4740_tools Fix crash on uninitialized variable 2015-01-13 21:57:24 +01:00
jz4760_tools jz4760b_tools: improve usbboot tool 2017-01-24 15:23:21 +01:00
jztool jztool: support new binary header on x1000 2022-03-11 11:15:56 -05:00
meizu_dfu
mkamsboot mkamsboot: Fix a warning. 2021-12-25 17:47:14 +01:00
mkimxboot rbutil: Merge rbutil with utils folder. 2021-12-24 18:05:53 +01:00
mkmpioboot rbutil: Merge rbutil with utils folder. 2021-12-24 18:05:53 +01:00
mknwzboot rbutil: Merge rbutil with utils folder. 2021-12-24 18:05:53 +01:00
mkrk27boot rbutil: Merge rbutil with utils folder. 2021-12-24 18:05:53 +01:00
mks5lboot rbutil: Merge rbutil with utils folder. 2021-12-24 18:05:53 +01:00
mktccboot rbutil: Merge rbutil with utils folder. 2021-12-24 18:05:53 +01:00
mkzenboot rbutil: Merge rbutil with utils folder. 2021-12-24 18:05:53 +01:00
MTP mknkboot: optimize verifyfirm 2021-06-17 15:30:51 +00:00
nwztools nwzstools: add NW-A820 nvp nodes 2020-10-18 22:34:16 +02:00
rbutilqt rbutil: Try to use system-wide QuaZIP in preference to building our own 2022-07-11 15:00:07 -04:00
reggen-ng x1000: fix broken OST2 timer prescaler 2021-10-16 16:58:19 -04:00
regtools Make headergen_v2's output include what it uses 2021-02-27 22:02:31 +00:00
rk27utils Fix uninitialized variable (should fix libusb retry handling) 2015-01-04 13:35:47 +01:00
rknanoutils rknanoutils: fix boot tool 2013-03-21 19:02:03 +01:00
rockbox_api misc: Remove all 'twiki' references in favor of up-to-date 'wiki' links. 2020-06-07 01:38:55 +00:00
samsungtools samsungtool: allow firmware creation 2012-12-06 12:17:50 +01:00
sansapatcher rbutil: Fix sansapatcher bootloader install on Windows. 2022-04-14 22:22:46 +02:00
scsi scsi: add support for listing devices on Windows 2020-01-29 13:27:18 +01:00
skinupdater
tcctool tcctool: fix Makefile 2013-09-18 13:14:20 +02:00
themeeditor utils: rework cmake deploy function. 2022-03-12 20:40:08 +01:00
time-sync time-sync: allow passing an arbitrary time. 2013-06-09 19:51:08 +02:00
tomcrypt tomcrypt: Set target macOS version. 2020-10-31 19:20:36 +01:00
tools rbutil: Merge rbutil with utils folder. 2021-12-24 18:05:53 +01:00
ypr0tools Samsung YP-R1: fix OF boot shortcut 2020-07-07 17:52:17 +00:00
zenutils Clean up bogus 'make compiler happy' code 2015-01-12 21:13:00 +01:00
CMakeLists.txt rbutil: Make QtMultimedia an optional component. 2022-04-14 22:23:35 +02:00
libtools.make rbutil: Merge rbutil with utils folder. 2021-12-24 18:05:53 +01:00
parse_testcodec.rb utils/parse_testcodec.rb: add support for Opus files 2015-07-17 00:51:22 +02:00