In line with the safety goals, this PR ensures that CompressedRistretto equality testing is always done in constant time.
Previous work in #229 implemented ConstantTimeEq for CompressedRistretto, but this is not used for Eq equality testing. It's already the case that RistrettoPoint and Scalar perform all equality testing in constant time; this PR unifies this behavior for compressed points as well.
Note that dalek-cryptography/subtle#131 would also supply a marker trait that could be useful here to signal this "all equality is constant time" behavior.
In line with the safety goals, this PR ensures that
CompressedRistretto
equality testing is always done in constant time.Previous work in #229 implemented
ConstantTimeEq
forCompressedRistretto
, but this is not used forEq
equality testing. It's already the case thatRistrettoPoint
andScalar
perform all equality testing in constant time; this PR unifies this behavior for compressed points as well.