kyoohyunghan / fullrns-heaan Goto Github PK
View Code? Open in Web Editor NEWThis is code for homomorphic encryption scheme "a Full RNS variant of HEAAN"
License: Other
This is code for homomorphic encryption scheme "a Full RNS variant of HEAAN"
License: Other
About security level of ciphertexts in HEAAN (or any FHE scheme for that matter)
If we see sagemathcell implementation of tester for checking security levels for given paramters, as we increase logq for same n value, it says security level also increases. is this true??
If so why not just set n to 1024 and increase only logq to meet different application requirements, i.e. higher multiplicative depth??
Hello,
I've found some cases in which the homomorphic multiplication seems to fail. In particular, I got this MWE that tries to compute -22.5 * -22.5:
long logN = 7;
long L = 2;
long logp = 45;
long logSlots = 1;
long K = L + 1;
Context context(logN, logp, L, K);
SecretKey secretKey(context);
Scheme scheme(secretKey, context);
srand(0);
complex<double> mvec1 = {-22.5,0};
complex<double> mvec2 = {-22.5,0};
complex<double> mvecMult;
mvecMult = mvec1 * mvec2;
Ciphertext cipher1 = scheme.encryptSingle(mvec1, L);
Ciphertext cipher2 = scheme.encryptSingle(mvec2, L);
Ciphertext multCipher = scheme.mult(cipher1, cipher2);
scheme.reScaleByAndEqual(multCipher, 1);
complex<double>* dvecMult = scheme.decrypt(secretKey, multCipher);
std::cout << "Expected: " << (mvec1 * mvec2) << std::endl;
std::cout << "Output: " << *dvecMult << std::endl;
This is the output I get:
Expected: (506.25,-0)
Output: (-18073.4,-30416)
Still, it works for 22.5 * 22.5.
Any ideas about what is happening here?
Do you have plans to increase the code of the bootstrapping part?
According to your article "A Full RNS Variant of Approximate Homomorphic Encryption", the Vector qVec should have L + 1 elements. However, it seems like that the size of qVec may be L or L + 1 as shown in the code. I wonder if there is something wrong?
Lines 39 to 66 in 515f641
I am sorry to trouble you.
When i use FullRNS-HEAAN to do a negative number multiplication, the answer is wrong.
Can FullRNS-HEAAN do negative number multiplication?(negative number addition is right)
Thanks a million.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.