]>
git.saurik.com Git - apple/security.git/blob - SecurityTests/cspxutils/feeCurve
3 # run FEE tests for CSP/X for one curve. All incoming arguments except for 's'
4 # passed down to individual tests. It's assumed thast one of the arguments is
5 # "C=m" for Montgomery curves; in that case we skip the Weierstrass-only tests.
7 set BUILD_DIR
=$LOCAL_BUILD_DIR
20 if("$argv[1]" == "C=m") then
23 set CMD_ARGS
= "$CMD_ARGS $argv[1]"
29 # Select 'quick' or 'normal' test params
31 if($QUICK_TEST == 1) then
33 set BADSIG_ARGS
="l=4 i=10"
37 set BADSIG_ARGS
="l=20"
43 # sigtest - FEE/MD5, FEE/SHA1 for all curves; ECDSA for Weierstrass only
45 sigtest a
=f
$SIGTEST_ARGS $CMD_ARGS || exit(1)
46 sigtest a
=F
$SIGTEST_ARGS $CMD_ARGS || exit(1)
47 if($WEIERSTRASS == 1) then
48 sigtest a
=e
$SIGTEST_ARGS $CMD_ARGS || exit(1)
51 # badsig - FEE/MD5, FEE/SHA1 for all curves; ECDSA for Weierstrass only
53 badsig a
=f
$BADSIG_ARGS $CMD_ARGS || exit(1)
54 badsig a
=F
$BADSIG_ARGS $CMD_ARGS || exit(1)
55 if($WEIERSTRASS == 1) then
56 badsig a
=e
$BADSIG_ARGS $CMD_ARGS || exit(1)
59 # asymtest - FEED, FEEDExp for all curves
61 asymTest a
=f
$ASYMTEST_ARGS $CMD_ARGS || exit(1)
62 asymTest a
=x
$ASYMTEST_ARGS $CMD_ARGS || exit(1)