コード例 #1
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)
コード例 #2
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)