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 -- 2.9.5