Expand description
Oblivious Transfer (OT).
1-out-of-2 OT: the sender has two messages (m0, m1), the receiver gets exactly one (m_b) without the sender learning which, and the receiver doesn’t learn the other message.
Based on the Bellare-Micali protocol using P-256.
Structs§
- OtChoice
- Receiver’s choice message.
- OtEncrypted
- Sender’s encrypted messages.
- OtReceiver
- Receiver’s output for choice bit b.
- OtSetup
- Sender’s setup message.
Functions§
- receiver_
choose - Phase 2: Receiver chooses bit b and generates choice message.
- receiver_
decrypt - Phase 4: Receiver decrypts the chosen message.
- sender_
encrypt - Phase 3: Sender encrypts both messages.
- sender_
setup - Phase 1: Sender initiates with a random point.