Questions tagged [paillier]

For questions relating to Paillier public key crypto systems.

11 questions
2
votes
2 answers

Is there a schema to store this object with typeof, Integer { value: 340895965n } in mongoose with node.js

I'm very new to nodejs. For a while I've been working with paillier-js module which returns a object typeof() of this nature: Integer { value: 340895965n }. Is there a schema that can allow for appropriate storage of this Object with mongoose.…
1
vote
0 answers

XGBoost's precision and recall

I'm working on SecureXGBoost by applying pailliar encryption on XGBoost. At the same time, before SecureXGBoost, I'm worked on SecureSVM and I calcute precision and recall. The goal of this study is privacy-preserving XGBoost training…
Mohammad
  • 26
  • 5
1
vote
0 answers

Print the values of torch tensor in created by pysyft paillier encryption

I am trying to get the actual encrypted values from the encrypted tensor. How can I get the values, it prints the object.
bimal karki
  • 411
  • 1
  • 4
  • 4
1
vote
1 answer

OverflowError: Python int too large to convert to C long when feed data into numpy array

I am trying to feed large number after encryption into a numpy array, but it says the number is too long and it gets overflow. I checked the code, everything is correct before I feed the numbers into the numpy array, but it got an error at the step…
HEYANG LIU
  • 13
  • 1
  • 3
1
vote
1 answer

paillier image encryption in python

I have tried to encrypt an image using paillier. But I can't decrypt it. Please help me to findout. from phe import paillier from PIL import Image import cv2 import PIL import numpy openfilename = "greyscale.png" img2 =…
0
votes
0 answers

BigInteger pow function not being calculated in Paillier Encryption

Here is my Paillier class: public class Paillier { private static BigInteger Nv; private static BigInteger Nc; private static BigInteger b; private static BigInteger p; private static BigInteger q; private static BigInteger…
0
votes
0 answers

Is there an implementation for pailliers algorithm for encrypton over string

I have a database which consists of strings as well as numbers, I have to use homeomorphic scheme to encrypt fields. I am using Pailliers algorithm for the purpose, but I just find it for numbers or plain text as number, but not for any string. Can…
Gopi Shankar
  • 67
  • 1
  • 10
0
votes
1 answer

Can pailler cryptosystem encrypt and decrypt negative big integers?

I use paillier cryptosystem to encrypt and decrypt random data which at first are in the form of byte arrays and then i transform them to big integers and if the byte array become a negative big integer the decrypted number and the input number are…
LPepe
  • 3
  • 1
0
votes
0 answers

Can't encrypt/decrypt big data array with pailler cryptosystem with java

I have a project to test various algorithms about their running time for big byte arrays (>10MB) and i can't find a way to encrypt/decrypt those data with the paillier algorithm. This is my code which obviously doesn't work for data bigger than the…
LPepe
  • 3
  • 1
-1
votes
1 answer

How to call the functions of paillier library

I want to call the functions of paillier library (http://acsc.cs.utexas.edu/) in C++ environment. I found out the helpful site (Typedef function with void * pointer) and followed the comment answered Feb 10 '15 at 12:40 from Niemand. But, my code…
user2642459
  • 507
  • 3
  • 10
  • 18
-1
votes
1 answer

Error in testing Paillier library: (.text+0x72): undefined reference to

I am trying to use this Paillier libray http://acsc.cs.utexas.edu/libpaillier/ , it will be just a part of some UDF that i m trying to make for Mysql server This a part from my Rakefile: task :compile do puts 'Compiling the encryption /…
Bochra
  • 13
  • 6