(self, ciphertext)
return self.crt(mp, mq)
return raw plaintext.
return raw plaintext.
return raw plaintext .
def raw_decrypt(self, ciphertext):
        """return raw plaintext.
        """
        if not isinstance(ciphertext, int):
            raise TypeError("ciphertext should be an int, not: %s" %
                            type(ciphertext))

        mp = self.l_func(gmpy_math.powmod(ciphertext,
                                          self.p - 1, self.psquare),
                         self.p) * self.hp % self.p

        mq = self.l_func(gmpy_math.powmod(ciphertext,
                                          self.q - 1, self.qsquare),
                         self.q) * self.hq % self.q

        return self.crt(mp, mq)
def raw_decrypt ( self , ciphertext ) : if not isinstance ( ciphertext , int ) : raise TypeError ( "ciphertext should be an int, not: %s" % type ( ciphertext ) ) mp = self . l_func ( gmpy_math . powmod ( ciphertext , self . p - 1 , self . psquare ) , self . p ) * self . hp % self . p mq = self . l_func ( gmpy_math . powmod ( ciphertext , self . q - 1 , self . qsquare ) , self . q ) * self . hq % self . q return self . crt ( mp , mq )