aboutsummaryrefslogtreecommitdiff
path: root/networking/tls_sp_c32.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/tls_sp_c32.c')
-rw-r--r--networking/tls_sp_c32.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/networking/tls_sp_c32.c b/networking/tls_sp_c32.c
index 72a3be537..1f140315e 100644
--- a/networking/tls_sp_c32.c
+++ b/networking/tls_sp_c32.c
@@ -506,12 +506,10 @@ static void sp_256_sqr_10(sp_digit* r, const sp_digit* a)
506 break; 506 break;
507 if (j < 0) 507 if (j < 0)
508 continue; 508 continue;
509
510 c += ((int64_t)a[i]) * a[j] * 2; 509 c += ((int64_t)a[i]) * a[j] * 2;
511 } 510 }
512 if (i == j) 511 if (i == j)
513 c += ((int64_t)a[i]) * a[i]; 512 c += ((int64_t)a[i]) * a[i];
514
515 r[k + 2] += c >> 52; 513 r[k + 2] += c >> 52;
516 r[k + 1] = (c >> 26) & 0x3ffffff; 514 r[k + 1] = (c >> 26) & 0x3ffffff;
517 c = (c & 0x3ffffff) << 26; 515 c = (c & 0x3ffffff) << 26;