Do padding properly as per RFC 4303