(self, ciphertable, mode)
Process the input Table as (k, v)
        (k, dec_k) for mode == 0
        (dec_k, -1) for mode == 1
        (dec_k, v) for mode == 2
        (k, (dec_k, v)) for mode == 3
        :param ciphertable: Table
        :param mode: int
        :return: Table
Process the input Table as (k, v)
        (k, dec_k) for mode == 0
        (dec_k, -1) for mode == 1
        (dec_k, v) for mode == 2
        (k, (dec_k, v)) for mode == 3
        :param ciphertable: Table
        :param mode: int
        :return: Table
Process the input Table as ( k v ) ( k dec_k ) for mode == 0 ( dec_k - 1 ) for mode == 1 ( dec_k v ) for mode == 2 ( k ( dec_k v )) for mode == 3 : param ciphertable : Table : param mode : int : return : Table
def map_decrypt(self, ciphertable, mode):
        """
        Process the input Table as (k, v)
        (k, dec_k) for mode == 0
        (dec_k, -1) for mode == 1
        (dec_k, v) for mode == 2
        (k, (dec_k, v)) for mode == 3
        :param ciphertable: Table
        :param mode: int
        :return: Table
        """
        if mode == 0:
            return ciphertable.map(lambda k, v: (k, self.cipher_core.decrypt(k)))
        elif mode == 1:
            return ciphertable.map(lambda k, v: (self.cipher_core.decrypt(k), -1))
        elif mode == 2:
            return ciphertable.map(lambda k, v: (self.cipher_core.decrypt(k), v))
        elif mode == 3:
            return ciphertable.map(lambda k, v: (k, (self.cipher_core.decrypt(k), v)))
        elif mode == 4:
            return ciphertable.map(lambda k, v: (self.cipher_core.decrypt(k), v))
        elif mode == 5:
            return ciphertable.map(lambda k, v: (self.cipher_core.decrypt(k), v))
        else:
            raise ValueError("Unsupported mode for crypto_executor map decryption")
def map_decrypt ( self , ciphertable , mode ) : if mode == 0 : return ciphertable . map ( lambda k , v : ( k , self . cipher_core . decrypt ( k ) ) ) elif mode == 1 : return ciphertable . map ( lambda k , v : ( self . cipher_core . decrypt ( k ) , - 1 ) ) elif mode == 2 : return ciphertable . map ( lambda k , v : ( self . cipher_core . decrypt ( k ) , v ) ) elif mode == 3 : return ciphertable . map ( lambda k , v : ( k , ( self . cipher_core . decrypt ( k ) , v ) ) ) elif mode == 4 : return ciphertable . map ( lambda k , v : ( self . cipher_core . decrypt ( k ) , v ) ) elif mode == 5 : return ciphertable . map ( lambda k , v : ( self . cipher_core . decrypt ( k ) , v ) ) else : raise ValueError ( "Unsupported mode for crypto_executor map decryption" )