Skip to content
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

Renesas: Smartbond: Crypto Driver Update #72956

Merged

Conversation

ioannis-karachalios
Copy link
Contributor

This PR should fix few Crypto driver issues and add support to the Crypto tests/samples suite.

* write access while XiP, should result in raising busfault
* exception.
*/
return crypto_swap_word(data);
Copy link
Collaborator

@ydamigos ydamigos May 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return crypto_swap_word(data);
return SWAP32(__UNALIGNED_UINT32_READ(data));

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or better use API functions like sys_get_le32()/sys_get_be32().

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need a "consumer" for this, don't we?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

blauret
blauret previously approved these changes May 21, 2024
@ioannis-karachalios ioannis-karachalios force-pushed the da1469x-crypto-update branch 2 times, most recently from 89c7129 to b14ab57 Compare May 21, 2024 22:10
This commit should fix the followings:
1. Suppress compiler warnings
2. Cryptographic mode should first be exercised before
   applying the secure key
3. In-memory word swap operations should be omitted as
   the key should reside in the flash memory and so any
   write access should raise a busfault exception

Signed-off-by: Ioannis Karachalios <ioannis.karachalios.px@renesas.com>
This commit should add support for the DA1469x Pro DevKit.

Signed-off-by: Ioannis Karachalios <ioannis.karachalios.px@renesas.com>
This commit should add support for the DA1469x Pro DevKit.

Signed-off-by: Ioannis Karachalios <ioannis.karachalios.px@renesas.com>
@ioannis-karachalios
Copy link
Contributor Author

@ceolin ping

@dleach02 dleach02 merged commit 816cf70 into zephyrproject-rtos:main May 30, 2024
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Crypto / RNG area: Samples Samples platform: Renesas SmartBond Renesas Electronics Corporation, SmartBond
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants