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

coneiric 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));

@moneromooo-monero I can’t find an overload of `crypto_verify_32` that takes three parameters. Am I missing/misunderstanding something?

This post was last modified on June 13, 2018, 8:16 pm