def EncryptInt64(self, plaintext, r_value=None):
    if not isinstance(plaintext, int) and not isinstance(plaintext, long):
      raise ValueError('Expected int or long plaintext but got: %s' %
                       type(plaintext))
    if plaintext < MIN_INT64 or plaintext > MAX_INT64:
      raise ValueError('Int64 values need to be between %d and %d but got %d'
                       % (MIN_INT64, MAX_INT64, plaintext))
    plaintext = self._Extend64bitTo96bitTwosComplement(plaintext)
    return self.Encrypt(plaintext, r_value=r_value)
Paillier encryption of an Int64 plaintext.
dataset/ETHPy150Open google/encrypted-bigquery-client/src/paillier.py/Paillier.EncryptInt64