RE: Encrypting/Decrypting files................

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Title: RE: Encrypting/Decrypting files................

Hi Mouw,
   will dm_crypt or cryptoloop allow me to use my device for doing encryption/decryption, if so can u just give me a hint...

Thanks
Ashok





On Wed, May 16, 2007 at 03:52:07PM +0530, ashok.shanmugam@xxxxxxxxx wrote:
>  I have a character device which does the encryption/decryption for
>  me. I want to tweak my kernel so that all the files that comes from
>  a partition say /tmp/ has to be sent to the driver for
>  encryption/decryption, then this encrypted data has to be written to
>  the harddisk.
>
>  The application isn't aware of encryption/decryption, just does
>  write() or read()...
>
> How can i achieve this, is it i need to tweak the vfs_write or should
> i make wrapper for system calls, which is the feasible
> solution...Please help me..

Don't try to reinvent the wheel, just use dm_crypt or cryptoloop, they
both already do what you want.


Erik

- --
They're all fools. Don't worry. Darwin may be slow, but he'll
eventually get them. -- Matthew Lammers in alt.sysadmin.recovery
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGSwK3/PlVHJtIto0RAvLaAKCLXq41bfy9jisjN0xT0nfwQ2UxGQCbBU6S
UvbozicIM45JZy/JqNkdhtI=
=hq/e
-----END PGP SIGNATURE-----


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux