Skip to content

Conversation

@haduongquang
Copy link
Contributor

@haduongquang haduongquang commented Oct 3, 2024

This PR introduces NXP S32 HSE CRYTO driver for SoC NXP S32Z27 and enables its usage for board s32z270dc2.
Supports cryptographic operations, including hashing and symmetric ciphers, with capabilities for ECB, CBC, and CTR modes using RAM-based key catalogs with 128-bit key lengths.

tests\crypto\crypto_hash:

SUITE PASS - 100.00% [crypto_hash]: pass = 1, fail = 0, skip = 0, total = 1 duration = 0.001 seconds
 PASS - [crypto_hash.test_hash] duration = 0.001 seconds

samples\drivers\crypto:

I: Cipher Sample
I: ECB Mode
I: Output length (encryption): 0
I: ECB mode ENCRYPT - Match
I: Output length (decryption): 0
I: ECB mode DECRYPT - Match
I: CBC Mode
I: Output length (encryption): 80
I: CBC mode ENCRYPT - Match
I: Output length (decryption): 0
I: CBC mode DECRYPT - Match
I: CTR Mode
I: Output length (encryption): 0
I: CTR mode ENCRYPT - Match
I: Output length (decryption): 0
I: CTR mode DECRYPT - Match

@zephyrbot
Copy link

zephyrbot commented Oct 3, 2024

The following west manifest projects have changed revision in this Pull Request:

Name Old Revision New Revision Diff
hal_nxp zephyrproject-rtos/hal_nxp@a7f64ac zephyrproject-rtos/hal_nxp@6f58abe (master) zephyrproject-rtos/[email protected]

All manifest checks OK

Note: This message is automatically posted and updated by the Manifest GitHub Action.

@zephyrbot zephyrbot added manifest manifest-hal_nxp DNM This PR should not be merged (Do Not Merge) labels Oct 3, 2024
@haduongquang haduongquang changed the title Add support for NXP S32 HSE CRYPTO driver for S32Z270 Add support NXP S32 HSE CRYPTO driver for S32Z270 Oct 3, 2024
@decsny decsny removed their request for review October 3, 2024 05:26
@haduongquang haduongquang force-pushed the support-hse-driver-for-s32z270 branch 3 times, most recently from dc8d870 to 2ba0f4f Compare October 3, 2024 08:01
@haduongquang
Copy link
Contributor Author

Fixed compliance, clang and build fail.

@haduongquang haduongquang force-pushed the support-hse-driver-for-s32z270 branch from 7aec1c3 to fff61b3 Compare November 25, 2025 03:40
Dat-NguyenDuy
Dat-NguyenDuy previously approved these changes Nov 25, 2025
@haduongquang
Copy link
Contributor Author

@haduongquang still manifest conflicts, pls rebase, that should clean the builds

I rebased

manuargue
manuargue previously approved these changes Nov 26, 2025
@haduongquang haduongquang dismissed stale reviews from manuargue and Dat-NguyenDuy via b9386ee November 27, 2025 09:12
@haduongquang haduongquang force-pushed the support-hse-driver-for-s32z270 branch from fff61b3 to b9386ee Compare November 27, 2025 09:12
valeriosetti
valeriosetti previously approved these changes Nov 27, 2025
manuargue
manuargue previously approved these changes Nov 27, 2025
Dat-NguyenDuy
Dat-NguyenDuy previously approved these changes Nov 28, 2025
Add device tree node for MU instances that will be used by HSE and RTU
for s32z270.

Add support hash crypto for NXP S32 with Algo 2:
SHA224, SHA256, SHA384 and SHA512.

Add support cipher crypto with ECB, CBC and CTR mode by using ram key
catalog.

Add support 128/256 bits ram key length.

Signed-off-by: Ha Duong Quang <[email protected]>
Enable test for s32z270 hash crypto.

Enable samples for cipher cryptoEndable samples for EBC, CBC,
CTR mode of cipher crypto.

Signed-off-by: Ha Duong Quang <[email protected]>
@haduongquang haduongquang force-pushed the support-hse-driver-for-s32z270 branch from b9386ee to 96a2084 Compare December 2, 2025 02:11
@github-actions github-actions bot removed the DNM (manifest) This PR should not be merged (controlled by action-manifest) label Dec 2, 2025
@zephyrbot zephyrbot requested a review from manuargue December 2, 2025 02:12
@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 2, 2025

@haduongquang
Copy link
Contributor Author

I rebased main and updated west.yml

@kartben kartben merged commit 676a050 into zephyrproject-rtos:main Dec 2, 2025
33 checks passed
@manuargue manuargue deleted the support-hse-driver-for-s32z270 branch December 2, 2025 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants