Linux cryptographic layer development
 help / color / mirror / Atom feed
* Decrypting data in RX path
@ 2016-05-16 11:54 Gadre Nayan
  2016-05-16 12:04 ` Catalin Vasile
  2016-05-16 12:32 ` Stephan Mueller
  0 siblings, 2 replies; 7+ messages in thread
From: Gadre Nayan @ 2016-05-16 11:54 UTC (permalink / raw)
  To: linux-crypto

Hi,

I am able to encrypt data using the asynchronous kernel crypto API's.
I can observe the encrypted data on the protocol analyzer.

I wanted to decry-pt the data now on the receiver side, So I have
following questions.

1. What is the best place to decrypt the data, in kernel space (module
(pre-routing hook) or driver) OR user space using (maybe using raw
sockets or after socket recv).

What precautions should be taken in terms of locking while using
crypto api's in kernel space in RX path (Softirq context) --> Can
someone point to existing sample in kernel where decryption is done in
RX path.


2. If I encrypt data in kernel space can I decrypt it in User-space
using same encryption methods and Keys.

Thanks.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-05-18 10:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-16 11:54 Decrypting data in RX path Gadre Nayan
2016-05-16 12:04 ` Catalin Vasile
2016-05-16 12:11   ` Gadre Nayan
2016-05-16 12:32 ` Stephan Mueller
2016-05-16 14:40   ` Gadre Nayan
2016-05-18  7:01     ` Catalin Vasile
2016-05-18 10:57       ` Stephan Mueller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox