def raw_decrypt(self, ciphertext):
        """Decrypt raw ciphertext and return raw plaintext.

        Args:
          ciphertext (int): (usually from :meth:`EncryptedNumber.ciphertext()`)
            that is to be Paillier decrypted.

        Returns:
          int: Paillier decryption of ciphertext. This is a positive
          integer < :attr:`public_key.n`.

        Raises:
          TypeError: if ciphertext is not an int.
        """
        if not isinstance(ciphertext, int):
            raise TypeError('Expected ciphertext to be an int, not: %s' %
                type(ciphertext))

        decrypt_to_p = self.l_function(powmod(ciphertext, self.p-1, self.psquare), self.p) * self.hp % self.p
        decrypt_to_q = self.l_function(powmod(ciphertext, self.q-1, self.qsquare), self.q) * self.hq % self.q
        return self.crt(decrypt_to_p, decrypt_to_q)
def raw_decrypt ( self , ciphertext ) : if not isinstance ( ciphertext , int ) : raise TypeError ( 'Expected ciphertext to be an int, not: %s' % type ( ciphertext ) ) decrypt_to_p = self . l_function ( powmod ( ciphertext , self . p - 1 , self . psquare ) , self . p ) * self . hp % self . p decrypt_to_q = self . l_function ( powmod ( ciphertext , self . q - 1 , self . qsquare ) , self . q ) * self . hq % self . q return self . crt ( decrypt_to_p , decrypt_to_q )
Decrypt raw ciphertext and return raw plaintext.

        Args:
          ciphertext (int): (usually from :meth:`EncryptedNumber.ciphertext()`)
            that is to be Paillier decrypted.

        Returns:
          int: Paillier decryption of ciphertext. This is a positive
          integer < :attr:`public_key.n`.

        Raises:
          TypeError: if ciphertext is not an int.