Example #1
0
 def main():
     opts = get_cmdline_options()
     ver_fn = pop_verify if opts.verify else None
     csuite = g1pop(opts.sigtype)
     for sig_in in opts.test_inputs:
         print_tv_pop(sig_in, csuite, pop_prove, keygen, print_g2_hex,
                      print_g1_hex, ver_fn, False, opts)
Example #2
0
 def main():
     opts = get_cmdline_options()
     if opts.run_tests:
         run_tests()
     else:
         for hash_in in opts.test_inputs:
             print_tv_hash(hash_in, b'\x02', map2curve_osswu2, print_g2_hex, True, opts)
Example #3
0
 def main():
     opts = get_cmdline_options()
     if opts.run_tests:
         run_tests()
     else:
         for hash_in in opts.test_inputs:
             print_tv_hash(hash_in, g2suite, map2curve_osswu2, print_g2_hex,
                           opts.quiet)
Example #4
0
 def main():
     opts = get_cmdline_options()
     if opts.sigtype == SigType.message_augmentation:
         sig_fn = sign_aug
         ver_fn = verify_aug
     else:
         sig_fn = sign
         ver_fn = verify
     ver_fn = ver_fn if opts.verify else None
     csuite = g1suite(opts.sigtype)
     for sig_in in opts.test_inputs:
         print_tv_sig(sig_in, csuite, sig_fn, keygen, print_g2_hex, print_g1_hex, ver_fn, False, opts)
Example #5
0
 def main():
     opts = get_cmdline_options()
     ver_fn = pop_verify if opts.verify else None
     for sig_in in opts.test_inputs:
         print_tv_pop(sig_in, g2pop, pop_prove, keygen, print_g1_hex,
                      print_g2_hex, ver_fn, True, opts)
Example #6
0
 def main():
     opts = get_cmdline_options()
     ver_fn = verify if opts.verify else None
     for sig_in in opts.test_inputs:
         print_tv_sig(sig_in, g2suite, sign, keygen, print_g1_hex,
                      print_g2_hex, ver_fn, opts.quiet)