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.
Mbedtls AES Key ID Support
Summary
This PR adds comprehensive support for AES encryption with key identifiers in the mbedtls alternative implementation and integrates the necessary patches for cipher wrapper functionality. This enhancement enables more flexible and secure key management in cryptographic operations:
AES-ALT Key ID Support: Add support for setting AES encryption keys using key identifiers instead of raw key data in the mbedtls alternative implementation. This includes functions for 128/192/256-bit key sizes in both encryption and decryption modes.
MBEDTLS Cipher-Wrap Integration: Add patch file and build system configuration to support AES cipher wrapping with key ID functionality in the mbedtls third-party library, automatically applied during build process.
These changes improve the flexibility and security of cryptographic key management across different deployment scenarios.
Impact
• Security: Improves key management by allowing cryptographic keys to be referenced by ID rather than embedding raw key data
• Flexibility: Enables applications to use both direct key data and key ID-based approaches seamlessly
• Integration: Ensures proper integration with upstream mbedtls library through automated patch application
• Compatibility: All changes are backward compatible with existing AES operations
• No breaking changes: Existing code continues to work without modification
Testing
Test Environment:
Test Procedure:
Test Results: