Documentation

CslibFrontier.Crypto.Computational.Homomorphic.Circuit

NAND-augmented decryption circuits #

Gentry's bootstrappability condition concerns actual circuits obtained by connecting a gate to copies of the decryption circuit [Gen09a], Definition 4. Here augmentNand D runs two copies of D on disjoint input blocks and applies NAND to their outputs. NAND uses one AND gate and one NOT gate in the De Morgan basis.

Main definitions #

Main results #

References #

Connect the outputs of two copies of D, on disjoint input blocks, to a NAND circuit.

@[simp]

The NAND augmentation evaluates D on each input block and takes NAND of the results.

@[simp]

The two copies of D and the two NAND gates account for every gate of the augmentation.