private void generateNewTriples() { List<TinyTablesTriple> newTriples = generator.generate(batchSize); for (TinyTablesTriple triple : newTriples) { triples.offer(triple); } }
this.supplier = () -> { RotList rotList = new RotList(drbg, computationalSecurity); CoinTossing ct = new CoinTossing(myId, Util.otherPlayerId(myId), drbg); OtExtensionResourcePool otExtRes = new OtExtensionResourcePoolImpl(myId, Util.otherPlayerId(myId), computationalSecurity, statisticalSecurity, 1, drbg, ct, rotList); baseOt.init(network.get()); int otherId = Util.otherPlayerId(getMyId()); otBatchSize); TinyTablesTripleGenerator generator = new TinyTablesTripleGenerator(getMyId(), getDrng(), otFactory); return new BatchTinyTablesTripleProvider(generator, TRIP_BATCH_SIZE); };
this.protocolSuite = tinyTablesPreProFromCmdLine(properties); Drbg random = new AesCtrDrbg(); TinyTablesOt baseOt = new TinyTablesNaorPinkasOt(Util.otherPlayerId(myId), random, DhParameters .getStaticDhParams());
network.send(Util.otherPlayerId(getMyId()), size); network.send(Util.otherPlayerId(this.getMyId()), shares.payload()); size = network.receive(Util.otherPlayerId(this.getMyId())); int length = ByteBuffer.wrap(size).getInt(); byte[] data = network.receive(Util.otherPlayerId(this.getMyId())); TinyTablesElementVector otherShares = new TinyTablesElementVector(data, length);
Drbg random = new AesCtrDrbg(new byte[32]); DHParameterSpec params = DhParameters.getStaticDhParams(); TinyTablesOt baseOt = new TinyTablesNaorPinkasOt(Util.otherPlayerId(playerId), random, params); Supplier<Network> network = new NetworkSupplier(playerId, netConf);
evalStrategy.getStrategy(); TinyTablesPreproProtocolSuite suite = new TinyTablesPreproProtocolSuite(); TinyTablesOt baseOt = new TinyTablesDummyOt(Util.otherPlayerId(playerId)); Drbg random = new AesCtrDrbg(new byte[32]); resourcePoolSupplier =