* [dm-crypt] hardware encryption question
@ 2011-02-25 23:35 Chuck Tuffli
2011-02-26 10:18 ` Milan Broz
0 siblings, 1 reply; 4+ messages in thread
From: Chuck Tuffli @ 2011-02-25 23:35 UTC (permalink / raw)
To: dm-crypt
I'm developing a device driver for a SCSI card that is able to do
XTS-AES encryption as a part of IO. Is it possible for dm-crypt to
take advantage of this encryption offload? If not, what would I need
to change to enable this capability? TIA!
---chuck
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dm-crypt] hardware encryption question
2011-02-25 23:35 [dm-crypt] hardware encryption question Chuck Tuffli
@ 2011-02-26 10:18 ` Milan Broz
2011-03-03 1:28 ` Chuck Tuffli
0 siblings, 1 reply; 4+ messages in thread
From: Milan Broz @ 2011-02-26 10:18 UTC (permalink / raw)
To: Chuck Tuffli; +Cc: dm-crypt
On 02/26/2011 12:35 AM, Chuck Tuffli wrote:
> I'm developing a device driver for a SCSI card that is able to do
> XTS-AES encryption as a part of IO. Is it possible for dm-crypt to
> take advantage of this encryption offload? If not, what would I need
> to change to enable this capability? TIA!
dm-crypt uses kernel cryptoAPI, so if you implement proper driver
for cryptoAPI and this driver will be primary (or automatically detected)
for the cipher/mode it will be used in dm-crypt.
But it if it is not able to separate encryption from io path, you
cannot use it in dm-crypt. But you can stack other block devices over it
(like LVM).
Milan
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dm-crypt] hardware encryption question
2011-02-26 10:18 ` Milan Broz
@ 2011-03-03 1:28 ` Chuck Tuffli
2011-03-09 10:34 ` Milan Broz
0 siblings, 1 reply; 4+ messages in thread
From: Chuck Tuffli @ 2011-03-03 1:28 UTC (permalink / raw)
To: Milan Broz; +Cc: dm-crypt
On Sat, Feb 26, 2011 at 2:18 AM, Milan Broz <mbroz@redhat.com> wrote:
> dm-crypt uses kernel cryptoAPI, so if you implement proper driver
> for cryptoAPI and this driver will be primary (or automatically detected)
> for the cipher/mode it will be used in dm-crypt.
>
> But it if it is not able to separate encryption from io path, you
> cannot use it in dm-crypt. But you can stack other block devices over it
> (like LVM).
Milan -
The device cannot separate encryption from the IO path, but cryptsetup
seems like a great interface and I would love to take advantage of it
if at all possible. Do you have any advice on possible approaches I
might consider? For example, would creating a new dm-something driver
that passed keys etc. to my driver + modifications to cryptsetup to
recognize this path work? Or would it make more sense to by-pass the
device mapper entirely but still use cryptsetup? Or ... ?
Thanks again for your help!
---chuck
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dm-crypt] hardware encryption question
2011-03-03 1:28 ` Chuck Tuffli
@ 2011-03-09 10:34 ` Milan Broz
0 siblings, 0 replies; 4+ messages in thread
From: Milan Broz @ 2011-03-09 10:34 UTC (permalink / raw)
To: Chuck Tuffli; +Cc: dm-crypt
On 03/03/2011 02:28 AM, Chuck Tuffli wrote:
> The device cannot separate encryption from the IO path, but cryptsetup
> seems like a great interface and I would love to take advantage of it
> if at all possible. Do you have any advice on possible approaches I
> might consider? For example, would creating a new dm-something driver
> that passed keys etc. to my driver + modifications to cryptsetup to
> recognize this path work? Or would it make more sense to by-pass the
> device mapper entirely but still use cryptsetup? Or ... ?
If there is (or will be) some generic interface for hw-disk FDE, maybe
it can be added some day into libcryptsetup.
dm-crypt (resp. device-mapper) backend is currently fixed in code,
but if there is an alternative, I'll add code to support different backend.
(devel code just did the same for various userspace crypto backends)
But adding code just for one proprietary device is not the option.
Milan
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-03-09 10:34 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-25 23:35 [dm-crypt] hardware encryption question Chuck Tuffli
2011-02-26 10:18 ` Milan Broz
2011-03-03 1:28 ` Chuck Tuffli
2011-03-09 10:34 ` Milan Broz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox