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

Patch "crypto: gcm - Fix rfc4543 decryption crash" has been added to the 3.14-stable tree

2016-05-01 Thread gregkh
This is a note to let you know that I've just added the patch titled crypto: gcm - Fix rfc4543 decryption crash to the 3.14-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is:

Re: Crypto hash function decryption

2016-05-01 Thread Stephan Mueller
Am Sonntag, 1. Mai 2016, 19:05:12 schrieb Gadre Nayan: Hi Gadre, > Yes, i was reading about that till your reply came. > > So then if not hash...then should I use asymmetric or symmetric key APIs. > > My kernel version is 3.19, what APIs can I use which can compile with this > kernel version.

Re: Crypto hash function decryption

2016-05-01 Thread Stephan Mueller
Am Sonntag, 1. Mai 2016, 18:35:51 schrieb Gadre Nayan: Hi Gadre, > 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; >

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];