From 9498261ca115235b41c5738049577ab163e01fce Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 13 Feb 2017 22:43:15 +0300 Subject: complation fix --- .../src/curve25519/ed25519/additions/vopen_modified.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'libs/libaxolotl/src/curve25519/ed25519/additions/vopen_modified.c') diff --git a/libs/libaxolotl/src/curve25519/ed25519/additions/vopen_modified.c b/libs/libaxolotl/src/curve25519/ed25519/additions/vopen_modified.c index 3dfc7fba6f..035ec0e0a3 100644 --- a/libs/libaxolotl/src/curve25519/ed25519/additions/vopen_modified.c +++ b/libs/libaxolotl/src/curve25519/ed25519/additions/vopen_modified.c @@ -16,6 +16,7 @@ int crypto_vsign_open_modified( unsigned char h[32]; unsigned char s[32]; ge_p2 R; + ge_p3 Rv; unsigned char hcheck[64]; unsigned char vrf_output[64]; int count; @@ -51,12 +52,13 @@ int crypto_vsign_open_modified( ge_scalarmult(&h_Vneg, h, &Vneg); // Rv = (sc * Bv) + (hc * (-V)) - ge_p1p1 Rp1p1; - ge_p3 Rv; - ge_cached h_Vnegcached; - ge_p3_to_cached(&h_Vnegcached, &h_Vneg); - ge_add(&Rp1p1, &s_Bv, &h_Vnegcached); - ge_p1p1_to_p3(&Rv, &Rp1p1); + { + ge_p1p1 Rp1p1; + ge_cached h_Vnegcached; + ge_p3_to_cached(&h_Vnegcached, &h_Vneg); + ge_add(&Rp1p1, &s_Bv, &h_Vnegcached); + ge_p1p1_to_p3(&Rv, &Rp1p1); + } // Check h == SHA512(label(4) || A || V || R || Rv || M) m[0] = 0xFB; // label 4 -- cgit v1.2.3