mirror of
https://github.com/henrydcase/pqc.git
synced 2024-11-22 15:39:07 +00:00
fix msvc complaints #2
This commit is contained in:
parent
50665606f0
commit
823ba3f13b
@ -223,7 +223,7 @@ int PQCLEAN_LEDAKEMLT12_LEAKTIME_gf2x_mod_inverse(DIGIT out[], const DIGIT in[])
|
|||||||
gf2x_cswap(f, g, swap);
|
gf2x_cswap(f, g, swap);
|
||||||
gf2x_cswap(v, r, swap);
|
gf2x_cswap(v, r, swap);
|
||||||
|
|
||||||
g0_mask = -lsb(g);
|
g0_mask = ~lsb(g) + 1;
|
||||||
|
|
||||||
// g = (g - g0 * f) / x
|
// g = (g - g0 * f) / x
|
||||||
gf2x_mult_scalar_acc(g, f, g0_mask);
|
gf2x_mult_scalar_acc(g, f, g0_mask);
|
||||||
|
@ -221,7 +221,7 @@ int PQCLEAN_LEDAKEMLT32_LEAKTIME_gf2x_mod_inverse(DIGIT out[], const DIGIT in[])
|
|||||||
gf2x_cswap(f, g, swap);
|
gf2x_cswap(f, g, swap);
|
||||||
gf2x_cswap(v, r, swap);
|
gf2x_cswap(v, r, swap);
|
||||||
|
|
||||||
g0_mask = -lsb(g);
|
g0_mask = ~lsb(g) + 1;
|
||||||
|
|
||||||
// g = (g - g0 * f) / x
|
// g = (g - g0 * f) / x
|
||||||
gf2x_mult_scalar_acc(g, f, g0_mask);
|
gf2x_mult_scalar_acc(g, f, g0_mask);
|
||||||
|
@ -221,7 +221,7 @@ int PQCLEAN_LEDAKEMLT52_LEAKTIME_gf2x_mod_inverse(DIGIT out[], const DIGIT in[])
|
|||||||
gf2x_cswap(f, g, swap);
|
gf2x_cswap(f, g, swap);
|
||||||
gf2x_cswap(v, r, swap);
|
gf2x_cswap(v, r, swap);
|
||||||
|
|
||||||
g0_mask = -lsb(g);
|
g0_mask = ~lsb(g) + 1;
|
||||||
|
|
||||||
// g = (g - g0 * f) / x
|
// g = (g - g0 * f) / x
|
||||||
gf2x_mult_scalar_acc(g, f, g0_mask);
|
gf2x_mult_scalar_acc(g, f, g0_mask);
|
||||||
|
Loading…
Reference in New Issue
Block a user