Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Increase number of attempts before failure in ECDSA-DER (#33933)
Of the four test keys, 3 have a 75% chance of being smaller than max on each call. (1 - 0.75) ^ 10 = 9.5e-7, so failure happens slightly more rarely than 1 in a million. The fourth test key only has a 43.75% chance (1 - (.75 * .75)) of being smaller, and (1 - .4375) ^ 10 = 3.1e-3, so slightly more likely than 3 per thousand. Raising the iteration count to 36 brings the fourth key odds of failure to about 1 in a billion (1.01e-9). 36 iterations makes the other 3 fail at 1e-22; but 1e-9 is attained at 15 iterations.
- Loading branch information