def METHOD_NAME(self, cleardata):
    """
    Encrypt the given data.
    Encrypts the given data and returns the encrypted
    data and the MAC to later verify and decrypt the data.
    :param cleardata: data to encrypt
    :type cleardata: bytes
    :returns: 2-tuple of encrypted data and MAC
    """
    assert isinstance(cleardata, bytes)  # nosec
    return self.kernel.encrypt_and_digest(cleardata)