[v5,0/2] test/crypto: add unit testcase for asym crypto

Message ID 1531238491-10542-1-git-send-email-shally.verma@caviumnetworks.com (mailing list archive)
Headers
Series test/crypto: add unit testcase for asym crypto |

Message

Shally Verma July 10, 2018, 4:01 p.m. UTC
  This patch series add unit test case for asymmetric crypto.

Current testcase covers following operations:
- RSA encrypt, decrypt, sign and verify
- Modular Inversion and Exponentiation
- Diffie-Hellman  key pair generation and shared secret compute
- DSA sign and verify

All test cases use pre-defined test vectors.

changes in v5:
- replace snprintf with rte_log
- remove redundant free from test
- incorporate other v4 review feedback
- This patch belong to patch series lib spec patch v5:
  "[PATCH v5 1/4]cryptodev: add asymmetric xform
   and op definitions"

changes in v4:
- add pre-defined test vectors for each xform and
  remove openssl SW lib  dependency
- This patch belong to patch series:
  "lib/cryptodev: add asymmetric algos in cryptodev"
 ( http://patches.dpdk.org/patch/42158/ -
   http://patches.dpdk.org/patch/42162)

For further history, see asymmetric crypto support patch series v3
 (https://patches.dpdk.org/patch/40075/ - 
  https://patches.dpdk.org/patch/40079/)

Sunila Sahu (2):
  test/crypto: add rsa and mod tests
  test/crypto: add dh and dsa tests

 test/test/Makefile                          |    1 +
 test/test/meson.build                       |    2 +
 test/test/test_cryptodev_asym.c             | 1369 +++++++++++++++++++++++++++
 test/test/test_cryptodev_asym_util.h        |   42 +
 test/test/test_cryptodev_dh_test_vectors.h  |   80 ++
 test/test/test_cryptodev_dsa_test_vectors.h |  117 +++
 test/test/test_cryptodev_mod_test_vectors.h |  103 ++
 test/test/test_cryptodev_rsa_test_vectors.h |   88 ++
 8 files changed, 1802 insertions(+)
 create mode 100644 test/test/test_cryptodev_asym.c
 create mode 100644 test/test/test_cryptodev_asym_util.h
 create mode 100644 test/test/test_cryptodev_dh_test_vectors.h
 create mode 100644 test/test/test_cryptodev_dsa_test_vectors.h
 create mode 100644 test/test/test_cryptodev_mod_test_vectors.h
 create mode 100644 test/test/test_cryptodev_rsa_test_vectors.h
  

Comments

De Lara Guarch, Pablo July 10, 2018, 9:35 p.m. UTC | #1
> -----Original Message-----
> From: Shally Verma [mailto:shally.verma@caviumnetworks.com]
> Sent: Tuesday, July 10, 2018 5:01 PM
> To: De Lara Guarch, Pablo <pablo.de.lara.guarch@intel.com>
> Cc: dev@dpdk.org; pathreya@caviumnetworks.com;
> nmurthy@caviumnetworks.com
> Subject: [PATCH v5 0/2]test/crypto: add unit testcase for asym crypto
> 
> This patch series add unit test case for asymmetric crypto.
> 
> Current testcase covers following operations:
> - RSA encrypt, decrypt, sign and verify
> - Modular Inversion and Exponentiation
> - Diffie-Hellman  key pair generation and shared secret compute
> - DSA sign and verify
> 
> All test cases use pre-defined test vectors.

Series-acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
  
De Lara Guarch, Pablo July 10, 2018, 9:41 p.m. UTC | #2
> -----Original Message-----
> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of De Lara Guarch, Pablo
> Sent: Tuesday, July 10, 2018 10:36 PM
> To: Shally Verma <shally.verma@caviumnetworks.com>
> Cc: dev@dpdk.org; pathreya@caviumnetworks.com;
> nmurthy@caviumnetworks.com
> Subject: Re: [dpdk-dev] [PATCH v5 0/2]test/crypto: add unit testcase for asym
> crypto
> 
> 
> 
> > -----Original Message-----
> > From: Shally Verma [mailto:shally.verma@caviumnetworks.com]
> > Sent: Tuesday, July 10, 2018 5:01 PM
> > To: De Lara Guarch, Pablo <pablo.de.lara.guarch@intel.com>
> > Cc: dev@dpdk.org; pathreya@caviumnetworks.com;
> > nmurthy@caviumnetworks.com
> > Subject: [PATCH v5 0/2]test/crypto: add unit testcase for asym crypto
> >
> > This patch series add unit test case for asymmetric crypto.
> >
> > Current testcase covers following operations:
> > - RSA encrypt, decrypt, sign and verify
> > - Modular Inversion and Exponentiation
> > - Diffie-Hellman  key pair generation and shared secret compute
> > - DSA sign and verify
> >
> > All test cases use pre-defined test vectors.
> 
> Series-acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>

Series applied to dpdk-next-crypto.
Thanks,

Pablo