-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
driver: crypto: add NXP S32 CRYPTO HSE driver
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. Signed-off-by: Ha Duong Quang <[email protected]>
- Loading branch information
1 parent
9f93ded
commit ec5ab83
Showing
7 changed files
with
769 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Copyright 2024 NXP | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
menuconfig CRYPTO_NXP_S32_HSE | ||
bool "NXP S32 HSE crypto driver" | ||
default y | ||
depends on DT_HAS_NXP_S32_CRYPTO_HSE_MU_ENABLED | ||
help | ||
Enable NXP HSE crypto driver. | ||
|
||
if CRYPTO_NXP_S32_HSE | ||
|
||
config CRYPTO_NXP_S32_HSE_OUTPUT_BUFFER_SIZE | ||
int "The output buffer size for storing the output data of HSE crypto service" | ||
default 128 | ||
help | ||
The output buffer size for storing the output data of HSE crypto service. | ||
|
||
config CRYPTO_NXP_S32_HSE_AES_KEY_SIZE | ||
int "The size of the key used in cryptographic algorithms, measured in bits." | ||
default 128 | ||
help | ||
The size of the key used in cryptographic algorithms, measured in bits. | ||
Only support for 128 bits or 256 bits. | ||
|
||
config CRYPTO_NXP_S32_HSE_AES_KEY_GROUP_ID | ||
int "The AES Key Group ID within RAM Key Catalog." | ||
range 0 255 | ||
default 0 | ||
help | ||
The AES Key Group ID within RAM Key Catalog. | ||
|
||
endif #CRYPTO_NXP_S32_HSE |
Oops, something went wrong.