
org.factcenter.fastgc.OT.Receiver Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of inchworm Show documentation
Show all versions of inchworm Show documentation
Secure computation, one step at a time.
The newest version!
// Copyright (C) 2010 by Yan Huang
package org.factcenter.fastgc.OT;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.math.BigInteger;
public abstract class Receiver {
protected BigInteger choices;
protected int numOfChoices;
protected ObjectInputStream ois;
protected ObjectOutputStream oos;
protected BigInteger[] data = null;
public Receiver(int numOfChoices, ObjectInputStream in, ObjectOutputStream out) {
this.numOfChoices = numOfChoices;
ois = in;
oos = out;
}
public void execProtocol(BigInteger choices) throws IOException {
this.choices = choices;
}
public BigInteger[] getData() {
return data;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy