ExtendedObliviousTransfer
Models & Types · AiDotNet.FederatedLearning.MPC
Implements OT extension — amortizes a small number of base OTs into many cheap OTs.
Implements: IObliviousTransfer
For Beginners
Base oblivious transfer uses expensive public-key cryptography. OT extension lets you perform a small number of base OTs (e.g., 128) and then “extend” them into millions of OTs using only symmetric crypto (hashing). This makes garbled circuit evaluation practical.
How It Works
How it works (simplified):
Reference: IKNP OT Extension (Ishai, Kilian, Nissim, Petrank, CRYPTO 2003).
Constructors
| Constructor | Summary |
|---|---|
ExtendedObliviousTransfer(IObliviousTransfer baseOt, int securityParameter) |
Initializes a new instance of ExtendedObliviousTransfer. |
Properties
| Property | Summary |
|---|---|
int BaseTransferCount { get; } |
Methods
| Method | Summary |
|---|---|
byte[] Transfer(byte[] message0, byte[] message1, int choiceBit) |
|
byte[][] BatchTransfer(byte[][] messages0, byte[][] messages1, int[] choiceBits) |
|
void Initialize() |
Initializes the OT extension by running the base OTs. |