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

moneromooo-monero commented on this pull request.

> @@ -127,7 +127,7 @@ namespace hw {
}

bool operator==(const crypto::key_derivation &d0, const crypto::key_derivation &d1) {
— return !memcmp(&d0, &d1, sizeof(d0));
+ return !crypto_verify_32(&d0, &d1, sizeof(d0));

Probably that this file isn’t a dep of unit tests nor performance tests so didn’t get rebuilt. Fixing.

Добавить комментарий