<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Randomize First, Then Encrypt Your Block Device</title>
	<atom:link href="http://pthree.org/2012/02/20/randomize-first-the-encrypt-your-block-device/feed/" rel="self" type="application/rss+xml" />
	<link>http://pthree.org/2012/02/20/randomize-first-the-encrypt-your-block-device/</link>
	<description>Linux.  GNU.  Freedom.</description>
	<lastBuildDate>Fri, 17 May 2013 20:46:35 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.6-beta2-24176</generator>
	<item>
		<title>By: Jim</title>
		<link>http://pthree.org/2012/02/20/randomize-first-the-encrypt-your-block-device/#comment-116457</link>
		<dc:creator>Jim</dc:creator>
		<pubDate>Sun, 26 Feb 2012 18:46:27 +0000</pubDate>
		<guid isPermaLink="false">http://pthree.org/?p=2273#comment-116457</guid>
		<description><![CDATA[Any reason why you are using a block size of 1 byte with dd ?  (bs=1)]]></description>
		<content:encoded><![CDATA[<p>Any reason why you are using a block size of 1 byte with dd ?  (bs=1)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim</title>
		<link>http://pthree.org/2012/02/20/randomize-first-the-encrypt-your-block-device/#comment-116456</link>
		<dc:creator>Jim</dc:creator>
		<pubDate>Sun, 26 Feb 2012 18:36:17 +0000</pubDate>
		<guid isPermaLink="false">http://pthree.org/?p=2273#comment-116456</guid>
		<description><![CDATA[Regarding comments 4 and 5, I agree it is best to lay down the random data first.  The data to be protected should be mingled/integrated with random data as closely as possible, so that it fills partial blocks and metadata areas as explained above.  Also, if you need to ever securely wipe the disk, having random data &quot;underneath&quot; your secured data might give better protection against phorensic data salvage, that&#039;s only my hunch/speculation though.]]></description>
		<content:encoded><![CDATA[<p>Regarding comments 4 and 5, I agree it is best to lay down the random data first.  The data to be protected should be mingled/integrated with random data as closely as possible, so that it fills partial blocks and metadata areas as explained above.  Also, if you need to ever securely wipe the disk, having random data &#8220;underneath&#8221; your secured data might give better protection against phorensic data salvage, that&#8217;s only my hunch/speculation though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron Toponce</title>
		<link>http://pthree.org/2012/02/20/randomize-first-the-encrypt-your-block-device/#comment-116445</link>
		<dc:creator>Aaron Toponce</dc:creator>
		<pubDate>Thu, 23 Feb 2012 02:20:42 +0000</pubDate>
		<guid isPermaLink="false">http://pthree.org/?p=2273#comment-116445</guid>
		<description><![CDATA[patrickdk- So, it&#039;s going to depend on your hardware, how much RAM you have, and how fast you can generate pseudorandom data, as well as the PRNG you use. If you absolutely need performance, then I would recommend booting off of a Knoppix CD, encrypting your drive, mounting it, and filling it with a file from /dev/zero. Then, reboot back into your installer and go from there. On my cheap workstation here at work, I can generate data from /dev/urandom at about 15 MBps, after RAM has been flushed.]]></description>
		<content:encoded><![CDATA[<p>patrickdk- So, it&#8217;s going to depend on your hardware, how much RAM you have, and how fast you can generate pseudorandom data, as well as the PRNG you use. If you absolutely need performance, then I would recommend booting off of a Knoppix CD, encrypting your drive, mounting it, and filling it with a file from /dev/zero. Then, reboot back into your installer and go from there. On my cheap workstation here at work, I can generate data from /dev/urandom at about 15 MBps, after RAM has been flushed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: patrickdk</title>
		<link>http://pthree.org/2012/02/20/randomize-first-the-encrypt-your-block-device/#comment-116442</link>
		<dc:creator>patrickdk</dc:creator>
		<pubDate>Wed, 22 Feb 2012 20:24:45 +0000</pubDate>
		<guid isPermaLink="false">http://pthree.org/?p=2273#comment-116442</guid>
		<description><![CDATA[Strange, this was tested with ubuntu 10.04 installed on a internal drive, and formatting anotherdrive. Even my servers dont get a urand more tham 4mb/sec. Maybe a kernel change recently?]]></description>
		<content:encoded><![CDATA[<p>Strange, this was tested with ubuntu 10.04 installed on a internal drive, and formatting anotherdrive. Even my servers dont get a urand more tham 4mb/sec. Maybe a kernel change recently?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron Toponce</title>
		<link>http://pthree.org/2012/02/20/randomize-first-the-encrypt-your-block-device/#comment-116441</link>
		<dc:creator>Aaron Toponce</dc:creator>
		<pubDate>Wed, 22 Feb 2012 14:53:04 +0000</pubDate>
		<guid isPermaLink="false">http://pthree.org/?p=2273#comment-116441</guid>
		<description><![CDATA[patrickdk- Your performance will depend entirely on the PRNG that is used, and the device you&#039;ve booted from. The debian installer uses the same PRNG that is found in the Linux kernel, and when booted off the CD, will move at a pace of about 30 MBps on my laptop hard drive, which is the max speed my drive can realistically do.]]></description>
		<content:encoded><![CDATA[<p>patrickdk- Your performance will depend entirely on the PRNG that is used, and the device you&#8217;ve booted from. The debian installer uses the same PRNG that is found in the Linux kernel, and when booted off the CD, will move at a pace of about 30 MBps on my laptop hard drive, which is the max speed my drive can realistically do.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: patrickdk</title>
		<link>http://pthree.org/2012/02/20/randomize-first-the-encrypt-your-block-device/#comment-116440</link>
		<dc:creator>patrickdk</dc:creator>
		<pubDate>Wed, 22 Feb 2012 13:39:36 +0000</pubDate>
		<guid isPermaLink="false">http://pthree.org/?p=2273#comment-116440</guid>
		<description><![CDATA[Using urandom is too slow, normally 3mb/sec. Just encrypt the block device, dd something to that device, then format it with you filesystem. This takes out not having random data in filesystem metadata areas. And so much faster than urandom, going at 50mb/s or faster even for slower cpus using aes.]]></description>
		<content:encoded><![CDATA[<p>Using urandom is too slow, normally 3mb/sec. Just encrypt the block device, dd something to that device, then format it with you filesystem. This takes out not having random data in filesystem metadata areas. And so much faster than urandom, going at 50mb/s or faster even for slower cpus using aes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron Toponce</title>
		<link>http://pthree.org/2012/02/20/randomize-first-the-encrypt-your-block-device/#comment-116438</link>
		<dc:creator>Aaron Toponce</dc:creator>
		<pubDate>Wed, 22 Feb 2012 12:07:09 +0000</pubDate>
		<guid isPermaLink="false">http://pthree.org/?p=2273#comment-116438</guid>
		<description><![CDATA[gotfeed- Yes, the alternative installer does begin randomizing the disk, if you choose to do encrypted LVM.]]></description>
		<content:encoded><![CDATA[<p>gotfeed- Yes, the alternative installer does begin randomizing the disk, if you choose to do encrypted LVM.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gotfeed</title>
		<link>http://pthree.org/2012/02/20/randomize-first-the-encrypt-your-block-device/#comment-116435</link>
		<dc:creator>gotfeed</dc:creator>
		<pubDate>Wed, 22 Feb 2012 03:37:54 +0000</pubDate>
		<guid isPermaLink="false">http://pthree.org/?p=2273#comment-116435</guid>
		<description><![CDATA[Does the Ubuntu alternative image installer do this when you enable LVM with encryption during the installation?]]></description>
		<content:encoded><![CDATA[<p>Does the Ubuntu alternative image installer do this when you enable LVM with encryption during the installation?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron Toponce</title>
		<link>http://pthree.org/2012/02/20/randomize-first-the-encrypt-your-block-device/#comment-116434</link>
		<dc:creator>Aaron Toponce</dc:creator>
		<pubDate>Wed, 22 Feb 2012 02:37:35 +0000</pubDate>
		<guid isPermaLink="false">http://pthree.org/?p=2273#comment-116434</guid>
		<description><![CDATA[textshell- Sure. You could just as easy fill your filesystem with random data after the install. Then, as your data needs expand, you will be effectively writing over where that random file existed. That works, but it shouldn&#039;t be the first thing you do. You should put the random data down first, &lt;i&gt;then&lt;/i&gt; format and install. But, if you forget to do so, then you can make that large random file, as it is certainly better than nothing.]]></description>
		<content:encoded><![CDATA[<p>textshell- Sure. You could just as easy fill your filesystem with random data after the install. Then, as your data needs expand, you will be effectively writing over where that random file existed. That works, but it shouldn&#8217;t be the first thing you do. You should put the random data down first, <i>then</i> format and install. But, if you forget to do so, then you can make that large random file, as it is certainly better than nothing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: textshell</title>
		<link>http://pthree.org/2012/02/20/randomize-first-the-encrypt-your-block-device/#comment-116433</link>
		<dc:creator>textshell</dc:creator>
		<pubDate>Tue, 21 Feb 2012 23:24:45 +0000</pubDate>
		<guid isPermaLink="false">http://pthree.org/?p=2273#comment-116433</guid>
		<description><![CDATA[Comment 4 makes quite a bit of sense that files written between creating the filesystem on a encrypted volume (without randomizing before) and filling it with some kind of data (ideally random) will have worse properties. But if the data does change a bit over time it would &quot;age&quot; out, wouldn&#039;t it? Maybe it would be a good addition to your serien to discuss/visualize this a bit more explicit. Although it would be harder esp. with the aging.]]></description>
		<content:encoded><![CDATA[<p>Comment 4 makes quite a bit of sense that files written between creating the filesystem on a encrypted volume (without randomizing before) and filling it with some kind of data (ideally random) will have worse properties. But if the data does change a bit over time it would &#8220;age&#8221; out, wouldn&#8217;t it? Maybe it would be a good addition to your serien to discuss/visualize this a bit more explicit. Although it would be harder esp. with the aging.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron Toponce</title>
		<link>http://pthree.org/2012/02/20/randomize-first-the-encrypt-your-block-device/#comment-116432</link>
		<dc:creator>Aaron Toponce</dc:creator>
		<pubDate>Tue, 21 Feb 2012 14:54:07 +0000</pubDate>
		<guid isPermaLink="false">http://pthree.org/?p=2273#comment-116432</guid>
		<description><![CDATA[Yes and no. This can be applied after setting up the filesystem, but then you&#039;ll notice &quot;spaces&quot; in the encrypted output. This is because the underlying block device is writing data at either 512-byte or 4-kbyte blocks. Where the data doesn&#039;t fill an entire block, there will be a space between it, and the start of the new file. These spaces will reveal file size and location, which will make watermarking and snapshot attacks a breeze.]]></description>
		<content:encoded><![CDATA[<p>Yes and no. This can be applied after setting up the filesystem, but then you&#8217;ll notice &#8220;spaces&#8221; in the encrypted output. This is because the underlying block device is writing data at either 512-byte or 4-kbyte blocks. Where the data doesn&#8217;t fill an entire block, there will be a space between it, and the start of the new file. These spaces will reveal file size and location, which will make watermarking and snapshot attacks a breeze.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mathias Hasselmann</title>
		<link>http://pthree.org/2012/02/20/randomize-first-the-encrypt-your-block-device/#comment-116431</link>
		<dc:creator>Mathias Hasselmann</dc:creator>
		<pubDate>Tue, 21 Feb 2012 12:13:40 +0000</pubDate>
		<guid isPermaLink="false">http://pthree.org/?p=2273#comment-116431</guid>
		<description><![CDATA[Trivial fix:

   # cp glider.bmp /mnt
+ # dd if=/dev/zero of=/mnt/fill bs=1
   # umount /mnt

This step can be applied __after__ setting up the file system, but permits you to start working already. So no need to wait for hours. Actually wondering why Linux is not initializing free space of encrypted disking after setup. Could be considered a bug.]]></description>
		<content:encoded><![CDATA[<p>Trivial fix:</p>
<p>   # cp glider.bmp /mnt<br />
+ # dd if=/dev/zero of=/mnt/fill bs=1<br />
   # umount /mnt</p>
<p>This step can be applied __after__ setting up the file system, but permits you to start working already. So no need to wait for hours. Actually wondering why Linux is not initializing free space of encrypted disking after setup. Could be considered a bug.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron Toponce</title>
		<link>http://pthree.org/2012/02/20/randomize-first-the-encrypt-your-block-device/#comment-116430</link>
		<dc:creator>Aaron Toponce</dc:creator>
		<pubDate>Tue, 21 Feb 2012 11:35:13 +0000</pubDate>
		<guid isPermaLink="false">http://pthree.org/?p=2273#comment-116430</guid>
		<description><![CDATA[Absolutely! It will be clear from my next post, WHY you want to put random data underneath. There are some fairly effective attacks you can mount, to determine what sort of data is being hidden, and what it contains.]]></description>
		<content:encoded><![CDATA[<p>Absolutely! It will be clear from my next post, WHY you want to put random data underneath. There are some fairly effective attacks you can mount, to determine what sort of data is being hidden, and what it contains.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Philipp Kern</title>
		<link>http://pthree.org/2012/02/20/randomize-first-the-encrypt-your-block-device/#comment-116429</link>
		<dc:creator>Philipp Kern</dc:creator>
		<pubDate>Tue, 21 Feb 2012 08:49:34 +0000</pubDate>
		<guid isPermaLink="false">http://pthree.org/?p=2273#comment-116429</guid>
		<description><![CDATA[Well, you don&#039;t really say why you need to do that. Sure, it&#039;s visible from the outside where/how much data is stored. (Especially if you use discard with SSDs.) And it&#039;s visible what kind of file system you use. But it shouldn&#039;t make access to the encrypted data any easier, given that it still resembles random data, should it?]]></description>
		<content:encoded><![CDATA[<p>Well, you don&#8217;t really say why you need to do that. Sure, it&#8217;s visible from the outside where/how much data is stored. (Especially if you use discard with SSDs.) And it&#8217;s visible what kind of file system you use. But it shouldn&#8217;t make access to the encrypted data any easier, given that it still resembles random data, should it?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
