summaryrefslogtreecommitdiff
path: root/lib/crypto
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2019-01-07 00:10:17 -0800
committerOri Bernstein <ori@eigenstate.org>2019-01-07 00:10:17 -0800
commitaf63c8fc4082fca2b5148cb55a6870ac926660e4 (patch)
treefbc4a1129ed7e6c6f7de4ff0005dcc43e4c11319 /lib/crypto
parenta2644d1d980e0f1c5439dce7764f0d051cf4cc41 (diff)
downloadmc-af63c8fc4082fca2b5148cb55a6870ac926660e4.tar.gz
Change indexed array literal syntax.
Diffstat (limited to 'lib/crypto')
-rw-r--r--lib/crypto/x25519.myr16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/crypto/x25519.myr b/lib/crypto/x25519.myr
index e4178e6..d267338 100644
--- a/lib/crypto/x25519.myr
+++ b/lib/crypto/x25519.myr
@@ -477,14 +477,14 @@ const fmonty = {x2, z2, x3, z3, x, z, xprime, zprime, qmqp
* q: a point of the curve (short form)
*/
const cmult = {resultx, resultz, n, q
- var a : felem[19] = [0:0, 18:0]
- var b : felem[19] = [0:1, 18:0]
- var c : felem[19] = [0:1, 18:0]
- var d : felem[19] = [0:0, 18:0]
- var e : felem[19] = [0:0, 18:0]
- var f : felem[19] = [0:1, 18:0]
- var g : felem[19] = [0:0, 18:0]
- var h : felem[19] = [0:1, 18:0]
+ var a : felem[19] = [.[0] = 0, .[18] = 0]
+ var b : felem[19] = [.[0] = 1, .[18] = 0]
+ var c : felem[19] = [.[0] = 1, .[18] = 0]
+ var d : felem[19] = [.[0] = 0, .[18] = 0]
+ var e : felem[19] = [.[0] = 0, .[18] = 0]
+ var f : felem[19] = [.[0] = 1, .[18] = 0]
+ var g : felem[19] = [.[0] = 0, .[18] = 0]
+ var h : felem[19] = [.[0] = 1, .[18] = 0]
var nqpqx = a[:]
var nqpqz = b[:]
var nqx = c[:]