summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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[:]