diff options
author | Andres Erbsen <andreser@mit.edu> | 2017-04-22 17:43:08 -0400 |
---|---|---|
committer | Andres Erbsen <andreser@mit.edu> | 2017-04-22 17:43:10 -0400 |
commit | 74d9b4dd9e50be882571e7344885fc0365fe674a (patch) | |
tree | fbadcadd3166c891b9644d2aa7fea1e8deec9152 | |
parent | f6df93b74c333d61457916d1b7ac45f6a3302884 (diff) |
use IntegrationTestSquare in C code
-rw-r--r-- | src/Specific/x25519_c64.c.sh | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/Specific/x25519_c64.c.sh b/src/Specific/x25519_c64.c.sh index b7bba0a42..2e6d280d1 100644 --- a/src/Specific/x25519_c64.c.sh +++ b/src/Specific/x25519_c64.c.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -euo pipefail cat << 'EOF' // The non-synthesized parts are from Adam Langley's curve25519-donna-c64 @@ -49,19 +50,19 @@ fsquare_times(fe25519 output, const fe25519 in, uint64_t count) { do { EOF -< src/Specific/IntegrationTestMulDisplay.log \ +< src/Specific/IntegrationTestSquareDisplay.log \ grep -- "λ '(" | \ grep -owP -- 'x\d+' | \ paste -d ' =;' \ - <(for i in $(seq 1 10); do echo uint64_t; done) \ + <(for i in $(seq 1 5); do echo uint64_t; done) \ /dev/stdin \ - <(echo {r,r}{4,3,2,1,0} | tr ' ' '\n') \ + <(echo r{4,3,2,1,0} | tr ' ' '\n') \ /dev/null -< src/Specific/IntegrationTestMulDisplay.log \ +< src/Specific/IntegrationTestSquareDisplay.log \ grep -oP 'uint\d+_t\W+\w+ = .*;$' -< src/Specific/IntegrationTestMulDisplay.log \ +< src/Specific/IntegrationTestSquareDisplay.log \ grep -- Return | \ grep -owP -- 'x\d+' | \ paste -d '=;' \ @@ -93,9 +94,9 @@ EOF grep -- "λ '(" | \ grep -owP -- 'x\d+' | \ paste -d ' =;' \ - <(for i in $(seq 1 30); do echo uint64_t; done) \ + <(for i in $(seq 1 25); do echo uint64_t; done) \ /dev/stdin \ - <(echo 0 0 0 0 121665 {qmqp,x,z,xprime,zprime}\[{4,3,2,1,0}\] | tr ' ' '\n') \ + <(echo {qmqp,x,z,xprime,zprime}\[{4,3,2,1,0}\] | tr ' ' '\n') \ /dev/null < src/Specific/IntegrationTestLadderstepDisplay.log \ |