* [dm-crypt] How To use FPGA to encrypt disk for dmcrypt
@ 2009-11-18 13:23 Bai Shuwei
2009-11-18 13:31 ` Milan Broz
2009-11-19 7:43 ` Arno Wagner
0 siblings, 2 replies; 4+ messages in thread
From: Bai Shuwei @ 2009-11-18 13:23 UTC (permalink / raw)
To: dm-crypt
[-- Attachment #1: Type: text/plain, Size: 468 bytes --]
Hi, All:
Now I implement xts-aes algorithm with FPGA for disk encryption. But I am
not sure how to write my device driver to connenct the dmcrypt and FPAG
device. I hope some body can give me some idea where I should change to make
the dmcrypt use FPGA.
Thanks ALL!
Bai SHuwei
--
Love other people, as same as love yourself!
Don't think all the time, do it by your hands!
Personal URL: http://dslab.lzu.edu.cn:8080/members/baishw/
E-Mail: baishuwei@gmail.com
[-- Attachment #2: Type: text/html, Size: 635 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dm-crypt] How To use FPGA to encrypt disk for dmcrypt
2009-11-18 13:23 [dm-crypt] How To use FPGA to encrypt disk for dmcrypt Bai Shuwei
@ 2009-11-18 13:31 ` Milan Broz
2009-11-19 8:39 ` Bai Shuwei
2009-11-19 7:43 ` Arno Wagner
1 sibling, 1 reply; 4+ messages in thread
From: Milan Broz @ 2009-11-18 13:31 UTC (permalink / raw)
To: Bai Shuwei; +Cc: dm-crypt
On 11/18/2009 02:23 PM, Bai Shuwei wrote:
> Now I implement xts-aes algorithm with FPGA for disk encryption. But
> I am not sure how to write my device driver to connenct the dmcrypt and
> FPAG device. I hope some body can give me some idea where I should
> change to make the dmcrypt use FPGA.
If you integrate it to kernel crypto-api, it will be used automatically
when this module loads and the aes-xts mode is used in the mapping.
(Current crypt providers/drivers with it usage priorities are visible
in /proc/crypto - kernel prefers optimized drivers before generic one this way).
Ask on linux-crypto@vger.kernel.org mailing list how to do that properly.
Milan
--
mbroz@redhat.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dm-crypt] How To use FPGA to encrypt disk for dmcrypt
2009-11-18 13:23 [dm-crypt] How To use FPGA to encrypt disk for dmcrypt Bai Shuwei
2009-11-18 13:31 ` Milan Broz
@ 2009-11-19 7:43 ` Arno Wagner
1 sibling, 0 replies; 4+ messages in thread
From: Arno Wagner @ 2009-11-19 7:43 UTC (permalink / raw)
To: dm-crypt
On Wed, Nov 18, 2009 at 09:23:57PM +0800, Bai Shuwei wrote:
> Hi, All:
>
> Now I implement xts-aes algorithm with FPGA for disk encryption. But I
> am not sure how to write my device driver to connenct the dmcrypt and FPAG
> device. I hope some body can give me some idea where I should change to
> make the dmcrypt use FPGA.
>
> Thanks ALL!
>
> Bai SHuwei
I think basically you want to provide this via the crypto accelerator
hardware to the kernel, i.e. write a cryoto hardware kernel driver.
Then you can just select that cipher for dm-crypt from the commandline.
Arno
--
Arno Wagner, Dr. sc. techn., Dipl. Inform., CISSP -- Email: arno@wagner.name
GnuPG: ID: 1E25338F FP: 0C30 5782 9D93 F785 E79C 0296 797F 6B50 1E25 338F
----
Cuddly UI's are the manifestation of wishful thinking. -- Dylan Evans
If it's in the news, don't worry about it. The very definition of
"news" is "something that hardly ever happens." -- Bruce Schneier
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [dm-crypt] How To use FPGA to encrypt disk for dmcrypt
2009-11-18 13:31 ` Milan Broz
@ 2009-11-19 8:39 ` Bai Shuwei
0 siblings, 0 replies; 4+ messages in thread
From: Bai Shuwei @ 2009-11-19 8:39 UTC (permalink / raw)
To: Milan Broz; +Cc: dm-crypt
[-- Attachment #1: Type: text/plain, Size: 1339 bytes --]
On Wed, Nov 18, 2009 at 9:31 PM, Milan Broz <mbroz@redhat.com> wrote:
> On 11/18/2009 02:23 PM, Bai Shuwei wrote:
> > Now I implement xts-aes algorithm with FPGA for disk encryption. But
> > I am not sure how to write my device driver to connenct the dmcrypt and
> > FPAG device. I hope some body can give me some idea where I should
> > change to make the dmcrypt use FPGA.
>
> If you integrate it to kernel crypto-api, it will be used automatically
> when this module loads and the aes-xts mode is used in the mapping.
>
> (Current crypt providers/drivers with it usage priorities are visible
> in /proc/crypto - kernel prefers optimized drivers before generic one this
> way).
>
> Ask on linux-crypto@vger.kernel.org mailing list how to do that properly.
>
> Milan
> --
> mbroz@redhat.com
>
Now, I am trying to build the interface for dm-crypt using my FPGA. I find
there are two routines can register the algorithm
crypto_register_template()
and
crypto_register_alg()
So i want to know what's the difference between them. and which i should
choice to make my driver easier? Whether am i right to use the routine for
my project?
Thanks!
--
Love other people, as same as love yourself!
Don't think all the time, do it by your hands!
Personal URL: http://dslab.lzu.edu.cn:8080/members/baishw/
E-Mail: baishuwei@gmail.com
[-- Attachment #2: Type: text/html, Size: 2024 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-11-19 8:39 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-18 13:23 [dm-crypt] How To use FPGA to encrypt disk for dmcrypt Bai Shuwei
2009-11-18 13:31 ` Milan Broz
2009-11-19 8:39 ` Bai Shuwei
2009-11-19 7:43 ` Arno Wagner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox