[][src]Crate oblivc

Obliv-C bindings for Rust

Obliv-C is a language for expressing Multi-Party Computation protocols as C-like programs. This wrapper allows to develop Rust programs that call Obliv-C protocols.

If an Obliv-C installation is passed via the OBLIVC_PATH environment variable at build time, that installation is used. Otherwise, Obliv-C is built from source.

A small example using this library can be found here.

Structs

ProtocolDesc

Describes a protocol that can be executed via Obliv-C. Currently, only two-party Yao protocols are supported.

Enums

ConnectionError

Error returned by ProtocolDesc native Obliv-C connection methods.

Functions

bindings

Returns a new bindgen::Builder that includes all headers needed to generate Rust FFI bindings for Obliv-C sources.

compiler

Returns a new cc::Build that uses oblivcc as compiler and includes all headers needed to compile Obliv-C sources.

protocol_desc

Alias for ProtocolDesc::new()

Type Definitions

ProtocolFn