virtualsecureplatform / tfhepp Goto Github PK
View Code? Open in Web Editor NEWPure C++ Ver. of TFHE.
License: Apache License 2.0
Pure C++ Ver. of TFHE.
License: Apache License 2.0
Hello,
I'm trying to run the tutorial test but the error occurred. (the picture below shows the problem)
Does anyone know the reason for the different parameter call?
To my knowledge, lvl0param is for the LWE ciphertext and lvl1param is for the RLWE. (TBC)
Besides, it seems that the Yao's Millionaires' problem in the "tutorial" is solved in gate level, so we need the gate bootstrapping like HomXOR, HomAND...
So, I'm wondering why the params declared in tlwe.hpp(gate.hpp) is lvl1param rather than lvl0param?
To fix this error, I had tried either change the related files to lvl0param or to lvl1param to make sure the dimension are same. However, the original error would fix but result in another issue.
Thanks for the reading and hope I can learn from anyone of you!
Hello! I'm Darren from Singapore, and I'm doing a research paper on FHE using the Nvidia GPU via cuda. I'm wondering what these sets of error mean when I'm making a CUDA object. I've cloned the repository here at cuFHE, which was initally forked from this repository. I've made sure that the files in include was succesfully copied to /usr/include, and all packages were updated and properly installed. Any help will be greatly appreciated :)
日本語で書きます、失礼します。
一つ質問させてください。
test/externalproduct.cpp
等でexternalproduct を行う時、
あえてゼロの暗号文でマスクをせず、平文をそのまま掛け算しようとしています。
template <class P>
TRGSW<P> trgswSymEncrypt(const Polynomial<P> &p, const double alpha,
const Key<P> &key)
{
constexpr std::array<typename P::T, P::l> h = hgen<P>();
TRGSW<P> trgsw;
for (TRLWE<P> &trlwe : trgsw) trlwe = trlweSymEncryptZero<P>(alpha, key); <=== ここをコメントアウト
for (int i = 0; i < P::l; i++) {
for (int j = 0; j < P::n; j++) {
trgsw[i][0][j] += static_cast<typename P::T>(p[j]) * h[i]; <=== ここを += から = に変更
trgsw[i + P::l][1][j] += static_cast<typename P::T>(p[j]) * h[i]; <=== ここを += から = に変更
}
}
return trgsw;
}
として、平文を基数展開したものをFakeの(平文の)GSWとして、
externalproduct を test/externalproduct.cpp と同じ要領で掛け算し、
結果のtrlweを復号しようとすると、思った値と異なる値が出ているのですが、
なにか間違ったことをしているでしょうか、、?
結果のリプロデュースは
https://github.com/kenmaro3/TFHEpp/tree/mult-const
ここで ./tutorial/mytest8
で可能です。
もし可能でしたらご回答いただけると嬉しいです!
I have evaluated TFHEpp without AVX2, using the spqlios++ branch. I expect it will slow. But from my experiment, the gate bootstrapping time (gatebootstrapping.cpp) in the spqlios++ branch is nearly the same as the release version 6, using the lvl0param LWE ciphertext. I wonder why TFHEpp with AVX2 or without AVX2 performs the same performance in gate bootstrapping? Am I missing something? Could you please confirm that the spqlios++ branch does not use AVX2 acceleration? Thanks.
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.