1
0
mirror of https://github.com/wolfSSL/wolfssl.git synced 2026-10-24 04:09:07 +03:00

nxp: run the Zephyr test and benchmark against the EdgeLock

Nothing committed exercised the port through wolfCrypt's own suites. Give both
samples an frdm_rw612 board overlay that turns the offload on; settings.h already
maps WC_USE_DEVID at WOLFSSL_ELS_PKC_DEVID, which is what the unmodified test and
benchmark read, and defining it also defines BENCH_DEVID, so the benchmark
measures every algorithm twice and labels the rows HW and SW.

Both suites pass on frdm_rw612.
This commit is contained in:
Tobias Frauenschläger
2026-09-09 20:17:04 +02:00
parent b59e57c321
commit b7722c6b61
2 changed files with 38 additions and 0 deletions

View File

@@ -13,3 +13,23 @@ tests:
platform_allow: qemu_x86
integration_platforms:
- qemu_x86
sample.crypto.wolfssl_benchmark_els_pkc:
# Measures each algorithm in software and on the hardware. Not in
# boards/frdm_rw612.conf, which every build for the board would merge.
timeout: 1200
platform_allow: frdm_rw612
extra_configs:
- CONFIG_WOLFSSL_ELS_PKC=y
# wc_port.c calls clock_gettime(). POSIX_TIMERS is gated behind
# POSIX_SYSTEM_INTERFACES and silently does nothing without it.
- CONFIG_POSIX_SYSTEM_INTERFACES=y
- CONFIG_POSIX_TIMERS=y
# The board has a real entropy source, so drop prj.conf's placeholder.
- CONFIG_TEST_RANDOM_GENERATOR=n
- CONFIG_ENTROPY_GENERATOR=y
# The arena carries the HAVE_STACK_SIZE benchmark thread stack on top of
# the benchmark's own allocations.
- CONFIG_MAIN_STACK_SIZE=32768
- CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=131072
integration_platforms:
- frdm_rw612

View File

@@ -143,3 +143,21 @@ tests:
- CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=65536
integration_platforms:
- qemu_cortex_a53
sample.crypto.wolfssl_test_els_pkc:
# Not in boards/frdm_rw612.conf, which every build for the board would
# merge.
timeout: 600
platform_allow: frdm_rw612
extra_configs:
- CONFIG_WOLFSSL_ELS_PKC=y
# wc_port.c calls clock_gettime(). POSIX_TIMERS is gated behind
# POSIX_SYSTEM_INTERFACES and silently does nothing without it.
- CONFIG_POSIX_SYSTEM_INTERFACES=y
- CONFIG_POSIX_TIMERS=y
# The board has a real entropy source, so drop prj.conf's placeholder.
- CONFIG_TEST_RANDOM_GENERATOR=n
- CONFIG_ENTROPY_GENERATOR=y
- CONFIG_MAIN_STACK_SIZE=65536
- CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=65536
integration_platforms:
- frdm_rw612