Merge pull request #3620 from haydenroche5/zd11434

Clamp the normalization value at the end of sp_mont_norm.
This commit is contained in:
toddouska
2021-01-18 15:21:03 -08:00
committed by GitHub

View File

@@ -12297,6 +12297,7 @@ int sp_mont_norm(sp_int* norm, sp_int* m)
if ((err == MP_OKAY) && (bits == SP_WORD_SIZE)) {
norm->dp[0] %= m->dp[0];
}
sp_clamp(norm);
return err;
}