If you return before when the length is not equal, you leak it, so that's not constant time.