[Cryptography] [Crypto-practicum] Secure erasure in C.
Ray Dillinger
bear at sonic.net
Wed Sep 7 20:08:28 EDT 2016
On 09/07/2016 04:23 PM, Ron Garret wrote:
>
> But why not simply:
>
> void erase(volatile char *buf, size_t len) {
....
everything that starts with this line doesn't work, because
passing a (non-volatile) 'char *' to a 'volatile char *' is
an error. Something can't be made volatile by a cast; it
can only be done when declaring the variable (or buffer).
Bear
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://www.metzdowd.com/pipermail/cryptography/attachments/20160907/666047b3/attachment.sig>
More information about the cryptography
mailing list