forked from wolfSSL/wolfssl
Clamp the normalization value at the end of sp_mont_norm.
This commit is contained in:
@ -12290,6 +12290,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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user