Sunday, October 31, 2010

How to touch every bit of a block of memory ?

To do sanitization of a block of memory , i came across a technique today

.The Algorithm is as follows

a ) Generate a random string ( called RANDSTR ) of n bytes
b ) Get 1's compliment of that string ( ~RANDSTR )
c ) Fill the buffer with RANDSTR 
d ) Fill the buffer with ~RANDSTR


This will make sure that this touches every bit and might sanitize the stuff

1 comments:

Anonymous said...

We sale online brand valium online. Order valium now! http://osdir.com/ml/scsi/2003-11/msg00063.html purchase valium. The good quality.