aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/pubkey/curve25519/donna.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/pubkey/curve25519/donna.cpp')
-rw-r--r--src/lib/pubkey/curve25519/donna.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/pubkey/curve25519/donna.cpp b/src/lib/pubkey/curve25519/donna.cpp
index a0e4d249f..86b92b0bf 100644
--- a/src/lib/pubkey/curve25519/donna.cpp
+++ b/src/lib/pubkey/curve25519/donna.cpp
@@ -374,8 +374,8 @@ cmult(limb *resultx, limb *resultz, const u8 *n, const limb *q) {
swap_conditional(nqx, nqpqx, bit);
swap_conditional(nqz, nqpqz, bit);
- fmonty_out_t result { nqx2, nqz2, nqpqx2, nqpqz2 };
- fmonty_in_t in { nqx, nqz, nqpqx, nqpqz, q };
+ fmonty_out_t result { {nqx2, nqz2}, {nqpqx2, nqpqz2} };
+ fmonty_in_t in { { nqx, nqz }, { nqpqx, nqpqz }, q };
fmonty(result, in);
swap_conditional(nqx2, nqpqx2, bit);
swap_conditional(nqz2, nqpqz2, bit);