Re: Entropy sources under WinXP



Mark Nudelman wrote:


You can use CryptGenRandom to generate random numbers, or directly read
the registry value HKLM\Software\Microsoft\Cryptography\RNG\Seed.

You cannot directly read this value without risking a buffer overflow on
Windows version before Windows Vista.

Eh? As far as I'm aware, it can be read safely the same way any other
registry value of unknown size can be read: call RegQueryValueEx once to
discover the size of the value in the registry, and then call it again
to read the amount of data you want.


And if the size of the value can change in between (which is the case for this one), you have a problem. You'd require either a lock (which you won't get) or transactional semantics (only on Windows Vista).
.



Relevant Pages

  • Re: DVD reader after sp3
    ... The CD drive or the DVD drive does not work as expected on a computer that you upgraded to Windows Vista ... You upgrade a computer to Windows Vista or install Windows Vista Service Pack 1 or you install or uninstall applications that have a CD/DVD filter driver. ... Important This section, method, or task contains steps that tell you how to modify the registry. ...
    (microsoft.public.windowsupdate)
  • NewestShareware.com Issue #89
    ... FileBoss for Windows ... Program Homepage/Download url ... In general users make a program execute at window startup by ... Adding programs to the Registry and WIN.INI file protects the program. ...
    (comp.software.shareware.announce)
  • Re: Windows XP home login/off
    ... How to Perform an In-Place Upgrade of Windows XP ... Click on How To Run a Repair Install ... registry has worked the 5 or 6 times I have seen this problem. ... The script will stop and ask you to hit enter to continue to load SCSI ...
    (microsoft.public.windowsxp.wmi)
  • RE: Networking and DOS attacks
    ... Windows has found 55 Critical System Errors... ... Install Repair Registry Pro. ... I have tracked all of these UDP port hits since 2001. ...
    (Security-Basics)
  • Re: OT: Win 7 comments
    ... I had to edit the Registry. ... This is right up there with repairing permissions, ... That's odd, consider how some of you guys bring the same habits to Windows, ... I will wait for some apps to crash. ...
    (comp.sys.mac.advocacy)

Quantcast