1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-04-15 10:08:06 -05:00
Simon Tatham 03aeabfbea Use a proper PRNG for GTK askpass.
Coverity complained that it was wrong to use rand() in a security
context, and although in this case it's _very_ marginal, I can't
actually disagree that the choice of which light to light up to avoid
giving information about passphrase length is a security context.

So, no more rand(); instead we instantiate a shiny Fortuna PRNG
instance, seed it in more or less the usual way, and use that as an
overkill-level method of choosing which light to light up next.

(Acknowledging that this is a slightly unusual application and less
critical than most, I don't actually put the passphrase characters
themselves into the PRNG, and I don't use a random-seed file.)
2019-05-05 20:28:00 +01:00
..
2019-05-05 20:28:00 +01:00
2018-12-01 17:04:44 +00:00
2018-12-01 17:04:44 +00:00
2019-03-31 10:35:10 +01:00
2019-05-05 10:14:24 +01:00
2019-05-05 20:28:00 +01:00
2019-05-05 10:14:24 +01:00