Re: skcipher and aead API question

2019-07-05 Thread Herbert Xu
On Fri, Jul 05, 2019 at 09:48:53AM +, Pascal Van Leeuwen wrote: > Hi, > > Just browsing through include/crypto/skcipher.h and include/crypto/aead.h I > noticed that > struct skcipher_alg and struct aead_alg define callbacks named 'init' and > 'exit' as well as a > field called 'chunksize'. T

Re: skcipher

2016-05-02 Thread Stephan Mueller
Am Dienstag, 3. Mai 2016, 10:34:01 schrieb Gadre Nayan: Hi Gadre, > Hello, > > I tried few combinations of algorithms: > > 1. skcipher = crypto_alloc_skcipher("aes", 0, 0); > > could not allocate skcipher handle: -2 > lsmod: > aes_i586 20480 0 Please read the documentation and

Re: skcipher

2016-05-02 Thread Gadre Nayan
Hello, I tried few combinations of algorithms: 1. skcipher = crypto_alloc_skcipher("aes", 0, 0); could not allocate skcipher handle: -2 lsmod: aes_i586 20480 0 2. skcipher = crypto_alloc_skcipher("cbc(aes)", 0, 0); So here all allocations work but, in test_skcipher_encdec this l

Re: skcipher

2016-05-02 Thread Stephan Mueller
Am Montag, 2. Mai 2016, 21:00:25 schrieb Gadre Nayan: Hi Gadre, > Hi Stephan, > > I checked modinfo aesni_intel: > filename: /lib/modules/4.5.0/kernel/arch/x86/crypto/aesni-intel.ko > alias: crypto-aes > alias: aes > license:GPL > description:Rijndael (AES) Ci

Re: skcipher

2016-05-02 Thread Gadre Nayan
Hi Stephan, I checked modinfo aesni_intel: filename: /lib/modules/4.5.0/kernel/arch/x86/crypto/aesni-intel.ko alias: crypto-aes alias: aes license:GPL description:Rijndael (AES) Cipher Algorithm, Intel AES-NI instructions optimized alias: crypto-fpu ali

Re: skcipher

2016-05-01 Thread Stephan Mueller
Am Montag, 2. Mai 2016, 11:14:01 schrieb Gadre Nayan: Hi Gadre, > 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 (I