Provided with the TLSPlaintext.fragment,
        return the TLSCompressed.fragment.

def _tls_compress(self, s):
        """
        Provided with the TLSPlaintext.fragment,
        return the TLSCompressed.fragment.
        """
        alg = self.tls_session.wcs.compression
        return alg.compress(s)