Re: communicating from the user space

2015-02-22 Thread sri sowj
Hi Nikos, Please can you let me know my understanding regarding openssl and crypto are correct? I have mentioned my understanding in my earlier posts,but let me mention it here again. I want to interact with Crypto Hardware from user space using openssl like libraries based applications through c

Re: communicating from the user space

2015-02-22 Thread Nikos Mavrogiannopoulos
On Sun, 2015-02-22 at 16:04 +0100, Stephan Mueller wrote: > Am Sonntag, 22. Februar 2015, 18:32:34 schrieb sri sowj: > > Hi sri, > > > Hi Stephen, > > > > It was a great information with respective PF_ALG , I have explored a > > bit on openssl and algorithms prospect , Please let me know if > >

Re: communicating from the user space

2015-02-22 Thread Stephan Mueller
Am Sonntag, 22. Februar 2015, 21:11:13 schrieb sri sowj: Hi sri, > Hi Stephen, > > Thank you very much for your time and information. I really appreciate > your time and efforts. > > I am little confused here , is "libkcpi" is alternative to other > method(#1 to #5 for libaf_alg.so ) I mentione

Re: communicating from the user space

2015-02-22 Thread sri sowj
Hi Stephen, Thank you very much for your time and information. I really appreciate your time and efforts. I am little confused here , is "libkcpi" is alternative to other method(#1 to #5 for libaf_alg.so ) I mentioned? if yes then how does libkcpi handles with openssl engine ? please can you als

Re: communicating from the user space

2015-02-22 Thread Stephan Mueller
Am Sonntag, 22. Februar 2015, 18:32:34 schrieb sri sowj: Hi sri, > Hi Stephen, > > It was a great information with respective PF_ALG , I have explored a > bit on openssl and algorithms prospect , Please let me know if > anything to add to it. > > openssl crypto engine: > > below are the steps

Re: communicating from the user space

2015-02-22 Thread sri sowj
Hi Stephen, It was a great information with respective PF_ALG , I have explored a bit on openssl and algorithms prospect , Please let me know if anything to add to it. openssl crypto engine: below are the steps to enable openssl to communicate using pf/af_alg. #1:git clone http://src.carnivore.

[PATCH v2 6/7] AES for PPC/SPE - glue code

2015-02-22 Thread Markus Stockhausen
[PATCH v2 6/7] AES for PPC/SPE - glue code Integrate the assembler modules into the kernel crypto framework. Take care to avoid long intervals of disabled preemption. Signed-off-by: Markus Stockhausen diff --git a/arch/powerpc/crypto/aes_spe_glue.c b/arch/powerpc/crypto/aes_spe_glue.c new file

[PATCH v2 7/7] AES for PPC/SPE - kernel config

2015-02-22 Thread Markus Stockhausen
[PATCH v2 7/7] AES for PPC/SPE - kernel config Integrate the module into the kernel configuration v2 changes - better explanation of use case in help text Signed-off-by: Markus Stockhausen diff --git a/arch/powerpc/crypto/Makefile b/arch/powerpc/crypto/Makefile index a07e763..1698fb9 100644 --

[PATCH v2 5/7] AES for PPC/SPE - ECB/CBC/CTR/XTS modes

2015-02-22 Thread Markus Stockhausen
[PATCH v2 5/7] AES for PPC/SPE - ECB/CBC/CTR/XTS modes The assembler block cipher module that controls the core AES functions. Signed-off-by: Markus Stockhausen diff --git a/arch/powerpc/crypto/aes-spe-modes.S b/arch/powerpc/crypto/aes-spe-modes.S new file mode 100644 index 000..ad48032 --

[PATCH v2 1/7] AES for PPC/SPE - register defines

2015-02-22 Thread Markus Stockhausen
[PATCH v2 1/7] AES for PPC/SPE - register defines Define some register aliases for better readability. Signed-off-by: Markus Stockhausen diff --git a/arch/powerpc/crypto/aes-spe-regs.h b/arch/powerpc/crypto/aes-spe-regs.h new file mode 100644 index 000..30d217b --- /dev/null +++ b/arch/pow

[PATCH v2 3/7] AES for PPC/SPE - assembler core

2015-02-22 Thread Markus Stockhausen
[PATCH v2 3/7] AES for PPC/SPE - assembler core The assembler AES encryption and decryption core routines. Implemented & optimized for big endian. Nevertheless they work on little endian too. For most efficient reuse in (higher level) block cipher routines they are implemented as "fast" call mod

[PATCH v2 4/7] AES for PPC/SPE - key handling

2015-02-22 Thread Markus Stockhausen
[PATCH v2 4/7] AES for PPC/SPE - key handling Key generation for big endian core routines. Signed-off-by: Markus Stockhausen diff --git a/arch/powerpc/crypto/aes-spe-keys.S b/arch/powerpc/crypto/aes-spe-keys.S new file mode 100644 index 000..be8090f --- /dev/null +++ b/arch/powerpc/crypto/

[PATCH v2 2/7] AES for PPC/SPE - aes tables

2015-02-22 Thread Markus Stockhausen
[PATCH v2 2/7] AES for PPC/SPE - aes tables 4K AES tables for big endian. To reduce the possiblity of timing attacks, the size has been cut to 8KB + 256 bytes in contrast to 16KB in the generic implementation. That is not perfect but at least a good tradeoff for CPU limited router devices. v2 ch

[PATCH v2 0/7] AES for PPC/SPE

2015-02-22 Thread Markus Stockhausen
[PATCH v2 0/7] AES for PPC/SPE The following patches add support for 64bit accelerated AES calculation on PPC processors with SPE instruction set. Besides the AES core module it implements ECB/CBC/CTR/XTS as block ciphers. The implementation takes care of the following constraints: - save SPE re