Skip to content

app: add cryptodev validation applications

Kai Ji dpdk-dev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v11 Latest2 patches 2 repliesIn review
  2. v102 patches 0 repliesSuperseded

Changes in v11 from the cover letter

- mark both applications as not supported on Windows in their meson files (they rely on POSIX directory handling); fixes the MinGW and MSVC CI build failures
- drop the standalone Makefiles: apps under app/ are built with meson only, and the examples-style Makefile needed the forbidden ALLOW_EXPERIMENTAL_API flag under app/
- remove forbidden allow_experimental_apis flag from app/ meson files (unused there: apps already build with ALLOW_EXPERIMENTAL_API)
- document the --mbuf-dataroom option in usage() and the guide
- print the correct program name in the usage message
- count unknown Wycheproof result strings as unsupported in the AES-GMAC processor, matching the other processors
- wipe the stack copy of the ECDH private key with rte_memzero_explicit() for consistency with rte_free_sensitive()

Patches in v11 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2app: move FIPS validation under app/MAINTAINERS app/fips_validation/fips_dev_self_test.c app/fips_validation/fips_dev_self_test.h +21 more+34 -861 reply
2/2app: add Wycheproof validation appMAINTAINERS app/meson.build app/wycheproof_validation/main.c +3 more+2188 -00 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchGowrishankar Muthukrishnan
SeriesA-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v11 thread

Cover letter [dpdk-dev v11 0/2] app: add cryptodev validation applications

Move the FIPS validation example under app/ and add a new Wycheproof validation application that checks a cryptodev PMD against the Google Wycheproof JSON test vectors (AEAD, MAC, DSA, ECDH and ECDSA families).

v11:
- mark both applications as not supported on Windows in their meson files (they rely on POSIX directory handling); fixes the MinGW and MSVC CI build failures
- drop the standalone Makefiles: apps under app/ are built with meson only, and the examples-style Makefile needed the forbidden ALLOW_EXPERIMENTAL_API flag under app/
- remove forbidden allow_experimental_apis flag from app/ meson files (unused there: apps already build with ALLOW_EXPERIMENTAL_API)
- document the --mbuf-dataroom option in usage() and the guide
- print the correct program name in the usage message
- count unknown Wycheproof result strings as unsupported in the AES-GMAC processor, matching the other processors
- wipe the stack copy of the ECDH private key with rte_memzero_explicit() for consistency with rte_free_sensitive()

Kai Ji (2):
app: move FIPS validation under app/
app: add Wycheproof validation app

 MAINTAINERS                                   |   11 +-
 .../fips_validation/fips_dev_self_test.c      |    0
 .../fips_validation/fips_dev_self_test.h      |    0
 .../fips_validation/fips_validation.c         |    0
 .../fips_validation/fips_validation.h         |    0
 .../fips_validation/fips_validation_aes.c     |    0
 .../fips_validation/fips_validation_ccm.c     |    0
 .../fips_validation/fips_validation_cmac.c    |    0
 .../fips_validation/fips_validation_ecdsa.c   |    0
 .../fips_validation/fips_validation_eddsa.c   |    0
 .../fips_validation/fips_validation_gcm.c     |    0
 .../fips_validation/fips_validation_hmac.c    |    0
 .../fips_validation/fips_validation_rsa.c     |    0
 .../fips_validation/fips_validation_sha.c     |    0
 .../fips_validation/fips_validation_tdes.c    |    0
 .../fips_validation/fips_validation_xts.c     |    0
 {examples => app}/fips_validation/main.c      |    0
 {examples => app}/fips_validation/meson.build |   12 +-
 app/meson.build                               |    2 +
 app/wycheproof_validation/main.c              | 2106 +++++++++++++++++
 app/wycheproof_validation/meson.build         |   20 +
 doc/guides/rel_notes/release_22_11.rst        |    2 +-
 doc/guides/rel_notes/release_26_11.rst        |    6 +
 ...s_validation.rst => crypto_validation.rst} |   84 +-
 doc/guides/sample_app_ug/index.rst            |    2 +-
 examples/fips_validation/Makefile             |   62 -
 examples/meson.build                          |    1 -
 27 files changed, 2222 insertions(+), 86 deletions(-)
 rename {examples => app}/fips_validation/fips_dev_self_test.c (100%)
 rename {examples => app}/fips_validation/fips_dev_self_test.h (100%)
 rename {examples => app}/fips_validation/fips_validation.c (100%)
 rename {examples => app}/fips_validation/fips_validation.h (100%)
 rename {examples => app}/fips_validation/fips_validation_aes.c (100%)
 rename {examples => app}/fips_validation/fips_validation_ccm.c (100%)
 rename {examples => app}/fips_validation/fips_validation_cmac.c (100%)
 rename {examples => app}/fips_validation/fips_validation_ecdsa.c (100%)
 rename {examples => app}/fips_validation/fips_validation_eddsa.c (100%)
 rename {examples => app}/fips_validation/fips_validation_gcm.c (100%)
 rename {examples => app}/fips_validation/fips_validation_hmac.c (100%)
 rename {examples => app}/fips_validation/fips_validation_rsa.c (100%)
 rename {examples => app}/fips_validation/fips_validation_sha.c (100%)
 rename {examples => app}/fips_validation/fips_validation_tdes.c (100%)
 rename {examples => app}/fips_validation/fips_validation_xts.c (100%)
 rename {examples => app}/fips_validation/main.c (100%)
 rename {examples => app}/fips_validation/meson.build (79%)
 create mode 100644 app/wycheproof_validation/main.c
 create mode 100644 app/wycheproof_validation/meson.build
 rename doc/guides/sample_app_ug/{fips_validation.rst => crypto_validation.rst} (70%)
 delete mode 100644 examples/fips_validation/Makefile
Signature · 1 line
2.34.1