guao-xiaomi opened a new pull request, #3756:
URL: https://github.com/apache/nuttx-apps/pull/3756

   ## Summary
   
   Add new crypto test cases to `testing/drivers/crypto/`:
   
   1. **ChaCha20 stream cipher test** (`chacha20.c`) - cmocka-based tests using
      RFC 7539 test vectors covering encryption/decryption with various
      key/nonce/counter combinations.
   
   2. **ChaCha20-Poly1305 AEAD test** (`chachapoly.c`) - cmocka-based tests
      verifying authenticated encryption/decryption with associated data
      using RFC 7539 test vectors.
   
   3. **SHA2-224 HMAC test** - adds SHA2-224 HMAC verification to the existing
      `hmac.c` test using CRYPTO_SHA2_224_HMAC with standard test vectors
      (28-byte digest).
   
   ## Impact
   
   - New test files only, no changes to production code
   - Extends crypto test coverage for ChaCha20, ChaCha20-Poly1305 AEAD,
     and SHA2-224 HMAC algorithms
   - ChaCha20 tests require CONFIG_TESTING_CRYPTO_CHACHA20 and
     CONFIG_TESTING_CRYPTO_CHACHA20_POLY1305 Kconfig options (added)
   
   ## Testing
   
   - Build: Ubuntu 22.04, x86_64, GCC
   - Target: QEMU SIL (sim + multi-core BMP) with cryptodev software backend
   - All test vectors pass on QEMU with CRYPTO_CRYPTODEV_SOFTWARE enabled
   


-- 
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]

Reply via email to