<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rockbox/utils/nwztools/upgtools/upgtool.c, branch master</title>
<subtitle>My Rockbox tree</subtitle>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/rockbox/'/>
<entry>
<title>nwztools/upgtools: misc fixes</title>
<updated>2017-04-25T01:23:57+00:00</updated>
<author>
<name>Igor Skochinsky</name>
<email>skochinsky@gmail.com</email>
</author>
<published>2017-03-28T21:21:25+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/rockbox/commit/?id=f1c8d63a762acdcb29f30d17617e531fdb555af4'/>
<id>f1c8d63a762acdcb29f30d17617e531fdb555af4</id>
<content type='text'>
* added KAS for nwz-x1000 (extracted from an NWZ-X1060 via "get_dnk_nvp kas")

* hint that -o is needed when extracting

Change-Id: Ic91c448aa058a22c8ddcae54726f628f7cf60f6b
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* added KAS for nwz-x1000 (extracted from an NWZ-X1060 via "get_dnk_nvp kas")

* hint that -o is needed when extracting

Change-Id: Ic91c448aa058a22c8ddcae54726f628f7cf60f6b
</pre>
</div>
</content>
</entry>
<entry>
<title>nwztools: cleanup crypto, switch MD5 to Crypto++</title>
<updated>2017-01-04T16:05:15+00:00</updated>
<author>
<name>Amaury Pouly</name>
<email>amaury.pouly@gmail.com</email>
</author>
<published>2017-01-04T15:55:53+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/rockbox/commit/?id=dbeb6db1b55a50dedf17e7d78ddb6fe9eebc2a63'/>
<id>dbeb6db1b55a50dedf17e7d78ddb6fe9eebc2a63</id>
<content type='text'>
We already use Crypto++ for DES anyway, and using OpenSSL is not great because
of its incompatible licence.

Change-Id: I78771b84c1708795a0c0c30afa5bdfe4885dea4e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We already use Crypto++ for DES anyway, and using OpenSSL is not great because
of its incompatible licence.

Change-Id: I78771b84c1708795a0c0c30afa5bdfe4885dea4e
</pre>
</div>
</content>
</entry>
<entry>
<title>nwztools/upg: move upg handling to its own file, completely rework kas handling</title>
<updated>2017-01-04T16:04:38+00:00</updated>
<author>
<name>Amaury Pouly</name>
<email>amaury.pouly@gmail.com</email>
</author>
<published>2017-01-04T15:36:27+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/rockbox/commit/?id=92ecbd5fb8a7c8e939b1b4dde82cc6c9ba9d41af'/>
<id>92ecbd5fb8a7c8e939b1b4dde82cc6c9ba9d41af</id>
<content type='text'>
This was a huge mess, the new is much cleaner hopefully.

Change-Id: I43663d021dc8bc31662d3923e1c3da22d987ebf9
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This was a huge mess, the new is much cleaner hopefully.

Change-Id: I43663d021dc8bc31662d3923e1c3da22d987ebf9
</pre>
</div>
</content>
</entry>
<entry>
<title>nwztools/upgtools: add more brute force algorithms</title>
<updated>2017-01-04T16:04:19+00:00</updated>
<author>
<name>Amaury Pouly</name>
<email>amaury.pouly@gmail.com</email>
</author>
<published>2017-01-04T15:35:38+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/rockbox/commit/?id=5cfd4a5b8e551c23600c93838180487e91698814'/>
<id>5cfd4a5b8e551c23600c93838180487e91698814</id>
<content type='text'>
Allow to search for hex with upper case and alphanumeric. This is *much* slower
of course.

Change-Id: I41a2fc63c4b2220c21147b711098ebc37ddb3527
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Allow to search for hex with upper case and alphanumeric. This is *much* slower
of course.

Change-Id: I41a2fc63c4b2220c21147b711098ebc37ddb3527
</pre>
</div>
</content>
</entry>
<entry>
<title>Add KAS for NWZ-E470</title>
<updated>2016-11-14T19:54:05+00:00</updated>
<author>
<name>Marcin Bukat</name>
<email>marcin.bukat@gmail.com</email>
</author>
<published>2016-11-14T19:54:05+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/rockbox/commit/?id=deaeb73912c1bb9fd4d3498e59d1789761f3e322'/>
<id>deaeb73912c1bb9fd4d3498e59d1789761f3e322</id>
<content type='text'>
Change-Id: I1b8272a486ba2377e5047855acda3f80aa92c232
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: I1b8272a486ba2377e5047855acda3f80aa92c232
</pre>
</div>
</content>
</entry>
<entry>
<title>nwztools/upgtools: cleanup</title>
<updated>2016-11-11T15:07:14+00:00</updated>
<author>
<name>Amaury Pouly</name>
<email>amaury.pouly@gmail.com</email>
</author>
<published>2016-11-11T14:32:09+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/rockbox/commit/?id=19de536ce2f3c8066ca5be9b570f72e5c1e88342'/>
<id>19de536ce2f3c8066ca5be9b570f72e5c1e88342</id>
<content type='text'>
There is no need to store the key and sig since those are derived from the KAS
anyway.

Change-Id: I228913b1cb32e496db265e9a7aaf3bb4200a9f6b
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
There is no need to store the key and sig since those are derived from the KAS
anyway.

Change-Id: I228913b1cb32e496db265e9a7aaf3bb4200a9f6b
</pre>
</div>
</content>
</entry>
<entry>
<title>nwztools/upgtools: sanitize series name and add keys</title>
<updated>2016-10-31T16:51:18+00:00</updated>
<author>
<name>Amaury Pouly</name>
<email>amaury.pouly@gmail.com</email>
</author>
<published>2016-10-31T16:51:18+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/rockbox/commit/?id=b045e4da34165a878c7acc9a82e76b447fe992a7'/>
<id>b045e4da34165a878c7acc9a82e76b447fe992a7</id>
<content type='text'>
Unify series names: e46x -&gt; e460 to be consistent with Sony' name. Add keys
for various players that were cracked using upgtools. The real KAS would need
to be extracted from a target but at least we can open/create firmware upgrades.

Change-Id: Id23a10e10170d7f6330c6699bf205c4df5ddebfe
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Unify series names: e46x -&gt; e460 to be consistent with Sony' name. Add keys
for various players that were cracked using upgtools. The real KAS would need
to be extracted from a target but at least we can open/create firmware upgrades.

Change-Id: Id23a10e10170d7f6330c6699bf205c4df5ddebfe
</pre>
</div>
</content>
</entry>
<entry>
<title>nwztools/upgtools: rewrite keysig brute force search</title>
<updated>2016-10-27T21:06:16+00:00</updated>
<author>
<name>Amaury Pouly</name>
<email>amaury.pouly@gmail.com</email>
</author>
<published>2016-10-27T21:06:16+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/rockbox/commit/?id=37f95f67fec2b2460903ffa5255b1beeba1731fd'/>
<id>37f95f67fec2b2460903ffa5255b1beeba1731fd</id>
<content type='text'>
The new search has two new features:
- it takes advantage of the fact that DES keys are only 56-bit long (and not 64)
- it is now multithreaded
As a proof of concept, I ran it on the A10 series firmware upgrade and was able
to find the key in a few seconds using 4 threads. The search is still limited
to ascii hex passwords (seems to work on all devices I have tried thus far).

Change-Id: Ied080286d2bbdc493a6ceaecaaadba802b429666
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The new search has two new features:
- it takes advantage of the fact that DES keys are only 56-bit long (and not 64)
- it is now multithreaded
As a proof of concept, I ran it on the A10 series firmware upgrade and was able
to find the key in a few seconds using 4 threads. The search is still limited
to ascii hex passwords (seems to work on all devices I have tried thus far).

Change-Id: Ied080286d2bbdc493a6ceaecaaadba802b429666
</pre>
</div>
</content>
</entry>
<entry>
<title>nwztools: cleanup the code</title>
<updated>2016-08-30T07:21:05+00:00</updated>
<author>
<name>Amaury Pouly</name>
<email>amaury.pouly@gmail.com</email>
</author>
<published>2016-08-30T07:19:30+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/rockbox/commit/?id=cf82f208e3ece54fd38cb7c90b77ad91aa3a4c8c'/>
<id>cf82f208e3ece54fd38cb7c90b77ad91aa3a4c8c</id>
<content type='text'>
There was a lot of copy and paste, and the code was just crap. This commit tries
to clarify the code and also document the encryption procedure. Hopefully I didn't
break anything.

Change-Id: I257793010e7cf94f2b090b30bb8608359d3886e3
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
There was a lot of copy and paste, and the code was just crap. This commit tries
to clarify the code and also document the encryption procedure. Hopefully I didn't
break anything.

Change-Id: I257793010e7cf94f2b090b30bb8608359d3886e3
</pre>
</div>
</content>
</entry>
<entry>
<title>upgtools: add NWZ-E45x Series key and signature</title>
<updated>2016-08-30T07:21:05+00:00</updated>
<author>
<name>Amaury Pouly</name>
<email>amaury.pouly@gmail.com</email>
</author>
<published>2016-08-20T14:05:58+00:00</published>
<link rel='alternate' type='text/html' href='https://www.franklinwei.com/cgit/rockbox/commit/?id=de8950d63da5ce199a94e3f094a7e13da3eeca6c'/>
<id>de8950d63da5ce199a94e3f094a7e13da3eeca6c</id>
<content type='text'>
Also fix a typo in the script makefile

Change-Id: Ie747d8b99ca0f6a98bbcaf1c82e66c7788f00e6e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Also fix a typo in the script makefile

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