From 74d9b4dd9e50be882571e7344885fc0365fe674a Mon Sep 17 00:00:00 2001 From: Andres Erbsen Date: Sat, 22 Apr 2017 17:43:08 -0400 Subject: use IntegrationTestSquare in C code --- src/Specific/x25519_c64.c.sh | 15 ++++++++------- 1 file 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 \ -- cgit v1.2.3