comp.lang.ada
 help / color / mirror / Atom feed
From: gdotone@gmail.com
Subject: Re: In the pipeline.
Date: Mon, 1 Sep 2014 17:22:05 -0700 (PDT)
Date: 2014-09-01T17:22:05-07:00	[thread overview]
Message-ID: <e91b041c-e73a-4c28-99da-97ebe40aba44@googlegroups.com> (raw)
In-Reply-To: <7hu90a5d028n1mhjv3f9kd3gm2oj0jr67t@4ax.com>

On Monday, September 1, 2014 7:06:40 PM UTC-4, Dennis Lee Bieber wrote:

> 	That situation shouldn't require explicitly referencing ad-hoc memory.
> If the data was held in an Ada variable, then you can do whatever you want 
> with it without having to know where that variable was located. Just make 
> sure you run a secure erase on the variable. In pseudo-code

> myDecryptionBuffer : FixedMemoryBuffer;

> for i in myDecryptionBuffer'range loop
> 	myDecryptionBuffer(i) := someRandom(); -- randomize 
> end loop;

> for i in myDecryptionBuffer'range loop
> 	myDecryptionBuffer(i) := not myDecryptionBuffer(i); -- bit invert
> end loop;
 
> for i in myDecryptionBuffer'range loop 
> 	myDecryptionBuffer(i) := someRandom(); -- different randomize
> end loop;

> 	If you really want to be paranoid, you'll save a copy of the random 
> pattern, and do a comparison loop after each of the above loops to ensure 
> the data changed to the pattern that was written.

that is really, really cool!


  reply	other threads:[~2014-09-02  0:22 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-26  6:35 In the pipeline austin.obyrne769
2014-09-01 12:31 ` erlo
2014-09-01 16:34 ` gdotone
2014-09-01 16:50   ` Simon Clubley
2014-09-01 17:12     ` gdotone
2014-09-01 23:06       ` Dennis Lee Bieber
2014-09-02  0:22         ` gdotone [this message]
2014-09-02 12:51           ` Dennis Lee Bieber
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox