Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement correlation on GPU #35

Open
1 of 2 tasks
J08nY opened this issue Apr 24, 2023 · 0 comments · Fixed by #42
Open
1 of 2 tasks

Implement correlation on GPU #35

J08nY opened this issue Apr 24, 2023 · 0 comments · Fixed by #42
Labels
enhancement New feature or request

Comments

@J08nY
Copy link
Owner

J08nY commented Apr 24, 2023

Two things are meant under this, (Pearson's) correlation coefficient computation for CPA and cross-correlation computation for alignment and other uses. These are two quite different algorithms, grouped here because both are interesting and use the word "correlation".

TODO

  • Pearson's correlation coefficient
  • Cross-correlation

Pearson's correlation coefficient

For CPA: https://www.iacr.org/archive/ches2004/31560016/31560016.pdf
where it is used to compute (samplewise) correlation coefficient between hypothesized leakage values and power leakage.

Implemented on GPU here: https://arxiv.org/abs/1412.7682
also here: https://link.springer.com/chapter/10.1007/978-3-642-27257-8_16
also here: https://dl.acm.org/doi/10.1145/2611765.2611775
also here: https://www.semanticscholar.org/paper/Improving-DPA-analysis-with-distributed-computing-Amaral-Inesc-Id/43c150d1dd42a2327e302202784d2b685347e7a4
CPU work here: https://crypto.fit.cvut.cz/sites/default/files/publications/fulltexts/pearson.pdf
Some interesting work: https://informatik.rub.de/wp-content/uploads/2021/11/MA_Klostermann.pdf

More resources:

Cross-correlation

For alignment you take a reference trace and cross-correlate every trace from the trace set with it, then find the peak
value of the result and use that as a shift to align the trace.

@J08nY J08nY added the enhancement New feature or request label Apr 24, 2023
@J08nY J08nY linked a pull request Sep 30, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

Successfully merging a pull request may close this issue.

1 participant