As of August 2020 the site you are on (wiki.newae.com) is deprecated, and content is now at rtfm.newae.com.

Changes

Jump to: navigation, search

Tutorial B3-1 Timing Analysis with Power for Password Bypass

253 bytes removed, 03:35, 23 September 2017
no edit summary
Note this is not a prerequisite to the tutorial on breaking AES. You can skip this tutorial if you wish to go ahead with the AES tutorial.
You can also view If you want to get a 53-min rough idea, there is a video of the V3 of the tutorial (which differs from the V4 version). See [https://www.youtube.com/watch?v=h4eAU6vEONs&hd=1 Video Version on YouTube]:
= Prerequisites =
<ol style="list-style-type: decimal;">
<li> We're going to use the ''Reset AVR/XMEGA via CW-Lite'' auxiliary module. Let's get an idea of how this module works:
* Navigate to the auxiliary modules folder (<code>chipwhisperer\software\chipwhisperer\capture\auxiliary\</code>) and open <code>ResetCW1183Read.py</code> in your choice of text editor.
* Find the function definition for <code>resetDevice()</code>. It contains a line that looks like:
</pre>
<p>Those parameters come from the API. You can print for example the scope parameters by running "self.scope" to see various elements:</p><p><pre>
>>> self.scope
cwlite Device
repeat = 1
output = clock_xor
</pre></p></li>
</ol>
<ol start="4" style="list-style-type: decimal;">
<li>Once again on the ''Target Settings'' tab, delete the various commands. Make a note of the resulting ''Script Commands'' which you will need to enter to achieve this same goal. Close ChipWhisperer-Capture.</li><li><p>Continue editing your script. First, find the line setting the Trigger Offset:</p><pre>['OpenADC', 'Trigger Setup', 'Offset', 1500],</pre><p>And set this to 0, which we were using previously:</p><pre>['OpenADC', 'Trigger Setup', 'Offset', 0],</pre></li><li><p>Next, append the required commands to clear the simpleserial commands and to enable the automatic resets. Doing so will require two steps:(1) figuring out the target settings and adjusting them, and (2) inserting our code to perform the device reset.</p>
<pre>#Example of using a list to set parameters. Slightly easier to copy/paste in this format
lstexample = [['CW Extra', 'CW Extra Settings', 'Trigger Pins', 'Target IO4 (Trigger Line)', True],
Approved_users, bureaucrat, administrator
1,956
edits

Navigation menu