Re: [PATCH 0/6] Add support for ECDSA algorithm

2017-02-03 Thread Nitin Kumbhar
Hello Herbert, On 2/2/2017 7:27 PM, Herbert Xu wrote: On Thu, Jan 26, 2017 at 11:30:04AM +0530, Nitin Kumbhar wrote: This ECDSA implementation is analogous to the RSA kernel implementation for signature generation / verification. It extends ECC family of algorithms like ECDH to support

[PATCH v2 0/6] Add support for ECDSA algorithm

2017-02-03 Thread Nitin Kumbhar
and verity tests to reuse code Nitin Kumbhar (6): crypto: ecc: separate out ecc and ecdh crypto: ecc: add vli and ecc ops crypto: ecc: export vli and ecc ops crypto: ecdsa: add ECDSA SW implementation crypto: testmgr: add ECDSA tests crypto: tcrypt: add ECDSA test modes crypto/Kco

[PATCH v2 2/6] crypto: ecc: add vli and ecc ops

2017-02-03 Thread Nitin Kumbhar
Add functions to copy vli from buffers, to print vli in big endian format, for vli mod and mod multiplication ops, ecc point addition and ecc pub key validation. Signed-off-by: Nitin Kumbhar --- crypto/ecc.c | 189 ++ 1 files changed, 189

[PATCH v2 4/6] crypto: ecdsa: add ECDSA SW implementation

2017-02-03 Thread Nitin Kumbhar
well. Signed-off-by: Nitin Kumbhar --- crypto/Kconfig|7 + crypto/Makefile |3 + crypto/ecdsa.c| 362 + crypto/ecdsa_helper.c | 116 +++ include/crypto/akcipher.h |5 +- include/crypto

[PATCH v2 6/6] crypto: tcrypt: add ECDSA test modes

2017-02-03 Thread Nitin Kumbhar
Update tcrypt module to include a new ECDSA test modes. It includes: tcrypt.ko mode=560 for ECDSA sign/verify validation. tcrypt.ko mode=561 for ECDSA sign/verify op perf in cycles. tcrypt.ko mode=561 sec= for number of ECDSA sign verify ops in given time. Signed-off-by: Nitin Kumbhar

[PATCH v2 5/6] crypto: testmgr: add ECDSA tests

2017-02-03 Thread Nitin Kumbhar
Update crypto test manager to include NIST ECDSA test vectors and various ECDSA tests. These include tests for ECDSA signing, ECDSA sign-verification, ECDSA signing and verifying generated signatures and invalidation of incorrect signatures. Signed-off-by: Nitin Kumbhar --- crypto/testmgr.c

[PATCH v2 3/6] crypto: ecc: export vli and ecc ops

2017-02-03 Thread Nitin Kumbhar
Export vli and ECC related functions so that these can be used by all ECC algorithm modules like ECDH, ECDSA and ECIES. Signed-off-by: Nitin Kumbhar --- crypto/ecc.c | 115 +- crypto/ecc.h | 56 2 files

[PATCH v2 1/6] crypto: ecc: separate out ecc and ecdh

2017-02-03 Thread Nitin Kumbhar
lper routines and ECC curves are moved to ECC specific files. Signed-off-by: Nitin Kumbhar --- crypto/Kconfig |7 +++ crypto/Makefile |5 +- crypto/ecc.c| 133 ++ crypto/ecc.h| 47 ++--- cr

Re: [PATCH 0/6] Add support for ECDSA algorithm

2017-01-25 Thread Nitin Kumbhar
Hello Herbert, On 1/23/2017 7:54 PM, Herbert Xu wrote: On Fri, Jan 20, 2017 at 05:05:55PM +0530, Nitin Kumbhar wrote: Hello, This patch series adds support for Elliptic Curve Digital Signature Algorithm (ECDSA). To reuse existing ECC functionality, which is added as part of ECDH, it separates

Re: [PATCH 5/6] crypto: testmgr: add ECDSA tests

2017-01-25 Thread Nitin Kumbhar
Hello Stephan, On 1/20/2017 6:49 PM, Stephan Müller wrote: Am Freitag, 20. Januar 2017, 17:06:00 CET schrieb Nitin Kumbhar: Hi Nitin, Update crypto test manager to include NIST ECDSA test vectors and various ECDSA tests. These include tests for ECDSA signing, ECDSA sign-verification, ECDSA

Re: [PATCH 4/6] crypto: ecdsa: add ECDSA SW implementation

2017-01-25 Thread Nitin Kumbhar
Hello Stephan, On 1/20/2017 6:36 PM, Stephan Müller wrote: Am Freitag, 20. Januar 2017, 17:05:59 CET schrieb Nitin Kumbhar: Hi Nitin, This adds support for ECDSA algorithm. This implementation supports sign and verify functions for ECDSA algorithm using akcipher. As ECDSA is a signing

[PATCH 2/6] crypto: ecc: add vli and ecc ops

2017-01-20 Thread Nitin Kumbhar
Add functions to copy vli from buffers, to print vli in big endian format, for vli mod and mod multiplication ops and ecc point addition. Signed-off-by: Nitin Kumbhar --- crypto/ecc.c | 168 ++ 1 files changed, 168 insertions(+), 0

[PATCH 5/6] crypto: testmgr: add ECDSA tests

2017-01-20 Thread Nitin Kumbhar
Update crypto test manager to include NIST ECDSA test vectors and various ECDSA tests. These include tests for ECDSA signing, ECDSA sign-verification, ECDSA signing and verifying generated signatures and invalidation of incorrect signatures. Signed-off-by: Nitin Kumbhar --- crypto/testmgr.c

[PATCH 6/6] crypto: tcrypt: add ECDSA test modes

2017-01-20 Thread Nitin Kumbhar
Update tcrypt module to include a new ECDSA test modes. It includes: tcrypt.ko mode=560 for ECDSA sign/verify validation. tcrypt.ko mode=561 for ECDSA sign/verify op perf in cycles. tcrypt.ko mode=561 sec= for number of ECDSA sign verify ops in given time. Signed-off-by: Nitin Kumbhar

[PATCH 1/6] crypto: ecc: separate out ecc and ecdh

2017-01-20 Thread Nitin Kumbhar
lper routines and ECC curves are moved to ECC specific files. Signed-off-by: Nitin Kumbhar --- crypto/Kconfig |7 +++ crypto/Makefile |5 +- crypto/ecc.c| 133 ++ crypto/ecc.h| 45 ++-- cr

[PATCH 0/6] Add support for ECDSA algorithm

2017-01-20 Thread Nitin Kumbhar
ches #5 and #6 add ECDSA tests to validate ECDSA functionality and measure ECDSA performance. Nitin Kumbhar (6): crypto: ecc: separate out ecc and ecdh crypto: ecc: add vli and ecc ops crypto: ecc: export vli and ecc ops crypto: ecdsa: add ECDSA SW implementation crypto: testmgr: add E

[PATCH 3/6] crypto: ecc: export vli and ecc ops

2017-01-20 Thread Nitin Kumbhar
Export vli and ECC related functions so that these can be used by all ECC algorithm modules like ECDH, ECDSA and ECIES. Signed-off-by: Nitin Kumbhar --- crypto/ecc.c | 114 +- crypto/ecc.h | 53 +++ 2 files

[PATCH 4/6] crypto: ecdsa: add ECDSA SW implementation

2017-01-20 Thread Nitin Kumbhar
well. Signed-off-by: Nitin Kumbhar --- crypto/Kconfig|7 + crypto/Makefile |3 + crypto/ecdsa.c| 331 + crypto/ecdsa_helper.c | 116 include/crypto/akcipher.h |5 +- include/crypto