[110723] in cryptography@c2.net mail archive

home help back first fref pref prev next nref lref last post

Re: More on in-memory zeroisation

daemon@ATHENA.MIT.EDU (Alan Barrett)
Fri Dec 14 10:55:47 2007

Date: Thu, 13 Dec 2007 22:11:48 +0200
From: Alan Barrett <apb@cequrux.com>
To: cryptography@metzdowd.com
In-Reply-To: <Pine.SOL.4.61.0712111604380.29938@mental>

On Tue, 11 Dec 2007, Leichter, Jerry wrote:
> You can almost, but not quite, get the desired effect for memory zero-
> ization with "volatile".

I thought that this was guaranteed to work:

	volatile char buf[SIZE];
	/* ... do stuff with buf ... */
	memset(buf, 0, sizeof(buf));

--apb (Alan Barrett)

---------------------------------------------------------------------
The Cryptography Mailing List
Unsubscribe by sending "unsubscribe cryptography" to majordomo@metzdowd.com

home help back first fref pref prev next nref lref last post