Re: Entropy sources under WinXP
- From: "Sebastian G." <seppi@xxxxxxxxx>
- Date: Sat, 19 May 2007 04:25:30 +0200
David Wagner wrote:
What does the interface for reading this value look like?
status = RegQueryValueEx(HKEY, LPTSTR, (NULL), DWORD type, LPBYTE result, DWORD* bytesCopied);
If bytesCopied is initially zero, it will return ERROR_MORE_DATA and bytesCopied will contain the required size. A second query can then supply a large enough buffer.
On the other hand, if the interface is:
/* Gets the size of a registry entry whose key is 'name'. */
size_t getsize(char *name);
/* Copies the named reg. entry into 'buf'. */
int readentry(char *name, char *buf);
then your objections (TOCTTOU, buffer overrun) look plausible.
Yes, and that's the problem. Well, only for values of a type that has no size limit, and Rng\Seed sadly is such a type.
.
- Follow-Ups:
- Re: Entropy sources under WinXP
- From: Phil Carmody
- Re: Entropy sources under WinXP
- From: Phil Carmody
- Re: Entropy sources under WinXP
- From: Sebastian G.
- Re: Entropy sources under WinXP
- From: Phil Carmody
- Re: Entropy sources under WinXP
- From: Phil Carmody
- Re: Entropy sources under WinXP
- From: Sebastian G.
- Re: Entropy sources under WinXP
- From: Phil Carmody
- Re: Entropy sources under WinXP
- From: Phil Carmody
- Re: Entropy sources under WinXP
- From: Phil Carmody
- Re: Entropy sources under WinXP
- From: Sebastian G.
- Re: Entropy sources under WinXP
- From: Phil Carmody
- Re: Entropy sources under WinXP
- From: Phil Carmody
- Re: Entropy sources under WinXP
- From: Phil Carmody
- Re: Entropy sources under WinXP
- From: Phil Carmody
- Re: Entropy sources under WinXP
- From: Phil Carmody
- Re: Entropy sources under WinXP
- From: Phil Carmody
- Re: Entropy sources under WinXP
- From: Phil Carmody
- Re: Entropy sources under WinXP
- From: Sebastian G.
- Re: Entropy sources under WinXP
- From: Phil Carmody
- Re: Entropy sources under WinXP
- From: Phil Carmody
- Re: Entropy sources under WinXP
- From: Sebastian G.
- Re: Entropy sources under WinXP
- From: Sebastian G.
- Re: Entropy sources under WinXP
- From: Phil Carmody
- Re: Entropy sources under WinXP
- From: Phil Carmody
- Re: Entropy sources under WinXP
- From: Sebastian G.
- Re: Entropy sources under WinXP
- From: Phil Carmody
- Re: Entropy sources under WinXP
- From: Phil Carmody
- Re: Entropy sources under WinXP
- From: Sebastian G.
- Re: Entropy sources under WinXP
- From: Sebastian G.
- Re: Entropy sources under WinXP
- From: Phil Carmody
- Re: Entropy sources under WinXP
- From: Mark Nudelman
- Re: Entropy sources under WinXP
- From: Phil Carmody
- Re: Entropy sources under WinXP
- From: Sebastian G.
- Re: Entropy sources under WinXP
- From: Mark Nudelman
- Re: Entropy sources under WinXP
- From: Phil Carmody
- Re: Entropy sources under WinXP
- From: Sebastian G.
- Re: Entropy sources under WinXP
- From: Phil Carmody
- Re: Entropy sources under WinXP
- From: Mark Nudelman
- Re: Entropy sources under WinXP
- From: Sebastian G.
- Re: Entropy sources under WinXP
- From: Sebastian G.
- Re: Entropy sources under WinXP
- From: Phil Carmody
- Re: Entropy sources under WinXP
- From: Phil Carmody
- Re: Entropy sources under WinXP
- From: Phil Carmody
- Re: Entropy sources under WinXP
- From: Mark Nudelman
- Re: Entropy sources under WinXP
- From: Phil Carmody
- Re: Entropy sources under WinXP
- From: Sebastian G.
- Re: Entropy sources under WinXP
- From: Phil Carmody
- Re: Entropy sources under WinXP
- From: Phil Carmody
- Re: Entropy sources under WinXP
- From: Mark Nudelman
- Re: Entropy sources under WinXP
- From: Phil Carmody
- Re: Entropy sources under WinXP
- From: Mark Nudelman
- Re: Entropy sources under WinXP
- From: Phil Carmody
- Re: Entropy sources under WinXP
- From: Sebastian G.
- Re: Entropy sources under WinXP
- From: Phil Carmody
- Re: Entropy sources under WinXP
- From: Phil Carmody
- Re: Entropy sources under WinXP
- From: Sebastian G.
- Re: Entropy sources under WinXP
- From: Phil Carmody
- Re: Entropy sources under WinXP
- From: Phil Carmody
- Re: Entropy sources under WinXP
- From: Phil Carmody
- Re: Entropy sources under WinXP
- From: Phil Carmody
- Re: Entropy sources under WinXP
- From: Phil Carmody
- Re: Entropy sources under WinXP
- From: Sebastian G.
- Re: Entropy sources under WinXP
- From: Phil Carmody
- Re: Entropy sources under WinXP
- From: Mark Nudelman
- Re: Entropy sources under WinXP
- From: Phil Carmody
- Re: Entropy sources under WinXP
- From: Phil Carmody
- Re: Entropy sources under WinXP
- From: Sebastian G.
- Re: Entropy sources under WinXP
- From: Phil Carmody
- Re: Entropy sources under WinXP
- From: Phil Carmody
- Re: Entropy sources under WinXP
- From: Phil Carmody
- Re: Entropy sources under WinXP
- From: Phil Carmody
- Re: Entropy sources under WinXP
- From: Mark Nudelman
- Re: Entropy sources under WinXP
- From: Phil Carmody
- Re: Entropy sources under WinXP
- From: Phil Carmody
- Re: Entropy sources under WinXP
- From: Mark Nudelman
- Re: Entropy sources under WinXP
- From: Phil Carmody
- Re: Entropy sources under WinXP
- From: Phil Carmody
- Re: Entropy sources under WinXP
- From: Sebastian G.
- Re: Entropy sources under WinXP
- From: Phil Carmody
- Re: Entropy sources under WinXP
- From: Phil Carmody
- Re: Entropy sources under WinXP
- From: Mark Nudelman
- Re: Entropy sources under WinXP
- From: Phil Carmody
- Re: Entropy sources under WinXP
- From: Phil Carmody
- Re: Entropy sources under WinXP
- From: Phil Carmody
- Re: Entropy sources under WinXP
- From: Phil Carmody
- Re: Entropy sources under WinXP
- From: Mark Nudelman
- Re: Entropy sources under WinXP
- From: Phil Carmody
- Re: Entropy sources under WinXP
- From: Mark Nudelman
- Re: Entropy sources under WinXP
- From: Phil Carmody
- Re: Entropy sources under WinXP
- From: Phil Carmody
- Re: Entropy sources under WinXP
- From: Phil Carmody
- Re: Entropy sources under WinXP
- From: Mark Nudelman
- Re: Entropy sources under WinXP
- From: Mark Nudelman
- Re: Entropy sources under WinXP
- From: Mark Nudelman
- Re: Entropy sources under WinXP
- From: Phil Carmody
- Re: Entropy sources under WinXP
- From: Phil Carmody
- Re: Entropy sources under WinXP
- From: Sebastian G.
- Re: Entropy sources under WinXP
- From: Mark Nudelman
- Re: Entropy sources under WinXP
- From: Paul Rubin
- Re: Entropy sources under WinXP
- From: Sebastian G.
- Re: Entropy sources under WinXP
- From: Sebastian G.
- Re: Entropy sources under WinXP
- From: Sebastian G.
- Re: Entropy sources under WinXP
- From: Sebastian G.
- Re: Entropy sources under WinXP
- From: Sebastian G.
- Re: Entropy sources under WinXP
- From: Sebastian G.
- Re: Entropy sources under WinXP
- From: Sebastian G.
- Re: Entropy sources under WinXP
- From: Sebastian G.
- Re: Entropy sources under WinXP
- From: Sebastian G.
- Re: Entropy sources under WinXP
- From: Sebastian G.
- Re: Entropy sources under WinXP
- From: Sebastian G.
- Re: Entropy sources under WinXP
- From: Ben Rudiak-Gould
- Re: Entropy sources under WinXP
- From: Sebastian G.
- Re: Entropy sources under WinXP
- From: David Wagner
- Re: Entropy sources under WinXP
- From: Sebastian G.
- Re: Entropy sources under WinXP
- From: David Wagner
- Re: Entropy sources under WinXP
- From: David Wagner
- Re: Entropy sources under WinXP
- From: Mike Amling
- Re: Entropy sources under WinXP
- From: Ben Rudiak-Gould
- Re: Entropy sources under WinXP
- From: Karl Malbrain
- Re: Entropy sources under WinXP
- From: Karl Malbrain
- Re: Entropy sources under WinXP
- From: Ben Rudiak-Gould
- Re: Entropy sources under WinXP
- From: Karl Malbrain
- Re: Entropy sources under WinXP
- From: Mike Amling
- Re: Entropy sources under WinXP
- From: Sebastian G.
- Re: Entropy sources under WinXP
- From: David Wagner
- Re: Entropy sources under WinXP
- From: David Wagner
- Re: Entropy sources under WinXP
- From: David Wagner
- Re: Entropy sources under WinXP
- References:
- Entropy sources under WinXP
- From: keith
- Re: Entropy sources under WinXP
- From: Sebastian G.
- Re: Entropy sources under WinXP
- From: Ben Rudiak-Gould
- Re: Entropy sources under WinXP
- From: Sebastian G.
- Re: Entropy sources under WinXP
- From: David Wagner
- Entropy sources under WinXP
- Prev by Date: Re: Letter Writing and Cryptography
- Next by Date: Re: Entropy sources under WinXP
- Previous by thread: Re: Entropy sources under WinXP
- Next by thread: Re: Entropy sources under WinXP
- Index(es):