deterministic GenGaloisKeysNew? #397
-
Hi, I'm using this lattigo version, and I wanted to check about this situation a := keygen.GenGaloisKeyNew(e, secretKey)
b := keygen.GenGaloisKeyNew(e, secretKey)
if !a.Equal(b) {
panic("this is unexpected")
} It surprised me that |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This is an expected behavior. All (centralized) public-key generation functions are sampling "fresh" RLWE samples. I.e., they sample fresh public polynomial vector That said, we are aware that this can be a problem, and we are planning to add the possibility of seeding the PRNGs behind our API. |
Beta Was this translation helpful? Give feedback.
This is an expected behavior. All (centralized) public-key generation functions are sampling "fresh" RLWE samples. I.e., they sample fresh public polynomial vector
a
and fresh secret error vectore
at each call, so they output fresh keys(sa + X + e, a)
(forX
a variable that depends on the type of public key). There is currently no easy way to obtain a deterministic generation. The only way would be to re-implement the key-generation algo from thering
package, with seeded samplers.That said, we are aware that this can be a problem, and we are planning to add the possibility of seeding the PRNGs behind our API.