nuttx-apps/testing/drivers
Peter Barada 27c466a429 crypto: Fix CRC-32 test case 8
Normal Crypto API usage is to call ioctl(CGCGSESSION) to initialize
the session, then one (or more) calls to ioctl(CIOCCRYPT) with flag
bit COP_FLAG_UPDATE set to append to the hash/xform calculation, then
a call to ioctl(CIOCCRYPT) with flag bit COP_FLAG_UPDATE cleared to
extract the result, and finally ioctl(CIOCFSESSION) to finish the
session. This follows the classic init / update* / finish data
processing model.

However crc32.c test case 8 precedes ioctl(CIOCCRYPT) with
COP_FLAG_UPDATE set with ioctl(CIOCGSESSION) and follows it with
ioctl(CIOCCRYPT) with COP_FLAG_UPDATE cleared to extract the CRC, and
then ioctl(CIOCFSESSION) to finish the session, all _within_ the loop
to CRC eight segments.  This works with the software implementation
since the intermediate CRC-32 is carried forward out of one session to
seed the next session. Fix by moving the init and finish portions out
of the loop in test case 8.

Signed-off-by: Peter Barada <peter.barada@gmail.com>
2026-07-10 13:02:44 +08:00
..
crypto crypto: Fix CRC-32 test case 8 2026-07-10 13:02:44 +08:00
drivertest apps: Fix additional open() arguments. 2026-05-22 13:39:04 +08:00
fftest testing/drivers/fftest/fftest.c: fix compilation error 2025-11-02 22:33:46 +08:00
nand_sim include/debug.h: Use <nuttx/debug.h> in apps 2026-04-11 10:39:27 -03:00
pcitest apps/testing:move {drivertest fftest irtest monkey nand_sim pcitest sd_bench sd_stress sensortest} folders to the new driver folder 2025-01-21 16:22:56 +08:00
rng/nist-sts testing: move nist-sts into drivers/rng directory 2026-01-29 12:08:50 +08:00
rpmsgdev testing: Move rpmsgdev to drivers/rpmsgdev 2025-01-26 09:53:02 -03:00
sd_stress testing/sd_stress: Harden file creation cleanup 2026-05-25 10:28:32 +08:00
ser testing: Add Serial Error Reporting testing app 2025-03-24 21:52:26 +08:00
setest testing: Move crypto/setest to drivers and open_memstream to libc 2025-01-26 07:32:53 +01:00
.gitignore apps/testing:move {drivertest fftest irtest monkey nand_sim pcitest sd_bench sd_stress sensortest} folders to the new driver folder 2025-01-21 16:22:56 +08:00
CMakeLists.txt apps/testing:move {drivertest fftest irtest monkey nand_sim pcitest sd_bench sd_stress sensortest} folders to the new driver folder 2025-01-21 16:22:56 +08:00
Make.defs apps/testing:move {drivertest fftest irtest monkey nand_sim pcitest sd_bench sd_stress sensortest} folders to the new driver folder 2025-01-21 16:22:56 +08:00
Makefile apps/testing: fix typo 2025-05-26 18:56:32 +02:00