sachaservan / bgn Goto Github PK
View Code? Open in Web Editor NEWBGN encryption scheme implementation using Go
BGN encryption scheme implementation using Go
Could you kindly direct me as to how to mimic the functionality of multiplicative inverse of a point(say g^m.h^r) in BGN ?
[like you defined, polymult, polyadd, polysub, how about polydiv (mult poly with mult inverse) ]
Hi there, is there any way I could use your repo as import in my file in golang ?
Is there a wrapper available ?
Hi, I would like to use your code. What kind of LICENSE is your code?
Thank you.
Dear Sacha,
I notice that in the main function, there is a test that a ciphertext after multiplication can also be multiplied by a plaintext (similar to the Paillier cryptosystem), i.e.,
const1 := big.NewFloat(88.0)
r2 := pk.EMultC(c2, const1)
fmt.Printf("EMULTC E(%s) โ %f = E(%s)\n\n", m2, const1, sk.Decrypt(r2, pk).String())
r3 := pk.EMult(c3, c4)
dr3 := sk.Decrypt(r3, pk)
fmt.Printf("EMULT E(%s) โ E(%s) = E(%s)\n\n", m3, m4, sk.Decrypt(r3, pk).String())
So, does it mean that BGN can support arbitrary times of addition and partial multiplication (with plaintexts), as well as one multiplication between ciphertexts? I didn't see the original BGN paper claim the partial multiplication functionalities.
Thanks and best regards,
Yuncheng
Could you suggest how to add a constant to a polyCiphertext ?
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.