12345678910111213141516171819202122232425 |
- package com.oblivm.backend.gc.halfANDs;
- import java.security.SecureRandom;
- import com.oblivm.backend.gc.GCSignal;
- public class TestGarbler {
- SecureRandom rnd = new SecureRandom();
- GCSignal a = GCSignal.freshLabel(rnd);
- GCSignal b = GCSignal.freshLabel(rnd);
- GCSignal m = GCSignal.freshLabel(rnd);
- Garbler gb = new Garbler();
- // public void test() {
- // gb.enc(a, b, 0, m);
- //
- //// Assert.assertTrue(m.equals(gb.dec(a, b, 0L, gb.enc(a, b, 0L, m))));
- // }
- //
- // @Test
- // public void test1000() {
- // for(int i = 0; i<10000; i++)
- // test();
- // }
- }
|