diff options
-rw-r--r-- | networking/tls_sp_c32.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/networking/tls_sp_c32.c b/networking/tls_sp_c32.c index 74ded2cda..baed62f41 100644 --- a/networking/tls_sp_c32.c +++ b/networking/tls_sp_c32.c | |||
@@ -1062,7 +1062,6 @@ static void sp_256_map_8(sp_point* r, sp_point* p) | |||
1062 | 1062 | ||
1063 | /* x /= z^2 */ | 1063 | /* x /= z^2 */ |
1064 | sp_256to512z_mont_mul_8(r->x, p->x, t2 /*, p256_mod, p256_mp_mod*/); | 1064 | sp_256to512z_mont_mul_8(r->x, p->x, t2 /*, p256_mod, p256_mp_mod*/); |
1065 | memset(r->x + 8, 0, sizeof(r->x) / 2); | ||
1066 | sp_512to256_mont_reduce_8(r->x /*, p256_mod, p256_mp_mod*/); | 1065 | sp_512to256_mont_reduce_8(r->x /*, p256_mod, p256_mp_mod*/); |
1067 | /* Reduce x to less than modulus */ | 1066 | /* Reduce x to less than modulus */ |
1068 | if (sp_256_cmp_8(r->x, p256_mod) >= 0) | 1067 | if (sp_256_cmp_8(r->x, p256_mod) >= 0) |
@@ -1071,7 +1070,6 @@ static void sp_256_map_8(sp_point* r, sp_point* p) | |||
1071 | 1070 | ||
1072 | /* y /= z^3 */ | 1071 | /* y /= z^3 */ |
1073 | sp_256to512z_mont_mul_8(r->y, p->y, t1 /*, p256_mod, p256_mp_mod*/); | 1072 | sp_256to512z_mont_mul_8(r->y, p->y, t1 /*, p256_mod, p256_mp_mod*/); |
1074 | memset(r->y + 8, 0, sizeof(r->y) / 2); | ||
1075 | sp_512to256_mont_reduce_8(r->y /*, p256_mod, p256_mp_mod*/); | 1073 | sp_512to256_mont_reduce_8(r->y /*, p256_mod, p256_mp_mod*/); |
1076 | /* Reduce y to less than modulus */ | 1074 | /* Reduce y to less than modulus */ |
1077 | if (sp_256_cmp_8(r->y, p256_mod) >= 0) | 1075 | if (sp_256_cmp_8(r->y, p256_mod) >= 0) |