ThePassionate opened a new pull request, #4069: URL: https://github.com/apache/nuttx-apps/pull/4069
## Summary Add a `clone` test for the cryptodev session clone (`CIOCCLONE`, nuttx#21932): * sha256, HMAC-SHA256 and AES-CMAC sessions are updated with the first half of a message, cloned with `CIOCCLONE`, and the source and the clone then finish independently - both results must equal the one-shot digest of the full message. * A close-source case verifies that the cloned session stays usable after the source descriptor is closed. * An AES-CBC case clones a cipher session, closes the source and encrypts independently, covering the key-schedule ownership of the clone. Follows the plain `main()` style of the existing tests (hmac.c, aescbc.c). ## Impact * Testing only. New `TESTING_CRYPTO_CLONE` option (default n). ## Testing Depends on apache/nuttx#21932 for the `CIOCCLONE` ioctl. Board sim:crypto with the kernel PR applied: ``` nsh> clone clone sha256 success clone hmac-sha256 success clone aes-cmac success clone close-source success clone aes-cbc success ``` `tools/checkpatch.sh -c -u -m -g <base>..HEAD` (via the paired nuttx tree) passes. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
