TestGarbler.java 563 B

12345678910111213141516171819202122232425
  1. package com.oblivm.backend.gc.halfANDs;
  2. import java.security.SecureRandom;
  3. import com.oblivm.backend.gc.GCSignal;
  4. public class TestGarbler {
  5. SecureRandom rnd = new SecureRandom();
  6. GCSignal a = GCSignal.freshLabel(rnd);
  7. GCSignal b = GCSignal.freshLabel(rnd);
  8. GCSignal m = GCSignal.freshLabel(rnd);
  9. Garbler gb = new Garbler();
  10. // public void test() {
  11. // gb.enc(a, b, 0, m);
  12. //
  13. //// Assert.assertTrue(m.equals(gb.dec(a, b, 0L, gb.enc(a, b, 0L, m))));
  14. // }
  15. //
  16. // @Test
  17. // public void test1000() {
  18. // for(int i = 0; i<10000; i++)
  19. // test();
  20. // }
  21. }