Skip to main content

Crate fancy_garbling

Crate fancy_garbling 

Source
Expand description

fancy-garbling provides boolean and arithmetic garbling capabilities.

Modules§

classic
Provides objects and functions for statically garbling and evaluating a circuit without streaming.
util
Tools useful for interacting with fancy-garbling.

Structs§

Evaluator
Streaming evaluator using a callback to receive ciphertexts as needed.
Garbler
Streams garbled circuit ciphertexts through a callback.
WireMod2
Representation of a mod-2 wire.
WireMod3
Representation of a mod-3 wire.
WireModQ
Representation of a mod-q wire.

Enums§

AllWire
A WireLabel that supports all possible moduli

Traits§

ArithmeticWire
A marker trait indicating that the given WireLabel instantiation supports arithmetic operations.
BinaryWireLabel
The BinaryWireLabel provides the subroutines to implement AND gates for the garbler and evaluator in [fancy_traits::FancyBinary].
WireLabel
A trait that defines a wirelabel as used in garbled circuits.

Functions§

hash_wires
Hash a batch of wires, using the same tweak for each wire.