Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 953 Bytes

README.md

File metadata and controls

35 lines (25 loc) · 953 Bytes

simplest-ot

Implementation of Chou-Orlandi Oblivious Transfer (OT) protocol

Work in progress

A n-out-of-1 OT protocol practical implementation in Rust, as thin as possible. The implementation is a work in progress and incomplete, not to be used in production environments. The sole purpose is to learn how to use Rust crypto libraries.

Quickstart

This command will run an example:

cargo run

The example reads example_input.txt and creates a sender and receiver. Receiver is expected to only succeed in decrypting one message, while the rest are "Impossible to decrypt".

Initiating protocol
n: 2
Receiver choosing a random index
Receiver decypting
Success [111, 110, 101]
Impossible to decrypt

References

OT protocol article:

Another implemenration of the Simplest OT is here: