All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.factcenter.fastgc.OT.Receiver Maven / Gradle / Ivy

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