Re: Unable to decrypt message

2016-06-04 Thread Gadre Nayan
Jun 4, 2016 at 3:51 PM, Gadre Nayan wrote: > Hi, > > I am trying to encrypt decrypt data over the wire. On the receiver > side I have a pre-routing hook where I get reference to my encrypted > data and apply decryption using the skcipher api's, however I am > unable to get the

Unable to decrypt message

2016-06-04 Thread Gadre Nayan
Hi, I am trying to encrypt decrypt data over the wire. On the receiver side I have a pre-routing hook where I get reference to my encrypted data and apply decryption using the skcipher api's, however I am unable to get the same data back. My algo is same on both ends "cbc(aes)" and using CRYPTO_A

Re: Decrypting data in RX path

2016-05-16 Thread Gadre Nayan
to return immediately. So then when is the deferred decryption checked. I see esp_input_done2 as well. How is the flow and call of these callbacks happening. Apologize for being so verbose. Thanks. On Mon, May 16, 2016 at 6:02 PM, Stephan Mueller wrote: > Am Montag, 16. Mai 2016, 17:24:12

Re: Decrypting data in RX path

2016-05-16 Thread Gadre Nayan
such arguments, otherwise data won't be decrypted properly ? On Mon, May 16, 2016 at 5:34 PM, Catalin Vasile wrote: > Inline comments. > > > From: linux-crypto-ow...@vger.kernel.org > on behalf of Gadre Nayan > Sent: Monday, May 16,

Decrypting data in RX path

2016-05-16 Thread Gadre Nayan
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-

Re: skcipher

2016-05-02 Thread Gadre Nayan
ecause something else failed\n"); kfree(ivdata); } if(!IS_ERR(scratchpad)){ pr_err("NO_ERR: scratch: reached here because something else failed\n"); kfree(scratchpad); } Thanks On Mon, May 2, 2016 at 9:03 PM,

Re: skcipher

2016-05-02 Thread Gadre Nayan
Q or region which is not shared. Thanks. Nayan Gadre. On Mon, May 2, 2016 at 11:21 AM, Stephan Mueller wrote: > Am Montag, 2. Mai 2016, 11:14:01 schrieb Gadre Nayan: > > Hi Gadre, > >> Hello, >> >> I have read the crypto library documentation on chronox.de. >&

skcipher

2016-05-01 Thread Gadre Nayan
Hello, I have read the crypto library documentation on chronox.de. I used there sample code for symmetric key cipher operation. However in the check: skcipher = crypto_alloc_skcipher("cbc-aes-aesni", 0, 0); if (IS_ERR(skcipher)) { pr_info("could not allocate skcipher handle\n"); return PTR_ERR(s

Crypto hash function decryption

2016-05-01 Thread Gadre Nayan
Hi, I wanted to implement a simple encryption decryption of data in kernel space to start with the kernel crypto library. I have the following: int myFunction() { struct scatterlist sg; struct crypto_hash *tfm; struct hash_desc desc; unsigned char input[21];