-
Notifications
You must be signed in to change notification settings - Fork 685
Crypto Testing Framework Enhancement #3384
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
ThePassionate
wants to merge
9
commits into
apache:master
Choose a base branch
from
ThePassionate:apps-features
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
+1,357
−683
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Convert crypto test cases from CLI-based tests to cmocka unit testing framework. This improves test isolation, mocking capabilities, and assertion handling. Refactored test cases for AES, 3DES, CRC32, HMAC, Hash, DHM, ECDSA, and RSA algorithms. Signed-off-by: makejian <makejian@xiaomi.com>
Fix AES-CMAC test to properly update message content before completing the cryptographic operation, ensuring correct test execution flow. Signed-off-by: makejian <makejian@xiaomi.com>
Correct Kconfig dependency settings for crypto unit tests to ensure proper build configuration and test execution. Signed-off-by: makejian <makejian@xiaomi.com>
Fix AES-CTR and AES-XTS implementations for QEMU backend compatibility. Support output length parameter and enable testing with QEMU virtual cryptographic devices. Signed-off-by: makejian <makejian@xiaomi.com>
Add explicit IV length (ivlen) and output length (olen) parameters to test cases. This enables proper validation of IV handling across cryptographic algorithms. Signed-off-by: makejian <makejian@xiaomi.com>
Extend AES testing to support stream mode operations with comprehensive test cases for streaming encryption/decryption workflows. Signed-off-by: makejian <makejian@xiaomi.com>
…ware Remove unnecessary dependency on cryptosoftware implementation since crypto driver tests now support rpmsg and virtio driver backends. Signed-off-by: makejian <makejian@xiaomi.com>
Add comprehensive key management test suite covering: - AES key generation (128, 192, 256-bit) - RSA keypair generation with variable key sizes - ECDSA keypair generation on SECP256R1 curve Tests key lifecycle operations and MTD-based persistent storage. Signed-off-by: makejian <makejian@xiaomi.com>
a9b9de3 to
541ac63
Compare
Add comprehensive test cases for key identifier (keyid) based cipher operations. Tests encrypted data verification using cryptographic keys referenced by unique identifiers, enabling testing of key management integration with cipher algorithms. Support for AES encryption/decryption, HMAC, and other algorithms with keyid-based access. Signed-off-by: makejian <makejian@xiaomi.com>
9401bac to
5e0ca46
Compare
xiaoxiang781216
approved these changes
Jan 28, 2026
xiaoxiang781216
approved these changes
Jan 29, 2026
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
NuttX-Apps Crypto Testing Framework Enhancement
Overview
Comprehensive modernization and expansion of NuttX-Apps cryptography testing framework, introducing CMocka unit testing framework, implementing key management API, and enhancing test coverage for multiple cryptographic algorithms.
Key Improvements
1️⃣ Unit Testing Framework Upgrade
2️⃣ Key Management System (New)
3️⃣ Cryptographic Algorithm Enhancements
4️⃣ Dependency Optimization
5️⃣ Bug Fixes
Test Coverage
✅ AES-CBC, AES-CMAC, AES-CTR, AES-XTS
✅ 3DES-CBC, CRC32, HMAC, Hash (MD5/SHA-256)
✅ DHM (Diffie-Hellman), ECDSA, RSA
✅ Key generation and management operations
✅ Streaming encryption workflows
Apache Community Standards
Review Priority