Re: using the crypto api for aes encryption

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

 



Manjunath M Prabhu wrote:

> hi, i am trying to build a kernel module to encrypt all out-going
> packets and decrypt all incoming packets only on a particular
> interface. i am basically looking at encrypting/ecrypting only the
> transport header.....i have been able to capture the transport
> header using the net-filter hook....

Are you sure you don't want to use IPsec instead?

> i want to use the "crypto api" and use "cipher based AES
> encryption" to encrypt these captured headers..... i have gone
> through the source/Documentation/crypto/api.txt......but i am
> looking at something elaborate....
>
> can someone tell me how it can be done...and which functions are to
>  be used or possibly pointing to some link which has an
> example.....

Look for "cryptoapi-demo.c" at http://www.logix.cz/michal/devel/crypto/

Michal Ludvig
-- 
* Personal homepage - http://www.logix.cz/michal


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[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