Comments (5)
Thanks @moidx for creating the issue, I have started working on this.
from ot-sca.
I have been thinking more about this. Whatever I do, the correlations (formula at the bottome of Page 10) are close to 1. For example the plot below shows the correlation of Byte 0 and 1, 0 and 2, 0 and 3 over the full range of deltas:
This tells us that the average traces m_alpha_j
(middle formula on Page 10) are too similar. Due to the parallel 16 S-Boxes we probably just get too much noise. On Page 13 (Attack on parallel architectures/influence of noise), the paper says that in parallel implementations, the focus should be on the same S-Box instantiation. For example, with 4 S-Boxes, Byte 0 and Byte 4 should be compared (Appendix B). The paper also says that in fully parallel architectures like ours, the effectiveness much depends on the similarity of S-Boxes. I am not sure what exactly is done in the framework you have access to @moidx and @alphan . Maybe they do a different comparison across rounds.
What we could try out is to modify the capture: Say we first focus on Byte 0 and Byte 1 only and fix the other 14 plaintext bytes. My expectation is to get more variation in the correlations as 14 out of 16 S-Boxes always see the same plaintext. WDYT?
from ot-sca.
Hi Pirmin, afaik, the tool we use references the same paper. We will spend some time tomorrow recreating the attack with the traces you uploaded and report back results.
Are the correlation plots above for the masked implementation?
from ot-sca.
Update: I've managed to get it working. I needed to perform the attack on the output and to normalize the correlations. The correlation plot now looks more reasonable:
PR #18 is updated accordingly.
from ot-sca.
I am closing this issue as the corresponding PR has been merged already a while ago.
from ot-sca.
Related Issues (20)
- [scope] Fix WaveRunner sampling rate configuration
- Fix path imports
- [uJSON] Delay between commands
- [uJSON] Single uJSON binary
- [ci] Extend CW305 CI tests
- Port CECA script to new Trace DB
- [capture] CW databases broken HOT 4
- [capture] Re-add range / saturation checks for Husky HOT 2
- [capture] Auto-compute number of segments for Husky
- [tvla] aes-specific plotting function broken
- [capture] AES masking off feature is not working properly
- [ci] SHA3 captures seem to be broken/flaky in CI HOT 2
- [tvla] Loading `ttest_step_file` for replotting figures is broken
- [ci] Add more TVLA tests HOT 1
- [db] Trace DB performance improvement
- [scope] CW-Husky USB blocked after power-up HOT 2
- Streamline TODO comments
- Use earlgrey_es_sival opentitan branch
- Print plot crashes when printing single trace
- Generating English Breakfast Binaries for CW305 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ot-sca.