tls: Check all bytes of the padding if they equal the padding length