[PATCH] crypto: api - Clear CRYPTO_ALG_DEAD bit before registering an alg

2017-01-13 Thread Salvatore Benedetto
Make sure CRYPTO_ALG_DEAD bit is cleared before proceeding with the algorithm registration. This fixes qat-dh registration when driver is restarted Signed-off-by: Salvatore Benedetto <salvatore.benede...@intel.com> --- crypto/algapi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/

[PATCH] crypto: kpp - clear CRYPTO_ALG_DEAD bit in prepare_alg

2017-01-02 Thread Salvatore Benedetto
Make sure CRYPTO_ALG_DEAD is not set when preparing for alg registration. This fixes qat-dh registration that occurs when reloading qat_c62x module. Signed-off-by: Salvatore Benedetto <salvatore.benede...@intel.com> --- crypto/kpp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/

[PATCH] crypto: rsa-pkcs1pad - Fix akcipher request allocation

2016-07-14 Thread Salvatore Benedetto
the structure with akcipher_request_alloc. Software akcipher implementation is working only because it is synchronous and it does not use a request context. Signed-off-by: Salvatore Benedetto <salvatore.benede...@intel.com> --- crypto/rsa-pkcs1pad.

[PATCH] crypto: qat - Stop dropping leading zeros from RSA output

2016-07-07 Thread Salvatore Benedetto
There is not need to drop leading zeros from the RSA output operations results. Signed-off-by: Salvatore Benedetto <salvatore.benede...@intel.com> --- drivers/crypto/qat/qat_common/qat_asym_algs.c | 20 1 file changed, 20 deletions(-) diff --git a/drivers/cryp

[PATCH] crypto: qat - Add DH support

2016-07-07 Thread Salvatore Benedetto
Add DH support under kpp api. Drop struct qat_rsa_request and introduce a more generic struct qat_asym_request and share it between RSA and DH requests. Signed-off-by: Salvatore Benedetto <salvatore.benede...@intel.com> --- drivers/crypto/qat/Kconfig| 1 + drivers/

[PATCH 3/3] crypto: qat - Add RSA CRT mode

2016-07-04 Thread Salvatore Benedetto
Extend qat driver to use RSA CRT mode when all CRT related components are present in the private key. Simplify code in qat_rsa_setkey by adding qat_rsa_clear_ctx. Signed-off-by: Salvatore Benedetto <salvatore.benede...@intel.com> --- drivers/crypto/qat/qat_common/qat_asym_algs.c

[PATCH 2/3] crypto: testmgr - Add 4K private key to RSA testvector

2016-07-04 Thread Salvatore Benedetto
Key generated with openssl. It also contains all fields required for testing CRT mode Signed-off-by: Salvatore Benedetto <salvatore.benede...@intel.com> --- crypto/testmgr.h | 200 ++- 1 file changed, 199 insertions(+), 1 deletion(-)

[PATCH 1/3] crypto: rsa - Store rest of the private key components

2016-07-04 Thread Salvatore Benedetto
When parsing a private key, store all non-optional fields. These are required for enabling CRT mode for decrypt and verify Signed-off-by: Salvatore Benedetto <salvatore.benede...@intel.com> --- crypto/rsa_helper.c | 75 +++ crypto/rsaprivke

[PATCH 0/3] Add RSA CRT mode to qat driver

2016-07-04 Thread Salvatore Benedetto
Hi Herbert, this patchset add CRT mode to qat driver. First patch extend the parsing of the private key so that all required CRT fields are saved. Second patch add a 4K test key. Third patch extend qat to use CRT. This latest patch is based on my patch that drop asn1 from qat driver. Salvatore

[PATCH] crypto: testmgr - Set err before proceeding

2016-07-04 Thread Salvatore Benedetto
Report correct error in case of failure Signed-off-by: Salvatore Benedetto <salvatore.benede...@intel.com> --- crypto/testmgr.c | 1 + 1 file changed, 1 insertion(+) diff --git a/crypto/testmgr.c b/crypto/testmgr.c index 8ea0d3f..769cc2a 100644 --- a/crypto/testmgr.c +++ b/crypto/tes

[PATCH v2] crypto: qat - Switch to new rsa_helper functions

2016-07-04 Thread Salvatore Benedetto
Drop all asn1 related code and use the new rsa_helper functions rsa_parse_[pub|priv]_key for parsing the key Signed-off-by: Salvatore Benedetto <salvatore.benede...@intel.com> --- changes from v1: - Remove testmgr unrelated changes - Rebased on latest cryptodev-2.6 drivers/crypto/qat/K

[PATCH] crypto: qat - Switch to new rsa_helper functions

2016-06-30 Thread Salvatore Benedetto
Drop all asn1 related code in qat and use the new rsa_helper functions rsa_parse_[pub|priv]_key for parsing the key Signed-off-by: Salvatore Benedetto <salvatore.benede...@intel.com> --- crypto/testmgr.c | 1 + drivers/crypto/qat/K

[PATCH v5] Bluetooth: convert smp and selftest to crypto kpp API

2016-06-24 Thread Salvatore Benedetto
* Convert both smp and selftest to new crypto kpp API * Remove module ecc as not more required * Add ecdh_helper functions for wrapping kpp async calls Signed-off-by: Salvatore Benedetto <salvatore.benede...@intel.com> --- Patch is based on http://git.kernel.org/pub/scm/linux/kern

Re: [cryptodev:master 79/79] (.text+0x330de0): multiple definition of `ecdh_shared_secret'

2016-06-24 Thread Salvatore Benedetto
On Fri, Jun 24, 2016 at 07:23:16AM +0100, Herbert Xu wrote: > On Fri, Jun 24, 2016 at 02:10:12PM +0800, Herbert Xu wrote: > > On Fri, Jun 24, 2016 at 07:06:49AM +0100, Salvatore Benedetto wrote: > > > > > > can you squash the following patch? > > > > No,

Re: [cryptodev:master 79/79] (.text+0x330de0): multiple definition of `ecdh_shared_secret'

2016-06-24 Thread Salvatore Benedetto
On Fri, Jun 24, 2016 at 02:10:12PM +0800, Herbert Xu wrote: > On Fri, Jun 24, 2016 at 07:06:49AM +0100, Salvatore Benedetto wrote: > > > > can you squash the following patch? > > No, please prune anything that we don't use from ecc.c. We do use the symbol in question, and I

Re: [cryptodev:master 79/79] (.text+0x330de0): multiple definition of `ecdh_shared_secret'

2016-06-24 Thread Salvatore Benedetto
DAY kernel test infrastructureOpen Source Technology Center > https://lists.01.org/pipermail/kbuild-all Intel Corporation Hi Herbert, can you squash the following patch? Thanks, Salvatore ---8<--- Rename ecdh_shared_secret Signed-off-by: Salvatore Benedet

[PATCH v11 0/3] Key-agreement Protocol Primitives (KPP) API

2016-06-22 Thread Salvatore Benedetto
in dh_check_params_length based on Stephan review Salvatore Benedetto (3): crypto: Key-agreement Protocol Primitives API (KPP) crypto: kpp - Add DH software implementation crypto: kpp - Add ECDH software support *** BLURB HERE *** Salvatore Benedetto (3): crypto: Key-agreement Protocol

[PATCH v11 3/3] crypto: kpp - Add ECDH software support

2016-06-22 Thread Salvatore Benedetto
* Implement ECDH under kpp API * Provide ECC software support for curve P-192 and P-256. * Add kpp test for ECDH with data generated by OpenSSL Signed-off-by: Salvatore Benedetto <salvatore.benede...@intel.com> --- crypto/Kconfig |5 + crypto/Makefile |4 +

[PATCH v11 1/3] crypto: Key-agreement Protocol Primitives API (KPP)

2016-06-22 Thread Salvatore Benedetto
() - It generates the shared secret for the session Other functions such as init() and exit() are provided for allowing cryptographic hardware to be inizialized properly before use Signed-off-by: Salvatore Benedetto <salvatore.benede...@intel.com> --- crypto/Kconfig | 10 ++

[PATCH v11 2/3] crypto: kpp - Add DH software implementation

2016-06-22 Thread Salvatore Benedetto
* Implement MPI based Diffie-Hellman under kpp API * Test provided uses data generad by OpenSSL Signed-off-by: Salvatore Benedetto <salvatore.benede...@intel.com> --- crypto/Kconfig | 8 ++ crypto/Makefile | 4 + crypto/dh.c

[PATCH v10 2/3] crypto: kpp - Add DH software implementation

2016-06-21 Thread Salvatore Benedetto
* Implement MPI based Diffie-Hellman under kpp API * Test provided uses data generad by OpenSSL Signed-off-by: Salvatore Benedetto <salvatore.benede...@intel.com> --- crypto/Kconfig | 8 ++ crypto/Makefile | 4 + crypto/dh.c

[PATCH v10 1/3] crypto: Key-agreement Protocol Primitives API (KPP)

2016-06-21 Thread Salvatore Benedetto
() - It generates the shared secret for the session Other functions such as init() and exit() are provided for allowing cryptographic hardware to be inizialized properly before use Signed-off-by: Salvatore Benedetto <salvatore.benede...@intel.com> --- crypto/Kconfig | 10 ++

[PATCH v10 0/3] Key-agreement Protocol Primitives (KPP) API

2016-06-21 Thread Salvatore Benedetto
already present in net/bluetooth and extended it in order to select different curves at runtime. Code for P192 was taken from tinycrypt. Changes from v1: * Change check in dh_check_params_length based on Stephan review Salvatore Benedetto (3): crypto: Key-agreement Protocol Primitives API (KPP

[PATCH v10 3/3] crypto: kpp - Add ECDH software support

2016-06-21 Thread Salvatore Benedetto
* Implement ECDH under kpp API * Provide ECC software support for curve P-192 and P-256. * Add kpp test for ECDH with data generated by OpenSSL Signed-off-by: Salvatore Benedetto <salvatore.benede...@intel.com> --- crypto/Kconfig |5 + crypto/Makefile |4 +

[PATCH v9 1/3] crypto: Key-agreement Protocol Primitives API (KPP)

2016-06-17 Thread Salvatore Benedetto
() - It generates the shared secret for the session Other functions such as init() and exit() are provided for allowing cryptographic hardware to be inizialized properly before use Signed-off-by: Salvatore Benedetto <salvatore.benede...@intel.com> --- crypto/Kconfig | 10 ++

[PATCH v9 0/3] Key-agreement Protocol Primitives (KPP) API

2016-06-17 Thread Salvatore Benedetto
curves at runtime. Code for P192 was taken from tinycrypt. Changes from v1: * Change check in dh_check_params_length based on Stephan review Salvatore Benedetto (3): crypto: Key-agreement Protocol Primitives API (KPP) crypto: kpp - Add DH software implementation crypto: kpp - Add ECDH

[PATCH v9 3/3] crypto: kpp - Add ECDH software support

2016-06-17 Thread Salvatore Benedetto
* Implement ECDH under kpp API * Provide ECC software support for curve P-192 and P-256. * Add kpp test for ECDH with data generated by OpenSSL Signed-off-by: Salvatore Benedetto <salvatore.benede...@intel.com> --- crypto/Kconfig |5 + crypto/Makefile |4 +

[PATCH v9 2/3] crypto: kpp - Add DH software implementation

2016-06-17 Thread Salvatore Benedetto
* Implement MPI based Diffie-Hellman under kpp API * Test provided uses data generad by OpenSSL Signed-off-by: Salvatore Benedetto <salvatore.benede...@intel.com> --- crypto/Kconfig | 8 ++ crypto/Makefile | 4 + crypto/dh.c

[PATCH v8 2/3] crypto: kpp - Add DH software implementation

2016-06-13 Thread Salvatore Benedetto
* Implement MPI based Diffie-Hellman under kpp API * Test provided uses data generad by OpenSSL Signed-off-by: Salvatore Benedetto <salvatore.benede...@intel.com> --- crypto/Kconfig | 8 ++ crypto/Makefile | 2 + crypto/dh.c

[PATCH v8 1/3] crypto: Key-agreement Protocol Primitives API (KPP)

2016-06-13 Thread Salvatore Benedetto
() - It generates the shared secret for the session Other functions such as init() and exit() are provided for allowing cryptographic hardware to be inizialized properly before use Signed-off-by: Salvatore Benedetto <salvatore.benede...@intel.com> --- crypto/Kconfig | 10 ++

[PATCH v8 0/3] Key-agreement Protocol Primitives (KPP) API

2016-06-13 Thread Salvatore Benedetto
module already present in net/bluetooth and extended it in order to select different curves at runtime. Code for P192 was taken from tinycrypt. Changes from v1: * Change check in dh_check_params_length based on Stephan review Salvatore Benedetto (3): crypto: Key-agreement Protocol

Re: [PATCH v5 1/3] crypto: Key-agreement Protocol Primitives API (KPP)

2016-06-08 Thread Salvatore Benedetto
On Wed, Jun 08, 2016 at 10:54:51AM +0800, Herbert Xu wrote: > On Thu, Jun 02, 2016 at 12:06:48PM +, Benedetto, Salvatore wrote: > > > > Off the top of my head, with ECDH when the user gets a EGAIN, he wants > > to reset the secret key only, not the params. > > I don't see any performance

[PATCH v4] Bluetooth: convert smp and selftest to crypto kpp API

2016-06-01 Thread Salvatore Benedetto
* Convert both smp and selftest to crypto kpp API * Remove module ecc as not more required * Add ecdh_helper functions for wrapping kpp async calls Signed-off-by: Salvatore Benedetto <salvatore.benede...@intel.com> --- Patch based on https://patchwork.kernel.org/patch/9145037/ Change

[PATCH v7 1/3] crypto: Key-agreement Protocol Primitives API (KPP)

2016-05-31 Thread Salvatore Benedetto
() * generate_secret() - It generates the shared secret for the session Other functions such as init() and exit() are provided for allowing cryptographic hardware to be inizialized properly before use Signed-off-by: Salvatore Benedetto <salvatore.benede...@intel.com> --- crypto/K

[PATCH v7 3/3] crypto: kpp - Add ECDH software support

2016-05-31 Thread Salvatore Benedetto
* Implement ECDH under kpp API * Provide ECC software support for curve P-192 and P-256. * Add kpp test for ECDH with data generated by OpenSSL Signed-off-by: Salvatore Benedetto <salvatore.benede...@intel.com> --- crypto/Kconfig |5 + crypto/Makefile |3 +

[PATCH v7 2/3] crypto: kpp - Add DH software implementation

2016-05-31 Thread Salvatore Benedetto
* Implement MPI based Diffie-Hellman under kpp API * Test provided uses data generad by OpenSSL Signed-off-by: Salvatore Benedetto <salvatore.benede...@intel.com> --- crypto/Kconfig | 8 ++ crypto/Makefile | 2 + crypto/dh.c

[PATCH v7 0/3] Key-agreement Protocol Primitives (KPP) API

2016-05-31 Thread Salvatore Benedetto
tinycrypt. Changes from v1: * Change check in dh_check_params_length based on Stephan review Salvatore Benedetto (3): crypto: Key-agreement Protocol Primitives API (KPP) crypto: kpp - Add DH software implementation crypto: kpp - Add ECDH software support crypto/Kconfig | 23

[PATCH v3] Bluetooth: convert smp and selftest to crypto kpp API

2016-05-13 Thread Salvatore Benedetto
* Convert both smp and selftest to crypto kpp API * Remove module ecc as not more required * Add ecdh_helper functions for wrapping kpp async calls Signed-off-by: Salvatore Benedetto <salvatore.benede...@intel.com> --- Patch based on https://patchwork.kernel.org/patch/9065591/ Changes f

[PATCH v6 3/3] crypto: kpp - Add ECDH software support

2016-05-11 Thread Salvatore Benedetto
* Implement ECDH under kpp API * Provide ECC software support for curve P-192 and P-256. * Add kpp test for ECDH with data generated by OpenSSL Signed-off-by: Salvatore Benedetto <salvatore.benede...@intel.com> --- crypto/Kconfig |5 + crypto/Makefile |3 +

[PATCH v6 2/3] crypto: kpp - Add DH software implementation

2016-05-11 Thread Salvatore Benedetto
* Implement MPI based Diffie-Hellman under kpp API * Test provided uses data generad by OpenSSL Signed-off-by: Salvatore Benedetto <salvatore.benede...@intel.com> --- crypto/Kconfig | 8 ++ crypto/Makefile | 2 + crypto/dh.c

[PATCH v6 1/3] crypto: Key-agreement Protocol Primitives API (KPP)

2016-05-11 Thread Salvatore Benedetto
() * generate_secret() - It generates the shared secret for the session Other functions such as init() and exit() are provided for allowing cryptographic hardware to be inizialized properly before use Signed-off-by: Salvatore Benedetto <salvatore.benede...@intel.com> --- crypto/K

[PATCH v6 0/3] Key-agreement Protocol Primitives (KPP) API

2016-05-11 Thread Salvatore Benedetto
. Changes from v1: * Change check in dh_check_params_length based on Stephan review Salvatore Benedetto (3): crypto: Key-agreement Protocol Primitives API (KPP) crypto: kpp - Add DH software implementation crypto: kpp - Add ECDH software support crypto/Kconfig | 23

[PATCH v2] Bluetooth: convert smp and selftest to crypto kpp API

2016-05-09 Thread Salvatore Benedetto
times out. Same behavior is observed without this patch though. This patch is based on https://patchwork.kernel.org/patch/9050061/ Signed-off-by: Salvatore Benedetto <salvatore.benede...@intel.com> --- net/bluetooth/Makefile | 2 +- net/bluetooth/ecc.c

[PATCH v5 3/3] crypto: kpp - Add ECDH software support

2016-05-09 Thread Salvatore Benedetto
* Implement ECDH under kpp API * Provide ECC software support for curve P-192 and P-256. * Add kpp test for ECDH with data generated by OpenSSL Signed-off-by: Salvatore Benedetto <salvatore.benede...@intel.com> --- crypto/Kconfig |5 + crypto/Makefile |3 +

[PATCH v5 1/3] crypto: Key-agreement Protocol Primitives API (KPP)

2016-05-09 Thread Salvatore Benedetto
() * generate_secret() - It generates the shared secret for the session Other functions such as init() and exit() are provided for allowing cryptographic hardware to be inizialized properly before use Signed-off-by: Salvatore Benedetto <salvatore.benede...@intel.com> --- crypto/K

[PATCH v5 2/3] crypto: kpp - Add DH software implementation

2016-05-09 Thread Salvatore Benedetto
* Implement MPI based Diffie-Hellman under kpp API * Test provided uses data generad by OpenSSL Signed-off-by: Salvatore Benedetto <salvatore.benede...@intel.com> --- crypto/Kconfig | 8 ++ crypto/Makefile | 2 + crypto/dh.c

[PATCH v5 0/3] Key-agreement Protocol Primitives (KPP) API

2016-05-09 Thread Salvatore Benedetto
in dh_check_params_length based on Stephan review Salvatore Benedetto (3): crypto: Key-agreement Protocol Primitives API (KPP) crypto: kpp - Add DH software implementation crypto: kpp - Add ECDH software support crypto/Kconfig | 23 + crypto/Makefile |6 + crypto

[PATCH] Bluetooth: convert smp module to crypto kpp API

2016-05-05 Thread Salvatore Benedetto
This patch has *not* been tested as I don't have the hardware. It's purpose is to show how to use the kpp API. Based on https://patchwork.kernel.org/patch/9022371/ Signed-off-by: Salvatore Benedetto <salvatore.benede...@intel.com> --- net/bluetooth/smp.

[PATCH 3/3 v4] crypto: kpp - Add ECDH software support

2016-05-05 Thread Salvatore Benedetto
* Implement ECDH under kpp API * Provide ECC software support for curve P-192 and P-256. * Add kpp test for ECDH with data generated by OpenSSL Signed-off-by: Salvatore Benedetto <salvatore.benede...@intel.com> --- crypto/Kconfig |5 + crypto/Makefile |3 +

[PATCH 2/3 v4] crypto: kpp - Add DH software implementation

2016-05-05 Thread Salvatore Benedetto
* Implement MPI based Diffie-Hellman under kpp API * Test provided uses data generad by OpenSSL Signed-off-by: Salvatore Benedetto <salvatore.benede...@intel.com> --- crypto/Kconfig | 8 ++ crypto/Makefile | 2 + crypto/dh.c

[PATCH 1/3 v4] crypto: Key-agreement Protocol Primitives API (KPP)

2016-05-05 Thread Salvatore Benedetto
() * generate_secret() - It generates the shared secret for the session Other functions such as init() and exit() are provided for allowing cryptographic hardware to be inizialized properly before use Signed-off-by: Salvatore Benedetto <salvatore.benede...@intel.com> --- crypto/K

[PATCH 1/3] crypto: Key-agreement Protocol Primitives API (KPP)

2016-05-03 Thread Salvatore Benedetto
() * generate_secret() - It generates the shared secret for the session Other functions such as init() and exit() are provided for allowing cryptographic hardware to be inizialized properly before use Signed-off-by: Salvatore Benedetto <salvatore.benede...@intel.com> --- crypto/K

[PATCH 2/3] crypto: kpp - Add DH software implementation

2016-05-03 Thread Salvatore Benedetto
* Implement MPI based Diffie-Hellman under kpp API * Test provided uses data generad by OpenSSL Signed-off-by: Salvatore Benedetto <salvatore.benede...@intel.com> --- crypto/Kconfig | 8 ++ crypto/Makefile | 2 + crypto/dh.c

[PATCH 3/3] crypto: kpp - Add ECDH software support

2016-05-03 Thread Salvatore Benedetto
* Implement ECDH under kpp API * Provide ECC software support for curve P-192 and P-256. * Add kpp test for ECDH with data generated by OpenSSL Signed-off-by: Salvatore Benedetto <salvatore.benede...@intel.com> --- crypto/Kconfig |5 + crypto/Makefile |3 +

[PATCH 0/3 v3] Key-agreement Protocol Primitives (KPP) API

2016-05-03 Thread Salvatore Benedetto
in dh_check_params_length based on Stephan review Changed from v2: * Add support for ECDH (curve P192 and P256). I reused the ecc module already present in net/bluetooth and extended it in order to select different curves at runtime. Code for P192 was taken from tinycrypt. Salvatore Benedetto (3

[PATCH 2/2 v2] crypto: kpp - Add DH software implementation

2016-04-15 Thread Salvatore Benedetto
* Implement MPI based Diffie-Hellman under kpp API * Test provided uses data generad by OpenSSL Signed-off-by: Salvatore Benedetto <salvatore.benede...@intel.com> --- crypto/Kconfig | 8 ++ crypto/Makefile | 2 + crypto/dh.c

[PATCH 1/2 v2] crypto: Key-agreement Protocol Primitives API (KPP)

2016-04-15 Thread Salvatore Benedetto
() * generate_secret() - It generates the shared secret for the session Other functions such as init() and exit() are provided for allowing cryptographic hardware to be inizialized properly before use Signed-off-by: Salvatore Benedetto <salvatore.benede...@intel.com> --- crypto/K

[PATCH 0/2 v2] Key-agreement Protocol Primitives (KPP) API

2016-04-15 Thread Salvatore Benedetto
in dh_check_params_length based on Stephan review Salvatore Benedetto (2): crypto: Key-agreement Protocol Primitives API (KPP) crypto: kpp - Add DH software implementation crypto/Kconfig | 18 +++ crypto/Makefile | 3 + crypto/crypto_user.c| 20

[PATCH 0/2] Key-agreement Protocol Primitives (KPP) API

2016-04-12 Thread Salvatore Benedetto
Hi Herb, the following patchset introduces a new API for abstracting key-agreement protocols such as DH and ECDH. It provides the primitives required for implementing the protocol, thus the name KPP (Key-agreement Protocol Primitives). Regards, Salvatore Salvatore Benedetto (2): crypto: Key

[PATCH 2/2] crypto: kpp - Add DH software implementation

2016-04-12 Thread Salvatore Benedetto
* Implement MPI based Diffie-Hellman under kpp API * Add test with data generad by OpenSSL Signed-off-by: Salvatore Benedetto <salvatore.benede...@intel.com> --- crypto/Kconfig | 8 ++ crypto/Makefile | 2 + crypto/dh.c

[PATCH 1/2] crypto: Key-agreement Protocol Primitives API (KPP)

2016-04-12 Thread Salvatore Benedetto
() * generate_secret() - It generates the shared secret for the session Other functions such as init() and exit() are provided for allowing cryptographic hardware to be inizialized properly before use Signed-off-by: Salvatore Benedetto <salvatore.benede...@intel.com> --- crypto/K

[PATCH V2] crypto: implement DH primitives under akcipher API

2016-03-03 Thread Salvatore Benedetto
-off-by: Salvatore Benedetto <salvatore.benede...@intel.com> --- Changes in V2: * Use dh_get_params where required * Use key lengths defined in RFC3526 * Set fips_allowed=1 for the test crypto/Kconfig| 8 ++ crypto/Makefile | 7 ++ crypto/dh.c

Re: [PATCH] crypto: implement DH primitives under akcipher API

2016-03-02 Thread Salvatore Benedetto
t; 4) Call encrypt() by passing the counter part public key (yb) in raw format > > as input to get back the shared secret calculated as zz = yb^xa mod p > > > > A test is included in the patch. Test vector has been generated with > > openssl > > > > Signed-off-

Re: [PATCH] crypto: implement DH primitives under akcipher API

2016-03-01 Thread Salvatore Benedetto
Hi Stephan, thanks for reviewing. On Mon, Feb 15, 2016 at 02:57:08PM +0100, Stephan Mueller wrote: > Am Montag, 15. Februar 2016, 09:01:55 schrieb Salvatore Benedetto: > > Hi Salvatore, Herbert, > > > Implement Diffie-Hellman primitives required by the scheme under the >

[PATCH] crypto: qat - Set ctx->e to NULL in qat_rsa_exit_tfm

2016-02-09 Thread Salvatore Benedetto
Signed-off-by: Salvatore Benedetto <salvatore.benede...@intel.com> --- drivers/crypto/qat/qat_common/qat_asym_algs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/qat/qat_common/qat_asym_algs.c b/drivers/crypto/qat/qat_common/qat_asym_algs.c index 5

[PATCH] crypto: qat - remove superfluous check from adf_probe

2015-10-22 Thread Salvatore Benedetto
- ent->device is already checked at the beginning of the function against the same value. This check is a duplicate. Signed-off-by: Salvatore Benedetto <salvatore.benede...@intel.com> --- drivers/crypto/qat/qat_dh895xcc/adf_drv.c | 8 +--- drivers/crypto/qat/qat_dh895xccvf/