<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rockbox/utils/imxtools/sbtools/misc.c, branch puzzlesmanual</title>
<subtitle>My Rockbox tree</subtitle>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/rockbox/'/>
<entry>
<title>imxtools/sbtools: various fixes</title>
<updated>2017-01-16T18:58:31+00:00</updated>
<author>
<name>Amaury Pouly</name>
<email>amaury.pouly@gmail.com</email>
</author>
<published>2017-01-01T18:46:01+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/rockbox/commit/?id=5ff3a3a98f23bb1a0dd1fb97e074ddb80337ae27'/>
<id>5ff3a3a98f23bb1a0dd1fb97e074ddb80337ae27</id>
<content type='text'>
Change bug() macro, fix memory leaks, always use -h for help, fix usage(),
fix comment, remove useless macro

Change-Id: I30554b5e07e6f2845560a570808603cf8c4da5ad
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change bug() macro, fix memory leaks, always use -h for help, fix usage(),
fix comment, remove useless macro

Change-Id: I30554b5e07e6f2845560a570808603cf8c4da5ad
</pre>
</div>
</content>
</entry>
<entry>
<title>imxtools/sbtools: rework cryptography</title>
<updated>2017-01-16T18:58:24+00:00</updated>
<author>
<name>Amaury Pouly</name>
<email>amaury.pouly@gmail.com</email>
</author>
<published>2017-01-01T19:48:05+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/rockbox/commit/?id=2b20026dd755706934f8f8e1a192bffdfc3d717c'/>
<id>2b20026dd755706934f8f8e1a192bffdfc3d717c</id>
<content type='text'>
It was a mess, a mix of crypto_* and cbc_mac calls. I made everything call crypto
functions, and also separate key setup from cryptographic operations, this will
be useful to speed up the code in the upcoming commits. Drop support for "usbotp"
key, since the crypto code for that was never mainlined and we can always get the
keys from a device as long as we have code execution (using the DCP debug registers).

Change-Id: I7aa24d12207ffb744225d1b9cc7cb1dc7281dd22
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It was a mess, a mix of crypto_* and cbc_mac calls. I made everything call crypto
functions, and also separate key setup from cryptographic operations, this will
be useful to speed up the code in the upcoming commits. Drop support for "usbotp"
key, since the crypto code for that was never mainlined and we can always get the
keys from a device as long as we have code execution (using the DCP debug registers).

Change-Id: I7aa24d12207ffb744225d1b9cc7cb1dc7281dd22
</pre>
</div>
</content>
</entry>
<entry>
<title>sbtools: more code refactoring</title>
<updated>2013-08-21T20:20:53+00:00</updated>
<author>
<name>Amaury Pouly</name>
<email>amaury.pouly@gmail.com</email>
</author>
<published>2013-08-21T20:20:53+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/rockbox/commit/?id=99f3ca174e3e6a3e6a55931b012208be64d8be39'/>
<id>99f3ca174e3e6a3e6a55931b012208be64d8be39</id>
<content type='text'>
Factor all printf method with a unique one defined in misc.h

Change-Id: I58fbf8916b76e873a2e6678506d2c8aece7834ec
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Factor all printf method with a unique one defined in misc.h

Change-Id: I58fbf8916b76e873a2e6678506d2c8aece7834ec
</pre>
</div>
</content>
</entry>
<entry>
<title>sbtools: fix output printing</title>
<updated>2013-08-06T19:24:38+00:00</updated>
<author>
<name>Amaury Pouly</name>
<email>amaury.pouly@gmail.com</email>
</author>
<published>2013-08-06T17:30:05+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/rockbox/commit/?id=c0aba07f1a4221e0aee10f7fddc47dde29e5282e'/>
<id>c0aba07f1a4221e0aee10f7fddc47dde29e5282e</id>
<content type='text'>
The code used printf instead of the provided printf functions,
resulting in strange output.

Change-Id: I2c7c2531d8d54ecdea97e8c189d18d351320ca7d
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The code used printf instead of the provided printf functions,
resulting in strange output.

Change-Id: I2c7c2531d8d54ecdea97e8c189d18d351320ca7d
</pre>
</div>
</content>
</entry>
<entry>
<title>sbtools: various fixes</title>
<updated>2013-08-06T19:24:38+00:00</updated>
<author>
<name>Amaury Pouly</name>
<email>amaury.pouly@gmail.com</email>
</author>
<published>2013-08-04T19:31:54+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/rockbox/commit/?id=8e69c37b5a8b2b9a1cf9892b38415cd6c2c33b60'/>
<id>8e69c37b5a8b2b9a1cf9892b38415cd6c2c33b60</id>
<content type='text'>
Change-Id: I82c4642aea325cf22d66e9b49fc2d47319cd70eb
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: I82c4642aea325cf22d66e9b49fc2d47319cd70eb
</pre>
</div>
</content>
</entry>
<entry>
<title>sbtools: refactor and cleanup</title>
<updated>2013-07-17T22:27:12+00:00</updated>
<author>
<name>Amaury Pouly</name>
<email>amaury.pouly@gmail.com</email>
</author>
<published>2013-07-17T22:27:12+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/rockbox/commit/?id=1c8c24183ed9d89519de2924997593cc81f6f33d'/>
<id>1c8c24183ed9d89519de2924997593cc81f6f33d</id>
<content type='text'>
Factor common elf/sb read/write/printf routines. Factor sb zero
key, move sb version guess.

Change-Id: I5ae1885587456736e782e623610281bbee545039
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Factor common elf/sb read/write/printf routines. Factor sb zero
key, move sb version guess.

Change-Id: I5ae1885587456736e782e623610281bbee545039
</pre>
</div>
</content>
</entry>
<entry>
<title>sbtools: add brute force option for sb1 in sbtoelf</title>
<updated>2013-02-16T19:49:07+00:00</updated>
<author>
<name>Amaury Pouly</name>
<email>amaury.pouly@gmail.com</email>
</author>
<published>2013-02-16T19:47:07+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/rockbox/commit/?id=b05b762ed45c6c8967fce098c598ec1a6ed7a533'/>
<id>b05b762ed45c6c8967fce098c598ec1a6ed7a533</id>
<content type='text'>
After some reverse engineering, it appears that the keys of the
sb1 format are very weak: the 128 bytes are generated from the
laserfuse words 4,5 and 6 but in a weird manner: 4 and 5 are
simply ORed and 6 is only half used (somehow), making it "only" a
48 bit word to find.

Change-Id: I40702e19d0924ef51c01894efce3cb65bd664456
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
After some reverse engineering, it appears that the keys of the
sb1 format are very weak: the 128 bytes are generated from the
laserfuse words 4,5 and 6 but in a weird manner: 4 and 5 are
simply ORed and 6 is only half used (somehow), making it "only" a
48 bit word to find.

Change-Id: I40702e19d0924ef51c01894efce3cb65bd664456
</pre>
</div>
</content>
</entry>
<entry>
<title>rsrctool: produce an actually usuable entry list of the rsrc file</title>
<updated>2012-12-02T10:51:50+00:00</updated>
<author>
<name>Amaury Pouly</name>
<email>amaury.pouly@gmail.com</email>
</author>
<published>2012-12-02T10:48:57+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/rockbox/commit/?id=9f19209c77b2131e89d3e7fb12771fb26ef491b3'/>
<id>9f19209c77b2131e89d3e7fb12771fb26ef491b3</id>
<content type='text'>
Change-Id: I6c8e5f3faf04741e4a13c1e705e9e869ccf8cfec
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: I6c8e5f3faf04741e4a13c1e705e9e869ccf8cfec
</pre>
</div>
</content>
</entry>
<entry>
<title>sbtoelf: implement sb1 loading and dumping</title>
<updated>2012-11-27T21:16:56+00:00</updated>
<author>
<name>Amaury Pouly</name>
<email>amaury.pouly@gmail.com</email>
</author>
<published>2012-11-27T21:16:56+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/rockbox/commit/?id=7dc3e939d2cd0a39035587f211587167eb6671de'/>
<id>7dc3e939d2cd0a39035587f211587167eb6671de</id>
<content type='text'>
Implement actual loading of a sb1 file to a structure in full
generality. Also implement dumping for debug purpose

Change-Id: I320035ea628719480a79aaccb05dce9a83256927
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Implement actual loading of a sb1 file to a structure in full
generality. Also implement dumping for debug purpose

Change-Id: I320035ea628719480a79aaccb05dce9a83256927
</pre>
</div>
</content>
</entry>
<entry>
<title>sbtools: add option to force sb dump</title>
<updated>2012-06-27T12:55:58+00:00</updated>
<author>
<name>Amaury Pouly</name>
<email>amaury.pouly@gmail.com</email>
</author>
<published>2012-06-27T12:50:39+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/rockbox/commit/?id=7c9e7ec707b9aa9e40c8e7ebdbbf1138cef85bb1'/>
<id>7c9e7ec707b9aa9e40c8e7ebdbbf1138cef85bb1</id>
<content type='text'>
In the case of encrypted SB files without any key match, it is
still possible to dump the section headers. The force option
allows one to do so. It also allows to dump unencrypted sections
of encrypted files if there are some.

Change-Id: I36280230679ac5903f9c451c68c276f5c6959536
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In the case of encrypted SB files without any key match, it is
still possible to dump the section headers. The force option
allows one to do so. It also allows to dump unencrypted sections
of encrypted files if there are some.

Change-Id: I36280230679ac5903f9c451c68c276f5c6959536
</pre>
</div>
</content>
</entry>
</feed>
