J08nY / pyecsca

Python Elliptic Curve Side-Channel Analysis toolkit.
https://pyecsca.org/
MIT License
56 stars 15 forks source link

Investigate CPA #64

Closed J08nY closed 5 months ago

J08nY commented 5 months ago

This does not seem to be the correct way to compute the correlation trace: https://github.com/J08nY/pyecsca/blob/adaa5cd6a98fc6610226b9f8048e1e41a4050138/pyecsca/sca/attack/CPA.py#L61-L73

Investigate and fix.

J08nY commented 5 months ago

Ah, the traces are transposed beforehand:

https://github.com/J08nY/pyecsca/blob/abc889d4fd8f5c104f3367a788e3c766138b25fd/pyecsca/sca/attack/CPA.py#L40

So it all makes sense.