mirror of
https://github.com/monero-project/monero.git
synced 2025-05-04 18:05:03 -04:00
add and use constant time 32 byte equality function
This commit is contained in:
parent
510dbf3329
commit
d2e26c23f3
9 changed files with 130 additions and 14 deletions
|
@ -51,6 +51,7 @@
|
|||
#include "sc_reduce32.h"
|
||||
#include "cn_fast_hash.h"
|
||||
#include "rct_mlsag.h"
|
||||
#include "equality.h"
|
||||
|
||||
namespace po = boost::program_options;
|
||||
|
||||
|
@ -151,6 +152,11 @@ int main(int argc, char** argv)
|
|||
TEST_PERFORMANCE3(filter, test_ringct_mlsag, 1, 10, true);
|
||||
TEST_PERFORMANCE3(filter, test_ringct_mlsag, 1, 100, true);
|
||||
|
||||
TEST_PERFORMANCE2(filter, test_equality, memcmp32, true);
|
||||
TEST_PERFORMANCE2(filter, test_equality, memcmp32, false);
|
||||
TEST_PERFORMANCE2(filter, test_equality, verify32, false);
|
||||
TEST_PERFORMANCE2(filter, test_equality, verify32, false);
|
||||
|
||||
std::cout << "Tests finished. Elapsed time: " << timer.elapsed_ms() / 1000 << " sec" << std::endl;
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue