(self, send_func, table, enable_secure_aggregate=True)
Secure aggregate tables.

        Degree is useless, exist for extension.
Secure aggregate tables.
Secure aggregate tables .
def secure_aggregate_table(self, send_func, table, enable_secure_aggregate=True):
        """
        Secure aggregate tables.

        Degree is useless, exist for extension.
        """
        LOGGER.debug(f"In secure aggregate, enable_secure_aggregate: {enable_secure_aggregate}")
        if enable_secure_aggregate:
            table = self._random_padding_cipher.encrypt_table(table)
            LOGGER.debug("Finish add random numbers")

        send_func(table)
def secure_aggregate_table ( self , send_func , table , enable_secure_aggregate = True ) : LOGGER . debug ( f"In secure aggregate, enable_secure_aggregate: {enable_secure_aggregate}" ) if enable_secure_aggregate : table = self . _random_padding_cipher . encrypt_table ( table ) LOGGER . debug ( "Finish add random numbers" ) send_func ( table )