Re: On-Disk Encryption and Data Integrity
- From: Jeffrey Walton <noloader@xxxxxxxxx>
- Date: Tue, 27 Jan 2009 00:48:04 -0800 (PST)
Hi Kristian,
On Jan 27, 2:42 am, Kristian Gjøsteen <kristiag+n...@xxxxxxxxxxxx>
wrote:
Jeffrey Walton <noloa...@xxxxxxxxx> wrote:I'd like to use CCM, but neither Crypto++ or the Windows Crypto API
This question is very similar, but the threat model is slightly
different. Suppose I store encrypted data on disk. I believe I can
persist E( m || h(m) ). I think this is appropriate since on-disk
suffers from fewer threats than over the air. Is this correct? Or
should I punt and use a MAC (I think a Digital Signature would not be
required since it is a stronger primitive providing non-repudiation).
The downside of a MAC is that I must make to passes over the data
(i.e., the message) with the block cipher - one for the MAC, the
second for the Encrpytion. So I would prefer to use a unkeyed hash.
I'd use an authenticating mode of encryption such as CCM or GCM.
(CAPI) offer it.
Unfortunately, I cannot expect to have raw access to the disk. But I
Alternatively, you can use dedicated disk encryption modes like EME, that
are non-expanding. Note that they provide different security properties
than CCM or GCM do.
To prevent cut-and-paste attacks, you should include the sector address
in the authenticated data (you don't need to store it, of course).
do have protected storage for the keys.
No need for full disk encryption - for this example, one text file
Nontheless, these modes will be subject to sector replay attacks.
If you _really_ need integrity for the entire disk image, then you may
need hash trees or other somewhat expensive constructions.
(consuming less than one sector) is my premise.
Jeff
.
- Follow-Ups:
- Re: On-Disk Encryption and Data Integrity
- From: Mark Wooding
- Re: On-Disk Encryption and Data Integrity
- References:
- On-Disk Encryption and Data Integrity
- From: Jeffrey Walton
- Re: On-Disk Encryption and Data Integrity
- From: Kristian Gjøsteen
- On-Disk Encryption and Data Integrity
- Prev by Date: Re: Performance of RSA key generation
- Next by Date: Re: Performance of RSA key generation
- Previous by thread: Re: On-Disk Encryption and Data Integrity
- Next by thread: Re: On-Disk Encryption and Data Integrity
- Index(es):
Relevant Pages
|
Loading