Commit Graph

13 Commits

Author SHA1 Message Date
Bourgerie Quentin
eba61f20cd chore(compiler): Update security curves
security estimated using the MATZOV cost model in the lattice estimator
 commit: 60808bdc17f99b78bd1bbcd621af04bc6f0e98bb
 (see "Report on the Security of LWE: Improved Dual Lattice Attack", April 2022)
2024-06-18 16:00:02 +02:00
Miles
5d68424531 fix typos 2024-04-11 14:50:16 +02:00
Benoit Chevallier-Mames
e37a840e7e docs(compiler): adding API doc 2024-03-13 17:10:00 +01:00
Alexandre Péré
9b5a2e46da feat(compiler): support multi-circuit compilation 2024-03-01 15:35:52 +01:00
Alexandre Péré
bfcab026a6 chore(compiler): fix capnp build step requiring network 2023-12-12 09:59:17 +01:00
Alexandre Péré
e8ef48ffd8 feat(compiler): introduce concrete-protocol
This commit:
 + Adds support for a protocol which enables inter-op between concrete,
   tfhe-rs and potentially other contributors to the fhe ecosystem.
 + Gets rid of hand-made serialization in the compiler, and
   client/server libs.
 + Refactors client/server libs to allow more pre/post processing of
   circuit inputs/outputs.

The protocol is supported by a definition in the shape of a capnp file,
which defines different types of objects among which:
 + ProgramInfo object, which is a precise description of a set of fhe
   circuit coming from the same compilation (understand function type
   information), and the associated key set.
 + *Key objects, which represent secret/public keys used to
   encrypt/execute fhe circuits.
 + Value object, which represent values that can be transferred between
   client and server to support calls to fhe circuits.

The hand-rolled serialization that was previously used is completely
dropped in favor of capnp in the whole codebase.

The client/server libs, are refactored to introduce a modular design for
pre-post processing. Reading the ProgramInfo file associated with a
compilation, the client and server libs assemble a pipeline of
transformers (functions) for pre and post processing of values coming in
and out of a circuit. This design properly decouples various aspects of
the processing, and allows these capabilities to be safely extended.

In practice this commit includes the following:
 + Defines the specification in a concreteprotocol package
 + Integrate the compilation of this package as a compiler dependency
   via cmake
 + Modify the compiler to use the Encodings objects defined in the
   protocol
 + Modify the compiler to emit ProgramInfo files as compilation
   artifact, and gets rid of the bloated ClientParameters.
 + Introduces a new Common library containing the functionalities shared
   between the compiler and the client/server libs.
 + Introduces a functional pre-post processing pipeline to this common
   library
 + Modify the client/server libs to support loading ProgramInfo objects,
   and calling circuits using Value messages.
 + Drops support of JIT.
 + Drops support of C-api.
 + Drops support of Rust bindings.

Co-authored-by: Nikita Frolov <nf@mkmks.org>
2023-11-09 17:09:04 +01:00
rudy
74c4a7eae5 fix(compiler): check minimal lwe size 2023-09-08 14:26:32 +02:00
youben11
e92a0d9fa8 fix(tools): remove vector init in header
vector init can't be in a header file, and there was a double free due
to its usage in two different locations. We now use simple arrays to
store the list of available security curves
2023-06-27 14:21:42 +01:00
Ben
3862ddc672 chore(tools): update files for parameter curves 2023-05-05 12:39:13 +02:00
Ben
cb19989fe1 chore(tools): remove old files 2023-04-12 12:03:01 +02:00
Quentin Bourgerie
0921918c51 chore: Move lattice-estimator to third_party 2023-03-22 14:22:11 +01:00
Quentin Bourgerie
c4bcaafd57 chore(parameter-curves): Fix linelint 2023-03-21 16:38:30 +01:00
Quentin Bourgerie
8b56607066 chore(parameter-curves): Move to the mono-repo layout 2023-03-21 16:04:20 +01:00