use goroutines to accelerate encryption #433
JohnJimAir
started this conversation in
General
Replies: 1 comment 1 reply
-
The Lattigo API is not concurrency-safe. Consequently, you cannot use the same 'Encryptor' struct in multiple goroutines. Instead, you need to have a separate encryptor per goroutine. Note that you can obtain new encryptors efficiently by using the 'Encryptor.ShallowCopy()' method. Hope this helps |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
`func Encrypt_Parallel(params hefloat.Parameters, encoder *hefloat.Encoder, encryptor *rlwe.Encryptor, values []float64, ) (values_ct []*rlwe.Ciphertext) {
}`
this func is meant to use goroutines to get multiple ciphertexts in parallel, but the result is odd. The ciphertextxs returned are some vary large numbers, where is wrong?
Beta Was this translation helpful? Give feedback.
All reactions