fix(api): stse_data_storage_change_read_access_condition fails due to…#62
Closed
Grolleau-Benjamin wants to merge 7 commits intoSTMicroelectronics:mainfrom
Closed
fix(api): stse_data_storage_change_read_access_condition fails due to…#62Grolleau-Benjamin wants to merge 7 commits intoSTMicroelectronics:mainfrom
Grolleau-Benjamin wants to merge 7 commits intoSTMicroelectronics:mainfrom
Conversation
d9ad62b to
b06a107
Compare
c196d23 to
637af70
Compare
Contributor
|
@Grolleau-Benjamin, |
a068272 to
a8a4043
Compare
Signed-off-by: Benjamin Grolleau <benjamin.grolleau@outlook.com>
Add platform abstraction layer implementation using wolfSSL/wolfCrypt for cryptographic operations including: - AES-ECB, AES-CBC, AES-CMAC encryption/decryption - SHA-256/SHA-384 hash computation - ECC key generation, signing, verification (NIST P-256/P-384, Brainpool) - ECDH key exchange (including Curve25519) - HMAC-SHA256 HKDF extract/expand (RFC 5869) - NIST SP 800-38F AES Key Wrap This enables STSELib integration on platforms using wolfSSL as the cryptographic provider, providing an alternative to STM32 CMOX. New files: - examples/wolfssl/stse_platform_crypto_wolfssl.c: Complete implementation - examples/wolfssl/user_settings.h: Sample wolfSSL configuration - examples/wolfssl/README.md: Usage instructions - doc/.../stse_platform_wolfssl.c.md: Porting guide documentation Tested on STSAFE-A120 hardware with Raspberry Pi 5. Signed-off-by: Benjamin Grolleau <benjamin.grolleau@outlook.com>
… zero-length read validation Signed-off-by: Benjamin Grolleau <benjamin.grolleau@outlook.com>
Signed-off-by: Benjamin Grolleau <benjamin.grolleau@outlook.com>
Signed-off-by: Benjamin Grolleau <benjamin.grolleau@outlook.com>
Add platform abstraction layer implementation using wolfSSL/wolfCrypt for cryptographic operations including: - AES-ECB, AES-CBC, AES-CMAC encryption/decryption - SHA-256/SHA-384 hash computation - ECC key generation, signing, verification (NIST P-256/P-384, Brainpool) - ECDH key exchange (including Curve25519) - HMAC-SHA256 HKDF extract/expand (RFC 5869) - NIST SP 800-38F AES Key Wrap This enables STSELib integration on platforms using wolfSSL as the cryptographic provider, providing an alternative to STM32 CMOX. New files: - examples/wolfssl/stse_platform_crypto_wolfssl.c: Complete implementation - examples/wolfssl/user_settings.h: Sample wolfSSL configuration - examples/wolfssl/README.md: Usage instructions - doc/.../stse_platform_wolfssl.c.md: Porting guide documentation Tested on STSAFE-A120 hardware with Raspberry Pi 5. Signed-off-by: Benjamin Grolleau <benjamin.grolleau@outlook.com>
Signed-off-by: Benjamin Grolleau <benjamin.grolleau@outlook.com>
a8a4043 to
207a825
Compare
Contributor
Author
|
@TofMassilia13320 |
Contributor
|
I don't know what's happening during your rebase; some commits are duplicated. |
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
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.
Description
There is a functional regression or logic error in the
stse_data_storage_change_read_access_conditionfunction. Currently, this function callsstsafea_read_data_zonewith aread_lengthset to0x00.However,
stsafea_read_data_zoneincludes a parameter validation check that returns STSE_SERVICE_INVALID_PARAMETER if the length is zero, making it impossible to update the access conditions via this API function.The current way to update read access condition is :
After changes
This function now works correctly.
Thanks @nils-cercariolo-st for advices. This PR closes #61