def h_func(self, x, xsquare):
        """Computes the h-function as defined in Paillier's paper page.
        """
        return gmpy_math.invert(self.l_func(gmpy_math.powmod(self.public_key.g,
                                                                 x - 1, xsquare), x), x)
Computes the h-function as defined in Paillier's paper page.
        
fedlearner/model/crypto/paillier.py