Ben Goodger wrote: > It actually crashes in a system dll. It thinks the creation time of one > of the files in my system directory is year 1617, which it does not > like.
Yeah, the bits from those old Gutenberg bibles really wear out the drive heads. :-) > I understand that this crashing is a bug and I should probably > file it, Yeah, probably. I see you built with VC 8.0. I think we're only beginning to find the bugs that come from building NSS with that compiler and its libs. :-/ > but Darin and I looked at the code that was calling into this - > Enum/ReadSystemFiles... and it looked like it was doing this to seed the > random number generator. Yup. > Is this the best way to collect entropy? That question would be more relevant if NSS only gathered entropy one way. When collecting entropy, we don't bet the farm on a single horse. The "system files" are just one of the horses (entropy sources). Feeding constant data to our entropy collector (before or after feeding entropic data) doesn't reduce collected entropy. At worst it wastes time. We have multiple sources of entropy. If all but 1 of those sources fail to produce ANY entropy, that 1 that didn't fail may save our bacon. On some PCs, (sadly) the entropy from the "system files" might well be one of the best ways. NSS runs on Win 95, 98, ME, 2K, XP, CE (including Pocket PC), '03, etc. Some of those boxes have pretty limited sources of entropy. > Might it not be that two systems have pretty similar system directories? pretty similar? sure. Similar enough to have no entropy? unlikely. Among the "system files", the best sources of entropy probably come from the files in "Temporary Internet Files" and the temp directories. The number of such files itself and the names of the files are also part of the data collected. We can't sample all the files, so we sample a subset. The subset chosen is affected by the number of files in the full set. Adding or removing a single file may completely change the sampled subset. The application may also add to the list of files used, but I suspect that mozilla doesn't. > (Especially as limited user accounts become more prevalent)? We probably should increase the number of directories in which we look. New directories exist in modern windows file systems that didn't exist 4 years ago. The optimal set of sources is a moving target. Ideas for new sources, and for improving any individual source, are always welcome. Please file an NSS RFE with any good new ideas. Thanks. -- Nelson B _______________________________________________ dev-tech-crypto mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-crypto

