snucrypto / HEAAN

Other
353 stars 94 forks source link

What is the function of the parameter slots? #19

Open Ldisi opened 5 years ago

Ldisi commented 5 years ago

Is the bit length of the ciphertext? If you increase the slots, does it mean that you can perform more homomorphic operations?THX for your reply!

fionser commented 5 years ago

HEAAN (and other many RLWE homomorphic encryption) uses a batching technique to encrypt a batch of values (e.g. integer or real numbers) into a single ciphertext. So the "slots" denotes the number of values to be encrypted at once, and (basically) there is no connection between the slots and the number of operations you can perform.