homenc / HElib

HElib is an open-source software library that implements homomorphic encryption. It supports the BGV scheme with bootstrapping and the Approximate Number CKKS scheme. HElib also includes optimizations for efficient homomorphic evaluation, focusing on effective use of ciphertext packing techniques and on the Gentry-Halevi-Smart optimizations.
https://homenc.github.io/HElib
Other
3.11k stars 760 forks source link

Serialize entire context structure #358

Open stkaplan opened 4 years ago

stkaplan commented 4 years ago

Hi, I'm new to using HElib, and have a few questions.

I'm trying to speed up or skip some of the setup operations, like creating the context. I saw the serialization code (buildContextFromBinary, etc.), but that seems to still run all of the initialization for zMStar, alMod, and such, which is what takes all the time. Is it possible to serialize those as well, to end up with a fully-formed context, that is usable right after de-serializing?

faberga commented 3 years ago

@stkaplan Please check the utilities in https://github.com/homenc/HElib/tree/master/utils