-
Notifications
You must be signed in to change notification settings - Fork 709
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question about the parameters #367
Comments
This is the code, almost is the example code.
|
In SEAL you set only the
The similar concept to "bits" is the total bit count of
No,
In SEAL users don't need to manage polynomials, instead, only create
Yes, in examples. For instance, here. |
Current SEAL's implementation is very different from HElib. |
Hi, team! @WeiDaiWD
I'm trying to move to SEAL (the previous used is HElib). I have some questions about select parameters to create context and keys.
First, I want to do some performance tests between SEAL and HElib, but something is wrong with the params (not that similar to HElib).
I was going to generate a 256-slot vector for batch encoding, encrypt and decrypt, but
size_t poly_modulus_degree = 256;
shows it's an invalid argument.Then, I change to 1024., but the decrypted result is wrong.
Basically, my questions:
slot_count = 256
in SEAL, less than 1024? Since in HElib, I need to findm,p,r
like:Params param(/*m=*/12800, /*p=*/127, /*r=*/1, /*bits=*/119, /*c=*/2); \\ slot=256
bits
is set to control the mul depth. In SEAL, How should I do? In my case, I will do matrix multiplication, the matrix elements are0/1
, so the plaintext_moduls could be a small value (in HElib, it's/*p=*/127
). For the matrix multiplication, the number of multiplication is at most 1 or 2.For example, some encode operations between vector and polynomial.
in HElib:
in HEAAN:
secret-key mode
work in the same way as thepublic-key mode
. In my case, I actually don't need the public key. The general workflow is: encrypt the matrix; multiplications and rotations; decrypt the result in another trusted party (who will also hold the secret key). Is there any sample code to introduce thesecret-key mode
?Sry for so many questions. Sry for my noise.
The text was updated successfully, but these errors were encountered: