aboutsummaryrefslogtreecommitdiff
path: root/src/Experiments/c.sh
diff options
context:
space:
mode:
authorGravatar Andres Erbsen <andreser@mit.edu>2017-04-06 20:59:55 -0400
committerGravatar Andres Erbsen <andreser@mit.edu>2017-04-06 20:59:55 -0400
commit21198245dab432d3c0ba2bb8a02254e7d0594382 (patch)
tree52d2fda30cd352d89c58c709d3367ca85423509a /src/Experiments/c.sh
parent18283278b4bd539a6d71d2dec26c8daa3a17230b (diff)
remove unused files
Diffstat (limited to 'src/Experiments/c.sh')
-rw-r--r--src/Experiments/c.sh19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/Experiments/c.sh b/src/Experiments/c.sh
deleted file mode 100644
index 12757595b..000000000
--- a/src/Experiments/c.sh
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/bin/sh
-
-cat << EOF
-#include <stdint.h>
-
-typedef struct { uint64_t v[10]; } fe25519;
-typedef struct { fe25519 X, Y, Z, T; } ge25519;
-
-void ge25519_add(ge25519 *R, ge25519 *P, ge25519 *Q) {
-EOF
-
-python -c "print ('\n'.join('\tuint64_t %s_%s_%d = %s->%s.v[%i];'%(P,c,i,P,c,i) for i in range(10) for c in 'XYZT' for P in 'PQ'))"
-grep '^\s*(\*\s*let' SpecificCurve25519.v | sed 's#(\*##g' | sed 's#\s*let#\tuint64_t#g' | sed 's#:=#=#g' | sed 's#\s\+in#;#g' | sed 's#\s*\*)##g'
-grep -A4 '^\s*(\*\s*let' SpecificCurve25519.v | tail -4 | tr -dc '0123456789x \n' | python -c "import sys; print ('\tge25519 ret = {{' + '},\n\t{'.join(', '.join(line.split()) for line in sys.stdin) + '}};')"
-
-cat << EOF
- *R = ret;
-}
-EOF