public class BundleBuilder extends java.lang.Object
Unlike the Bundle class (that is just a struct that hold data), this class also has functionality that creates the inline members.
It contains a build function that garbles the circuit, commit on the keys, etc.
|Constructor and Description|
A constructor that sets the parameters.
|Modifier and Type||Method and Description|
Builds the Bundle using the given seed.
Builds the Bundle, meaning garble the inner circuit, commit on it keys, etc.
public final KProbeResistantMatrix matrix
public BundleBuilder(FastGarbledBooleanCircuit gbc, KProbeResistantMatrix matrix, CryptoPrimitives primitives, Channel channels)
gbc- The garbled circuit to use in the bundle.
matrix- The matrix used to extends y1 keys.
primitives- Provides the primitives that are used in the protocol, such as hash function.
channels- The channel communicate between the parties.
public Bundle build(int seedSizeInBytes)
seedSizeInBytes- The size of the required seed.
public Bundle build(byte seed)
seed- To use in the build process.