-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[bsp][stm32]upgrade menuconfig about crypto
- Loading branch information
Ernest
committed
Jul 11, 2019
1 parent
b0e037f
commit 8447a00
Showing
9 changed files
with
130 additions
and
44 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
menuconfig BSP_USING_ONCHIP_CRYPTO | ||
bool "Enable hardware crypto" | ||
select RT_USING_HWCRYPTO | ||
default n | ||
|
||
if BSP_USING_ONCHIP_CRYPTO | ||
config BSP_HWCRYPTO_USING_CRC | ||
bool "Using Hardware CRC" | ||
select RT_HWCRYPTO_USING_CRC | ||
depends on (SOC_SERIES_STM32F0 || SOC_SERIES_STM32F1 || SOC_SERIES_STM32F4 || \ | ||
SOC_SERIES_STM32F7 || SOC_SERIES_STM32L4 || SOC_SERIES_STM32H7) | ||
default n | ||
|
||
if BSP_HWCRYPTO_USING_CRC | ||
config BSP_HWCRYPTO_USING_CRC_CONFIG | ||
bool "Select a CRC configuration" | ||
depends on (SOC_SERIES_STM32L4 || SOC_SERIES_STM32F0 || SOC_SERIES_STM32H7 || \ | ||
SOC_SERIES_STM32F7) | ||
default y | ||
|
||
if BSP_HWCRYPTO_USING_CRC_CONFIG | ||
config BSP_HWCRYPTO_USING_CRC_07 | ||
select RT_HWCRYPTO_USING_CRC_07 | ||
bool "Using Hardware CRC-8 0x07 polynomial" | ||
default n | ||
|
||
config BSP_HWCRYPTO_USING_CRC_8005 | ||
select RT_HWCRYPTO_USING_CRC_8005 | ||
bool "Using Hardware CRC-16 0x8005 polynomial" | ||
default n | ||
|
||
config BSP_HWCRYPTO_USING_CRC_1021 | ||
select RT_HWCRYPTO_USING_CRC_1021 | ||
bool "Using Hardware CRC-16 0x1021 polynomial" | ||
default n | ||
|
||
config BSP_HWCRYPTO_USING_CRC_3D65 | ||
select RT_HWCRYPTO_USING_CRC_3D65 | ||
bool "Using Hardware CRC-16 0x3D65 polynomial" | ||
default n | ||
|
||
config BSP_HWCRYPTO_USING_CRC_04C11DB7 | ||
select RT_HWCRYPTO_USING_CRC_04C11DB7 | ||
bool "Using Hardware CRC-32 0x04C11DB7 polynomial" | ||
default n | ||
|
||
endif | ||
endif | ||
|
||
config BSP_HWCRYPTO_USING_RNG | ||
select RT_HWCRYPTO_USING_RNG | ||
depends on (SOC_SERIES_STM32L4 || SOC_SERIES_STM32F4 || SOC_SERIES_STM32F7 || \ | ||
SOC_SERIES_STM32H7) | ||
bool "Using Hardware RNG" | ||
default n | ||
endif |
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
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
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