DasIch / gf256

A Python implementation of GF(2 ** 8)
Other
3 stars 0 forks source link

Test for side-channels #3

Open DasIch opened 8 years ago

DasIch commented 8 years ago

The current implementation is implemented to avoid timing and cache based side-channels to the best of my knowledge. Unfortunately there are no tests for this at all.

It would be great to find a way to give some guarantees using automated tests for this.

DasIch commented 8 years ago

We should consider using hardware performance counters for this. They're not accessible on OS X (without turning off SIP and compiling an Intel kernel extension) but Linux has an API (perf_event_open) that could be used.