Пример #1
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)
Пример #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, g2suite, map2curve_osswu2, print_g2_hex,
                           opts.quiet)