(self, element, decode_output=False)
MAC a Twisted Edwards Curve element
        If decode_output = True, decode the 256-bit bytes to a TEC element, otherwise output 32byte bytes
        :param element: TwistedEdwardsCurveElement
        :return: -1 or the correct TwistedEdwardsCurveElement if decode_output = True, otherwise 32-byte bytes
MAC a Twisted Edwards Curve element
        If decode_output = True, decode the 256-bit bytes to a TEC element, otherwise output 32byte bytes
        :param element: TwistedEdwardsCurveElement
        :return: -1 or the correct TwistedEdwardsCurveElement if decode_output = True, otherwise 32-byte bytes
MAC a Twisted Edwards Curve element If decode_output = True decode the 256 - bit bytes to a TEC element otherwise output 32byte bytes : param element : TwistedEdwardsCurveElement : return : - 1 or the correct TwistedEdwardsCurveElement if decode_output = True otherwise 32 - byte bytes
def _mac_tec_element(self, element, decode_output=False):
        """
        MAC a Twisted Edwards Curve element
        If decode_output = True, decode the 256-bit bytes to a TEC element, otherwise output 32byte bytes
        :param element: TwistedEdwardsCurveElement
        :return: -1 or the correct TwistedEdwardsCurveElement if decode_output = True, otherwise 32-byte bytes
        """
        element_bytes = self.tec_arithmetic.encode(element)
        if self.mac is None:
            raise ValueError("MAC not initialized")
        element_digest = self.mac.digest(element_bytes)
        if decode_output:
            return self.tec_arithmetic.decode(element_digest)
        else:
            return element_digest
def _mac_tec_element ( self , element , decode_output = False ) : element_bytes = self . tec_arithmetic . encode ( element ) if self . mac is None : raise ValueError ( "MAC not initialized" ) element_digest = self . mac . digest ( element_bytes ) if decode_output : return self . tec_arithmetic . decode ( element_digest ) else : return element_digest