The length is not the secret: why constant-time equals returns early
A constant-time comparison is supposed to contain no branch that depends on its input. The span form of ctsafe::equals opens with exactly one: if the two sizes differ, it returns false before a single byte gets read. That looks like a hole in the discipline, and it isn't one.