crypto/dpaa2_sec: support for scatter gather
PATCH 1/2 crypto/dpaa2_sec: support for scatter gather
--- doc/guides/cryptodevs/features/default.ini | 1 + doc/guides/cryptodevs/features/dpaa2_sec.ini | 1 + drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 588 +++++++++++++++++++++++++-- test/test/test_cryptodev.c | 10 + test/test/test_cryptodev_aes_test_vectors.h | 22 +- test/test/test_cryptodev_hash_test_vectors.h | 14 + 6 files changed, 596 insertions(+), 40 deletions(-)
doc/guides/cryptodevs/features/default.ini +1 -0
@@ -18,6 +18,7 @@ CPU AVX512 = CPU AESNI = CPU NEON = CPU ARM CE = +Mbuf scatter gather = ; ; Supported crypto algorithms of a default crypto driver.
doc/guides/cryptodevs/features/dpaa2_sec.ini +1 -0
@@ -8,6 +8,7 @@ Symmetric crypto = Y Sym operation chaining = Y HW Accelerated = Y Protocol offload = Y +Mbuf scatter gather = Y ; ; Supported crypto algorithms of the 'dpaa2_sec' crypto driver.
drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c +550 -38
690 lines not on this page · raw message
test/test/test_cryptodev.c +10 -0
@@ -9492,6 +9492,16 @@ static struct unit_test_suite cryptodev_dpaa2_sec_testsuite = {TEST_CASE_ST (ut_setup, ut_teardown, test_AES_GCM_authenticated_decryption_oop_test_case_1), +/** Scatter-Gather */ +TEST_CASE_ST (ut_setup, ut_teardown, + test_AES_GCM_auth_encrypt_SGL_in_place_1500B), +TEST_CASE_ST (ut_setup, ut_teardown, + test_AES_GCM_auth_encrypt_SGL_out_of_place_400B_400B), +TEST_CASE_ST (ut_setup, ut_teardown, + test_AES_GCM_auth_encrypt_SGL_out_of_place_400B_1seg), +TEST_CASE_ST (ut_setup, ut_teardown, + test_AES_GCM_auth_encrypt_SGL_out_of_place_1500B_2000B), + TEST_CASES_END() /**< NULL terminate unit test array */ } };
test/test/test_cryptodev_aes_test_vectors.h +20 -2
@@ -1269,7 +1269,8 @@ static const struct blockcipher_test_case aes_chain_test_cases[] = { .pmd_mask = BLOCKCIPHER_TEST_TARGET_PMD_MB |BLOCKCIPHER_TEST_TARGET_PMD_OPENSSL |BLOCKCIPHER_TEST_TARGET_PMD_QAT | -BLOCKCIPHER_TEST_TARGET_PMD_SCHEDULER +BLOCKCIPHER_TEST_TARGET_PMD_SCHEDULER | +BLOCKCIPHER_TEST_TARGET_PMD_DPAA2_SEC }, { .test_descr ="AES-128-CBC HMAC-SHA1 Decryption Digest "
@@ -1287,6 +1288,14 @@ static const struct blockcipher_test_case aes_chain_test_cases[] = { }, { .test_descr = "AES-128-CBC HMAC-SHA1 Decryption Digest " + "Verify Scatter Gather", + .test_data = &aes_test_data_4, + .op_mask = BLOCKCIPHER_TEST_OP_AUTH_VERIFY_DEC, + .feature_mask = BLOCKCIPHER_TEST_FEATURE_SG, + .pmd_mask =BLOCKCIPHER_TEST_TARGET_PMD_DPAA2_SEC + }, + { + .test_descr ="AES-128-CBC HMAC-SHA1 Decryption Digest " "Verify (short buffers)", .test_data = &aes_test_data_13, .op_mask = BLOCKCIPHER_TEST_OP_AUTH_VERIFY_DEC,
@@ -1391,6 +1400,7 @@ static const struct blockcipher_test_case aes_chain_test_cases[] = { .pmd_mask = BLOCKCIPHER_TEST_TARGET_PMD_MB |BLOCKCIPHER_TEST_TARGET_PMD_OPENSSL |BLOCKCIPHER_TEST_TARGET_PMD_QAT | +BLOCKCIPHER_TEST_TARGET_PMD_DPAA2_SEC |BLOCKCIPHER_TEST_TARGET_PMD_SCHEDULER }, {
@@ -1544,7 +1554,8 @@ static const struct blockcipher_test_case aes_cipheronly_test_cases[] = { .op_mask = BLOCKCIPHER_TEST_OP_ENCRYPT, .feature_mask =BLOCKCIPHER_TEST_FEATURE_SG | BLOCKCIPHER_TEST_FEATURE_OOP, - .pmd_mask =BLOCKCIPHER_TEST_TARGET_PMD_OPENSSL + .pmd_mask =BLOCKCIPHER_TEST_TARGET_PMD_OPENSSL | +BLOCKCIPHER_TEST_TARGET_PMD_DPAA2_SEC }, { .test_descr = "AES-192-CBC Decryption",
@@ -1558,6 +1569,13 @@ static const struct blockcipher_test_case aes_cipheronly_test_cases[] = {BLOCKCIPHER_TEST_TARGET_PMD_DPAA_SEC }, { + .test_descr = "AES-192-CBC Decryption Scatter Gather", + .test_data = &aes_test_data_10, + .op_mask = BLOCKCIPHER_TEST_OP_DECRYPT, + .feature_mask = BLOCKCIPHER_TEST_FEATURE_SG, + .pmd_mask =BLOCKCIPHER_TEST_TARGET_PMD_DPAA2_SEC + }, + { .test_descr = "AES-256-CBC Encryption", .test_data = &aes_test_data_11, .op_mask = BLOCKCIPHER_TEST_OP_ENCRYPT,
test/test/test_cryptodev_hash_test_vectors.h +14 -0
@@ -378,6 +378,13 @@ static const struct blockcipher_test_case hash_test_cases[] = {BLOCKCIPHER_TEST_TARGET_PMD_QAT }, { + .test_descr = "HMAC-SHA1 Digest Scatter Gather", + .test_data = &hmac_sha1_test_vector, + .op_mask = BLOCKCIPHER_TEST_OP_AUTH_GEN, + .feature_mask = BLOCKCIPHER_TEST_FEATURE_SG, + .pmd_mask =BLOCKCIPHER_TEST_TARGET_PMD_DPAA2_SEC + }, + { .test_descr = "HMAC-SHA1 Digest Verify", .test_data = &hmac_sha1_test_vector, .op_mask = BLOCKCIPHER_TEST_OP_AUTH_VERIFY,
@@ -389,6 +396,13 @@ static const struct blockcipher_test_case hash_test_cases[] = {BLOCKCIPHER_TEST_TARGET_PMD_QAT }, { + .test_descr = "HMAC-SHA1 Digest Verify Scatter Gather", + .test_data = &hmac_sha1_test_vector, + .op_mask = BLOCKCIPHER_TEST_OP_AUTH_VERIFY, + .feature_mask = BLOCKCIPHER_TEST_FEATURE_SG, + .pmd_mask =BLOCKCIPHER_TEST_TARGET_PMD_DPAA2_SEC + }, + { .test_descr = "SHA224 Digest", .test_data = &sha224_test_vector, .op_mask = BLOCKCIPHER_TEST_OP_AUTH_GEN,
Signature · 1 line
2.9.3
PATCH 2/2 crypto/dpaa_sec: support for scatter gather
--- doc/guides/cryptodevs/features/dpaa_sec.ini | 1 + drivers/crypto/dpaa_sec/dpaa_sec.c | 501 +++++++++++++++++++++++++-- test/test/test_cryptodev.c | 10 + test/test/test_cryptodev_aes_test_vectors.h | 11 +- test/test/test_cryptodev_hash_test_vectors.h | 6 +- 5 files changed, 498 insertions(+), 31 deletions(-)
doc/guides/cryptodevs/features/dpaa_sec.ini +1 -0
@@ -8,6 +8,7 @@ Symmetric crypto = Y Sym operation chaining = Y HW Accelerated = Y Protocol offload = Y +Mbuf scatter gather = Y ; ; Supported crypto algorithms of the 'dpaa_sec' crypto driver.
drivers/crypto/dpaa_sec/dpaa_sec.c +475 -26
540 lines not on this page · raw message
test/test/test_cryptodev.c +10 -0
@@ -9365,6 +9365,16 @@ static struct unit_test_suite cryptodev_dpaa_sec_testsuite = {TEST_CASE_ST (ut_setup, ut_teardown, test_AES_GCM_authenticated_decryption_oop_test_case_1), +/** Scatter-Gather */ +TEST_CASE_ST (ut_setup, ut_teardown, + test_AES_GCM_auth_encrypt_SGL_in_place_1500B), +TEST_CASE_ST (ut_setup, ut_teardown, + test_AES_GCM_auth_encrypt_SGL_out_of_place_400B_400B), +TEST_CASE_ST (ut_setup, ut_teardown, + test_AES_GCM_auth_encrypt_SGL_out_of_place_400B_1seg), +TEST_CASE_ST (ut_setup, ut_teardown, + test_AES_GCM_auth_encrypt_SGL_out_of_place_1500B_2000B), + TEST_CASES_END() /**< NULL terminate unit test array */ } };
test/test/test_cryptodev_aes_test_vectors.h +8 -3
@@ -1270,7 +1270,8 @@ static const struct blockcipher_test_case aes_chain_test_cases[] = {BLOCKCIPHER_TEST_TARGET_PMD_OPENSSL |BLOCKCIPHER_TEST_TARGET_PMD_QAT |BLOCKCIPHER_TEST_TARGET_PMD_SCHEDULER | -BLOCKCIPHER_TEST_TARGET_PMD_DPAA2_SEC +BLOCKCIPHER_TEST_TARGET_PMD_DPAA2_SEC | +BLOCKCIPHER_TEST_TARGET_PMD_DPAA_SEC }, { .test_descr ="AES-128-CBC HMAC-SHA1 Decryption Digest "
@@ -1292,7 +1293,8 @@ static const struct blockcipher_test_case aes_chain_test_cases[] = { .test_data = &aes_test_data_4, .op_mask = BLOCKCIPHER_TEST_OP_AUTH_VERIFY_DEC, .feature_mask = BLOCKCIPHER_TEST_FEATURE_SG, - .pmd_mask =BLOCKCIPHER_TEST_TARGET_PMD_DPAA2_SEC + .pmd_mask =BLOCKCIPHER_TEST_TARGET_PMD_DPAA2_SEC | +BLOCKCIPHER_TEST_TARGET_PMD_DPAA_SEC }, { .test_descr ="AES-128-CBC HMAC-SHA1 Decryption Digest "
@@ -1401,6 +1403,7 @@ static const struct blockcipher_test_case aes_chain_test_cases[] = {BLOCKCIPHER_TEST_TARGET_PMD_OPENSSL |BLOCKCIPHER_TEST_TARGET_PMD_QAT |BLOCKCIPHER_TEST_TARGET_PMD_DPAA2_SEC | +BLOCKCIPHER_TEST_TARGET_PMD_DPAA_SEC |BLOCKCIPHER_TEST_TARGET_PMD_SCHEDULER }, {
@@ -1555,6 +1558,7 @@ static const struct blockcipher_test_case aes_cipheronly_test_cases[] = { .feature_mask = BLOCKCIPHER_TEST_FEATURE_SG | BLOCKCIPHER_TEST_FEATURE_OOP, .pmd_mask =BLOCKCIPHER_TEST_TARGET_PMD_OPENSSL | +BLOCKCIPHER_TEST_TARGET_PMD_DPAA_SEC |BLOCKCIPHER_TEST_TARGET_PMD_DPAA2_SEC }, {
@@ -1573,7 +1577,8 @@ static const struct blockcipher_test_case aes_cipheronly_test_cases[] = { .test_data = &aes_test_data_10, .op_mask = BLOCKCIPHER_TEST_OP_DECRYPT, .feature_mask = BLOCKCIPHER_TEST_FEATURE_SG, - .pmd_mask =BLOCKCIPHER_TEST_TARGET_PMD_DPAA2_SEC + .pmd_mask =BLOCKCIPHER_TEST_TARGET_PMD_DPAA2_SEC | +BLOCKCIPHER_TEST_TARGET_PMD_DPAA_SEC }, { .test_descr = "AES-256-CBC Encryption",
test/test/test_cryptodev_hash_test_vectors.h +4 -2
@@ -382,7 +382,8 @@ static const struct blockcipher_test_case hash_test_cases[] = { .test_data = &hmac_sha1_test_vector, .op_mask = BLOCKCIPHER_TEST_OP_AUTH_GEN, .feature_mask = BLOCKCIPHER_TEST_FEATURE_SG, - .pmd_mask =BLOCKCIPHER_TEST_TARGET_PMD_DPAA2_SEC + .pmd_mask =BLOCKCIPHER_TEST_TARGET_PMD_DPAA2_SEC | +BLOCKCIPHER_TEST_TARGET_PMD_DPAA_SEC }, { .test_descr = "HMAC-SHA1 Digest Verify",
@@ -400,7 +401,8 @@ static const struct blockcipher_test_case hash_test_cases[] = { .test_data = &hmac_sha1_test_vector, .op_mask = BLOCKCIPHER_TEST_OP_AUTH_VERIFY, .feature_mask = BLOCKCIPHER_TEST_FEATURE_SG, - .pmd_mask =BLOCKCIPHER_TEST_TARGET_PMD_DPAA2_SEC + .pmd_mask =BLOCKCIPHER_TEST_TARGET_PMD_DPAA2_SEC | +BLOCKCIPHER_TEST_TARGET_PMD_DPAA_SEC }, { .test_descr = "SHA224 Digest",
Signature · 1 line
2.9.3
Quoted 11 lines · Akhil Goyal
Signed-off-by Alok Makhariya <[email protected]>Signed-off-by Akhil Goyal <[email protected]>--- doc/guides/cryptodevs/features/default.ini | 1 + doc/guides/cryptodevs/features/dpaa2_sec.ini | 1 + drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 588 +++++++++++++++++++++++++-- test/test/test_cryptodev.c | 10 + test/test/test_cryptodev_aes_test_vectors.h | 22 +- test/test/test_cryptodev_hash_test_vectors.h | 14 + 6 files changed, 596 insertions(+), 40 deletions(-)
Re: [PATCH 2/2] crypto/dpaa_sec: support for scatter gather
In reply to Akhil GoyalQuoted 10 lines · Akhil Goyal
Signed-off-by Alok Makhariya <[email protected]>Signed-off-by Akhil Goyal <[email protected]>--- doc/guides/cryptodevs/features/dpaa_sec.ini | 1 + drivers/crypto/dpaa_sec/dpaa_sec.c | 501 +++++++++++++++++++++++++-- test/test/test_cryptodev.c | 10 + test/test/test_cryptodev_aes_test_vectors.h | 11 +- test/test/test_cryptodev_hash_test_vectors.h | 6 +- 5 files changed, 498 insertions(+), 31 deletions(-)
Hi Akhil,
Quoted 27 lines
-----Original Message-----
From: Akhil Goyal [mailto:[email protected]]
Sent: Friday, January 19, 2018 11:51 AM
To: [email protected]
Cc: De Lara Guarch, Pablo <[email protected]>; [email protected]; [email protected]; Akhil Goyal <[email protected]>
Subject: [PATCH 1/2]crypto/dpaa2_sec: support for scatter gatherSigned-off-by Alok Makhariya <[email protected]>Signed-off-by Akhil Goyal <[email protected]>--- doc/guides/cryptodevs/features/default.ini | 1 + doc/guides/cryptodevs/features/dpaa2_sec.ini | 1 + drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 588 +++++++++++++++++++++++++-- test/test/test_cryptodev.c | 10 + test/test/test_cryptodev_aes_test_vectors.h | 22 +- test/test/test_cryptodev_hash_test_vectors.h | 14 + 6 files changed, 596 insertions(+), 40 deletions(-)doc/guides/cryptodevs/features/default.ini +0
-0
doc/guides/cryptodevs/features/default.ini CPU AVX512 = · line 21
Quoted 4 lines
doc/guides/cryptodevs/features/default.ini +1
-0@@ -18,6 +18,7 @@ CPU AVX512 = CPU AESNI = CPU NEON = CPU ARM CE = +Mbuf scatter gather =
I think we should separate this addition (Mbuf scatter gather) to the default.ini file in another patch, and then check the PMDs that support this feature and set it in their .ini files (with other patches). Hopefully it should be straight forward, as there is a feature flag equivalent to this one.
Thanks,
Pablo
PATCH v2 2/3 crypto/dpaa2_sec: support for scatter gather
In reply to Akhil Goyal--- doc/guides/cryptodevs/features/dpaa2_sec.ini | 1 + drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 588 +++++++++++++++++++++++++-- test/test/test_cryptodev.c | 10 + test/test/test_cryptodev_aes_test_vectors.h | 22 +- test/test/test_cryptodev_hash_test_vectors.h | 14 + 5 files changed, 595 insertions(+), 40 deletions(-)
doc/guides/cryptodevs/features/dpaa2_sec.ini +1 -0
@@ -8,6 +8,7 @@ Symmetric crypto = Y Sym operation chaining = Y HW Accelerated = Y Protocol offload = Y +Mbuf scatter gather = Y ; ; Supported crypto algorithms of the 'dpaa2_sec' crypto driver.
drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c +550 -38
690 lines not on this page · raw message
test/test/test_cryptodev.c +10 -0
@@ -9492,6 +9492,16 @@ static struct unit_test_suite cryptodev_dpaa2_sec_testsuite = {TEST_CASE_ST (ut_setup, ut_teardown, test_AES_GCM_authenticated_decryption_oop_test_case_1), +/** Scatter-Gather */ +TEST_CASE_ST (ut_setup, ut_teardown, + test_AES_GCM_auth_encrypt_SGL_in_place_1500B), +TEST_CASE_ST (ut_setup, ut_teardown, + test_AES_GCM_auth_encrypt_SGL_out_of_place_400B_400B), +TEST_CASE_ST (ut_setup, ut_teardown, + test_AES_GCM_auth_encrypt_SGL_out_of_place_400B_1seg), +TEST_CASE_ST (ut_setup, ut_teardown, + test_AES_GCM_auth_encrypt_SGL_out_of_place_1500B_2000B), + TEST_CASES_END() /**< NULL terminate unit test array */ } };
test/test/test_cryptodev_aes_test_vectors.h +20 -2
@@ -1269,7 +1269,8 @@ static const struct blockcipher_test_case aes_chain_test_cases[] = { .pmd_mask = BLOCKCIPHER_TEST_TARGET_PMD_MB |BLOCKCIPHER_TEST_TARGET_PMD_OPENSSL |BLOCKCIPHER_TEST_TARGET_PMD_QAT | -BLOCKCIPHER_TEST_TARGET_PMD_SCHEDULER +BLOCKCIPHER_TEST_TARGET_PMD_SCHEDULER | +BLOCKCIPHER_TEST_TARGET_PMD_DPAA2_SEC }, { .test_descr ="AES-128-CBC HMAC-SHA1 Decryption Digest "
@@ -1287,6 +1288,14 @@ static const struct blockcipher_test_case aes_chain_test_cases[] = { }, { .test_descr = "AES-128-CBC HMAC-SHA1 Decryption Digest " + "Verify Scatter Gather", + .test_data = &aes_test_data_4, + .op_mask = BLOCKCIPHER_TEST_OP_AUTH_VERIFY_DEC, + .feature_mask = BLOCKCIPHER_TEST_FEATURE_SG, + .pmd_mask =BLOCKCIPHER_TEST_TARGET_PMD_DPAA2_SEC + }, + { + .test_descr ="AES-128-CBC HMAC-SHA1 Decryption Digest " "Verify (short buffers)", .test_data = &aes_test_data_13, .op_mask = BLOCKCIPHER_TEST_OP_AUTH_VERIFY_DEC,
@@ -1391,6 +1400,7 @@ static const struct blockcipher_test_case aes_chain_test_cases[] = { .pmd_mask = BLOCKCIPHER_TEST_TARGET_PMD_MB |BLOCKCIPHER_TEST_TARGET_PMD_OPENSSL |BLOCKCIPHER_TEST_TARGET_PMD_QAT | +BLOCKCIPHER_TEST_TARGET_PMD_DPAA2_SEC |BLOCKCIPHER_TEST_TARGET_PMD_SCHEDULER }, {
@@ -1544,7 +1554,8 @@ static const struct blockcipher_test_case aes_cipheronly_test_cases[] = { .op_mask = BLOCKCIPHER_TEST_OP_ENCRYPT, .feature_mask =BLOCKCIPHER_TEST_FEATURE_SG | BLOCKCIPHER_TEST_FEATURE_OOP, - .pmd_mask =BLOCKCIPHER_TEST_TARGET_PMD_OPENSSL + .pmd_mask =BLOCKCIPHER_TEST_TARGET_PMD_OPENSSL | +BLOCKCIPHER_TEST_TARGET_PMD_DPAA2_SEC }, { .test_descr = "AES-192-CBC Decryption",
@@ -1558,6 +1569,13 @@ static const struct blockcipher_test_case aes_cipheronly_test_cases[] = {BLOCKCIPHER_TEST_TARGET_PMD_DPAA_SEC }, { + .test_descr = "AES-192-CBC Decryption Scatter Gather", + .test_data = &aes_test_data_10, + .op_mask = BLOCKCIPHER_TEST_OP_DECRYPT, + .feature_mask = BLOCKCIPHER_TEST_FEATURE_SG, + .pmd_mask =BLOCKCIPHER_TEST_TARGET_PMD_DPAA2_SEC + }, + { .test_descr = "AES-256-CBC Encryption", .test_data = &aes_test_data_11, .op_mask = BLOCKCIPHER_TEST_OP_ENCRYPT,
test/test/test_cryptodev_hash_test_vectors.h +14 -0
@@ -378,6 +378,13 @@ static const struct blockcipher_test_case hash_test_cases[] = {BLOCKCIPHER_TEST_TARGET_PMD_QAT }, { + .test_descr = "HMAC-SHA1 Digest Scatter Gather", + .test_data = &hmac_sha1_test_vector, + .op_mask = BLOCKCIPHER_TEST_OP_AUTH_GEN, + .feature_mask = BLOCKCIPHER_TEST_FEATURE_SG, + .pmd_mask =BLOCKCIPHER_TEST_TARGET_PMD_DPAA2_SEC + }, + { .test_descr = "HMAC-SHA1 Digest Verify", .test_data = &hmac_sha1_test_vector, .op_mask = BLOCKCIPHER_TEST_OP_AUTH_VERIFY,
@@ -389,6 +396,13 @@ static const struct blockcipher_test_case hash_test_cases[] = {BLOCKCIPHER_TEST_TARGET_PMD_QAT }, { + .test_descr = "HMAC-SHA1 Digest Verify Scatter Gather", + .test_data = &hmac_sha1_test_vector, + .op_mask = BLOCKCIPHER_TEST_OP_AUTH_VERIFY, + .feature_mask = BLOCKCIPHER_TEST_FEATURE_SG, + .pmd_mask =BLOCKCIPHER_TEST_TARGET_PMD_DPAA2_SEC + }, + { .test_descr = "SHA224 Digest", .test_data = &sha224_test_vector, .op_mask = BLOCKCIPHER_TEST_OP_AUTH_GEN,
Signature · 1 line
2.9.3
PATCH v2 1/3 doc: update feature list for cryptodevs
In reply to Akhil Goyal---
changes in v2: separated the default.ini change from the dpaa2_sec patch.
doc/guides/cryptodevs/features/aesni_gcm.ini | 1 + doc/guides/cryptodevs/features/default.ini | 1 + doc/guides/cryptodevs/features/null.ini | 1 + doc/guides/cryptodevs/features/openssl.ini | 1 + doc/guides/cryptodevs/features/qat.ini | 1 + 5 files changed, 5 insertions(+)
doc/guides/cryptodevs/features/aesni_gcm.ini +1 -0
@@ -10,6 +10,7 @@ CPU AESNI = Y CPU SSE = Y CPU AVX = Y CPU AVX2 = Y +Mbuf scatter gather = Y ; ; Supported crypto algorithms of the 'aesni_gcm' crypto driver. ;
doc/guides/cryptodevs/features/default.ini +1 -0
@@ -18,6 +18,7 @@ CPU AVX512 = CPU AESNI = CPU NEON = CPU ARM CE = +Mbuf scatter gather = ; ; Supported crypto algorithms of a default crypto driver.
doc/guides/cryptodevs/features/null.ini +1 -0
@@ -6,6 +6,7 @@ [Features] Symmetric crypto = Y Sym operation chaining = Y +Mbuf scatter gather = Y ; ; Supported crypto algorithms of the 'null' crypto driver.
doc/guides/cryptodevs/features/openssl.ini +1 -0
@@ -6,6 +6,7 @@ [Features] Symmetric crypto = Y Sym operation chaining = Y +Mbuf scatter gather = Y ; ; Supported crypto algorithms of the 'openssl' crypto driver.
doc/guides/cryptodevs/features/qat.ini +1 -0
@@ -7,6 +7,7 @@ Symmetric crypto = Y Sym operation chaining = Y HW Accelerated = Y +Mbuf scatter gather = Y ; ; Supported crypto algorithms of the 'qat' crypto driver.
Signature · 1 line
2.9.3
PATCH v2 3/3 crypto/dpaa_sec: support for scatter gather
--- doc/guides/cryptodevs/features/dpaa_sec.ini | 1 + drivers/crypto/dpaa_sec/dpaa_sec.c | 501 +++++++++++++++++++++++++-- test/test/test_cryptodev.c | 10 + test/test/test_cryptodev_aes_test_vectors.h | 11 +- test/test/test_cryptodev_hash_test_vectors.h | 6 +- 5 files changed, 498 insertions(+), 31 deletions(-)
doc/guides/cryptodevs/features/dpaa_sec.ini +1 -0
@@ -8,6 +8,7 @@ Symmetric crypto = Y Sym operation chaining = Y HW Accelerated = Y Protocol offload = Y +Mbuf scatter gather = Y ; ; Supported crypto algorithms of the 'dpaa_sec' crypto driver.
drivers/crypto/dpaa_sec/dpaa_sec.c +475 -26
540 lines not on this page · raw message
test/test/test_cryptodev.c +10 -0
@@ -9365,6 +9365,16 @@ static struct unit_test_suite cryptodev_dpaa_sec_testsuite = {TEST_CASE_ST (ut_setup, ut_teardown, test_AES_GCM_authenticated_decryption_oop_test_case_1), +/** Scatter-Gather */ +TEST_CASE_ST (ut_setup, ut_teardown, + test_AES_GCM_auth_encrypt_SGL_in_place_1500B), +TEST_CASE_ST (ut_setup, ut_teardown, + test_AES_GCM_auth_encrypt_SGL_out_of_place_400B_400B), +TEST_CASE_ST (ut_setup, ut_teardown, + test_AES_GCM_auth_encrypt_SGL_out_of_place_400B_1seg), +TEST_CASE_ST (ut_setup, ut_teardown, + test_AES_GCM_auth_encrypt_SGL_out_of_place_1500B_2000B), + TEST_CASES_END() /**< NULL terminate unit test array */ } };
test/test/test_cryptodev_aes_test_vectors.h +8 -3
@@ -1270,7 +1270,8 @@ static const struct blockcipher_test_case aes_chain_test_cases[] = {BLOCKCIPHER_TEST_TARGET_PMD_OPENSSL |BLOCKCIPHER_TEST_TARGET_PMD_QAT |BLOCKCIPHER_TEST_TARGET_PMD_SCHEDULER | -BLOCKCIPHER_TEST_TARGET_PMD_DPAA2_SEC +BLOCKCIPHER_TEST_TARGET_PMD_DPAA2_SEC | +BLOCKCIPHER_TEST_TARGET_PMD_DPAA_SEC }, { .test_descr ="AES-128-CBC HMAC-SHA1 Decryption Digest "
@@ -1292,7 +1293,8 @@ static const struct blockcipher_test_case aes_chain_test_cases[] = { .test_data = &aes_test_data_4, .op_mask = BLOCKCIPHER_TEST_OP_AUTH_VERIFY_DEC, .feature_mask = BLOCKCIPHER_TEST_FEATURE_SG, - .pmd_mask =BLOCKCIPHER_TEST_TARGET_PMD_DPAA2_SEC + .pmd_mask =BLOCKCIPHER_TEST_TARGET_PMD_DPAA2_SEC | +BLOCKCIPHER_TEST_TARGET_PMD_DPAA_SEC }, { .test_descr ="AES-128-CBC HMAC-SHA1 Decryption Digest "
@@ -1401,6 +1403,7 @@ static const struct blockcipher_test_case aes_chain_test_cases[] = {BLOCKCIPHER_TEST_TARGET_PMD_OPENSSL |BLOCKCIPHER_TEST_TARGET_PMD_QAT |BLOCKCIPHER_TEST_TARGET_PMD_DPAA2_SEC | +BLOCKCIPHER_TEST_TARGET_PMD_DPAA_SEC |BLOCKCIPHER_TEST_TARGET_PMD_SCHEDULER }, {
@@ -1555,6 +1558,7 @@ static const struct blockcipher_test_case aes_cipheronly_test_cases[] = { .feature_mask = BLOCKCIPHER_TEST_FEATURE_SG | BLOCKCIPHER_TEST_FEATURE_OOP, .pmd_mask =BLOCKCIPHER_TEST_TARGET_PMD_OPENSSL | +BLOCKCIPHER_TEST_TARGET_PMD_DPAA_SEC |BLOCKCIPHER_TEST_TARGET_PMD_DPAA2_SEC }, {
@@ -1573,7 +1577,8 @@ static const struct blockcipher_test_case aes_cipheronly_test_cases[] = { .test_data = &aes_test_data_10, .op_mask = BLOCKCIPHER_TEST_OP_DECRYPT, .feature_mask = BLOCKCIPHER_TEST_FEATURE_SG, - .pmd_mask =BLOCKCIPHER_TEST_TARGET_PMD_DPAA2_SEC + .pmd_mask =BLOCKCIPHER_TEST_TARGET_PMD_DPAA2_SEC | +BLOCKCIPHER_TEST_TARGET_PMD_DPAA_SEC }, { .test_descr = "AES-256-CBC Encryption",
test/test/test_cryptodev_hash_test_vectors.h +4 -2
@@ -382,7 +382,8 @@ static const struct blockcipher_test_case hash_test_cases[] = { .test_data = &hmac_sha1_test_vector, .op_mask = BLOCKCIPHER_TEST_OP_AUTH_GEN, .feature_mask = BLOCKCIPHER_TEST_FEATURE_SG, - .pmd_mask =BLOCKCIPHER_TEST_TARGET_PMD_DPAA2_SEC + .pmd_mask =BLOCKCIPHER_TEST_TARGET_PMD_DPAA2_SEC | +BLOCKCIPHER_TEST_TARGET_PMD_DPAA_SEC }, { .test_descr = "HMAC-SHA1 Digest Verify",
@@ -400,7 +401,8 @@ static const struct blockcipher_test_case hash_test_cases[] = { .test_data = &hmac_sha1_test_vector, .op_mask = BLOCKCIPHER_TEST_OP_AUTH_VERIFY, .feature_mask = BLOCKCIPHER_TEST_FEATURE_SG, - .pmd_mask =BLOCKCIPHER_TEST_TARGET_PMD_DPAA2_SEC + .pmd_mask =BLOCKCIPHER_TEST_TARGET_PMD_DPAA2_SEC | +BLOCKCIPHER_TEST_TARGET_PMD_DPAA_SEC }, { .test_descr = "SHA224 Digest",
Signature · 1 line
2.9.3
Re: [PATCH v2 1/3] doc: update feature list for cryptodevs
In reply to Akhil GoyalQuoted 13 lines
-----Original Message-----
From: Akhil Goyal [mailto:[email protected]]
Sent: Monday, January 22, 2018 8:47 AM
To: [email protected]
Cc: De Lara Guarch, Pablo <[email protected]>; [email protected]; [email protected]; Griffin, John <[email protected]>; Trahe, Fiona <[email protected]>; Jain, Deepak K <[email protected]>; Doherty, Declan <[email protected]>; Akhil Goyal <[email protected]>
Subject: [PATCH v2 1/3] doc: update feature list for cryptodevs
Quoted 1 line
Signed-off-by Akhil Goyal <[email protected]>
De Lara Guarch, Pablo
AppliedRe: [PATCH v2 1/3] doc: update feature list for cryptodevs
In reply to Akhil GoyalQuoted 13 lines
-----Original Message-----
From: Akhil Goyal [mailto:[email protected]]
Sent: Monday, January 22, 2018 8:47 AM
To: [email protected]
Cc: De Lara Guarch, Pablo <[email protected]>; [email protected]; [email protected]; Griffin, John <[email protected]>; Trahe, Fiona <[email protected]>; Jain, Deepak K <[email protected]>; Doherty, Declan <[email protected]>; Akhil Goyal <[email protected]>
Subject: [PATCH v2 1/3] doc: update feature list for cryptodevs
Quoted 1 line
Signed-off-by Akhil Goyal <[email protected]>
Applied to dpdk-next-crypto.
Thanks,
Pablo