[monero-project/monero] add and use constant time 32 byte equality function (#3999)

Oddly, it looks like while it’s way slower than memcmp, the timings for both different and equal are pretty similar for both.
You can view, comment on, or merge this pull request online at:

https://github.com/monero-project/monero/pull/3999

— Commit Summary —

* add and use constant time 32 byte equality function

— File Changes —

M src/crypto/CMakeLists.txt (6)
M src/crypto/generic-ops.h (9)
A src/crypto/verify.c (44)
A src/crypto/verify.h (6)
M src/device/device_ledger.cpp (2)
M src/ringct/rctTypes.h (15)
A tests/performance_tests/equality.h (72)
M tests/performance_tests/main.cpp (6)
M tests/unit_tests/crypto.cpp (15)

— Patch Links —

https://github.com/monero-project/monero/pull/3999.patch
https://github.com/monero-project/monero/pull/3999.diff

This post was last modified on June 13, 2018, 7:31 pm