Attempt to make padding checks constant time.

Add tests for padding, more handshake wire capture tests.