Make padding check constant-time.