diff options
| author | J08nY | 2016-12-21 22:41:50 +0100 |
|---|---|---|
| committer | J08nY | 2016-12-21 22:41:50 +0100 |
| commit | fcdbe30e418956c738d614c94992b4e3b351e16d (patch) | |
| tree | 6fdb1118670fd0d567528ad03b28e3a8e2ebf3d3 | |
| parent | dd829a69c87f6b723c41dec092924332e1ce986e (diff) | |
| download | ecgen-fcdbe30e418956c738d614c94992b4e3b351e16d.tar.gz ecgen-fcdbe30e418956c738d614c94992b4e3b351e16d.tar.zst ecgen-fcdbe30e418956c738d614c94992b4e3b351e16d.zip | |
| -rwxr-xr-x | gen.sh | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -6,11 +6,11 @@ if [ "$#" -lt 3 ]; then fi option=$1 -keys=$2 +curves=$2 bits=$3 timeout=$4 -time for (( i=1; i <= "$keys"; i++ )); do +time for (( i=1; i <= "$curves"; i++ )); do p=$(openssl prime -generate -hex -bits "$bits"); a=$(openssl rand -hex $(($bits / 8))); b=$(openssl rand -hex $(($bits / 8))); @@ -26,7 +26,7 @@ if [ "$?" -ne 0 ]; then i=$((i - 1)); else r=($res); - echo "${r[3]}" | tee -a "$2b.curves"; + echo "${r[3]}" | tee -a "${bits}b.curves"; fi done |
