2016-07-20 05:20:25 +08:00
|
|
|
# Kconfig - Crypto configuration options
|
|
|
|
#
|
2017-01-11 07:03:07 +08:00
|
|
|
# Copyright (c) 2017 Intel Corporation
|
2016-07-20 05:20:25 +08:00
|
|
|
#
|
2017-01-11 07:03:07 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2016-07-20 05:20:25 +08:00
|
|
|
#
|
|
|
|
|
2017-01-11 07:03:07 +08:00
|
|
|
|
2016-07-20 05:20:25 +08:00
|
|
|
#
|
|
|
|
# CRYPTO options
|
|
|
|
#
|
|
|
|
menuconfig CRYPTO
|
|
|
|
bool
|
2017-04-25 18:52:55 +08:00
|
|
|
prompt "Crypto Drivers [EXPERIMENTAL]"
|
2016-07-20 05:20:25 +08:00
|
|
|
|
|
|
|
if CRYPTO
|
2017-04-25 18:52:55 +08:00
|
|
|
|
|
|
|
config CRYPTO_INIT_PRIORITY
|
|
|
|
int "Crypto devices init priority"
|
|
|
|
default 90
|
|
|
|
help
|
2017-12-13 23:08:21 +08:00
|
|
|
Crypto devices initialization priority.
|
2017-04-25 18:52:55 +08:00
|
|
|
|
2016-07-20 05:20:25 +08:00
|
|
|
config SYS_LOG_CRYPTO_LEVEL
|
2017-04-25 18:52:55 +08:00
|
|
|
int "Crypto drivers log level"
|
2016-07-20 05:20:25 +08:00
|
|
|
default 0
|
2017-08-04 20:34:58 +08:00
|
|
|
depends on SYS_LOG
|
2016-07-20 05:20:25 +08:00
|
|
|
help
|
2017-12-13 23:08:21 +08:00
|
|
|
Sets log level for crypto drivers
|
2016-07-20 05:20:25 +08:00
|
|
|
|
2017-12-13 23:08:21 +08:00
|
|
|
Levels are:
|
2016-07-20 05:20:25 +08:00
|
|
|
|
2017-12-13 23:08:21 +08:00
|
|
|
- 0 OFF, do not write
|
2016-07-20 05:20:25 +08:00
|
|
|
|
2017-12-13 23:08:21 +08:00
|
|
|
- 1 ERROR, only write SYS_LOG_ERR
|
2016-07-20 05:20:25 +08:00
|
|
|
|
2017-12-13 23:08:21 +08:00
|
|
|
- 2 WARNING, write SYS_LOG_WRN in addition to previous level
|
2016-07-20 05:20:25 +08:00
|
|
|
|
2017-12-13 23:08:21 +08:00
|
|
|
- 3 INFO, write SYS_LOG_INF in addition to previous levels
|
2016-07-20 05:20:25 +08:00
|
|
|
|
2017-12-13 23:08:21 +08:00
|
|
|
- 4 DEBUG, write SYS_LOG_DBG in addition to previous levels
|
2016-07-20 05:20:25 +08:00
|
|
|
|
|
|
|
config CRYPTO_TINYCRYPT_SHIM
|
2018-05-19 04:33:03 +08:00
|
|
|
bool "Enable TinyCrypt shim driver [EXPERIMENTAL]"
|
2017-11-04 04:10:43 +08:00
|
|
|
select TINYCRYPT
|
|
|
|
select TINYCRYPT_AES
|
|
|
|
select TINYCRYPT_AES_CBC
|
|
|
|
select TINYCRYPT_AES_CTR
|
|
|
|
select TINYCRYPT_AES_CCM
|
|
|
|
select TINYCRYPT_AES_CMAC
|
2016-07-20 05:20:25 +08:00
|
|
|
help
|
2017-12-13 23:08:21 +08:00
|
|
|
Enable TinyCrypt shim layer compliant with crypto APIs.
|
2016-07-20 05:20:25 +08:00
|
|
|
|
2017-04-25 20:54:47 +08:00
|
|
|
config CRYPTO_TINYCRYPT_SHIM_MAX_SESSION
|
|
|
|
int "Maximum of sessions TinyCrypt shim driver can handle"
|
|
|
|
default 2
|
2017-11-04 04:10:43 +08:00
|
|
|
depends on CRYPTO_TINYCRYPT_SHIM
|
2017-04-25 20:54:47 +08:00
|
|
|
help
|
2017-12-13 23:08:21 +08:00
|
|
|
This can be used to tweak the amount of sessions the driver
|
|
|
|
can handle in parallel.
|
2017-04-25 20:54:47 +08:00
|
|
|
|
2017-04-25 19:12:37 +08:00
|
|
|
config CRYPTO_TINYCRYPT_SHIM_DRV_NAME
|
2016-07-20 05:20:25 +08:00
|
|
|
string "Device name for TinyCrypt Pseudo device"
|
2017-04-25 19:12:37 +08:00
|
|
|
default "CRYPTO_TC"
|
2016-07-20 05:20:25 +08:00
|
|
|
depends on CRYPTO_TINYCRYPT_SHIM
|
|
|
|
help
|
2017-12-13 23:08:21 +08:00
|
|
|
Device name for TinyCrypt Pseudo device.
|
2016-07-20 05:20:25 +08:00
|
|
|
|
2017-04-25 20:46:04 +08:00
|
|
|
config CRYPTO_MBEDTLS_SHIM
|
2018-05-19 04:33:03 +08:00
|
|
|
bool "Enable mbedTLS shim driver [EXPERIMENTAL]"
|
2017-04-25 20:46:04 +08:00
|
|
|
select MBEDTLS
|
|
|
|
select MBEDTLS_ENABLE_HEAP
|
|
|
|
help
|
2017-12-13 23:08:21 +08:00
|
|
|
Enable mbedTLS shim layer compliant with crypto APIs. You will need
|
|
|
|
to fill in a relevant value to CONFIG_MBEDTLS_HEAP_SIZE.
|
2017-04-25 20:46:04 +08:00
|
|
|
|
|
|
|
config CRYPTO_MBEDTLS_SHIM_DRV_NAME
|
|
|
|
string "Device name for mbedTLS Pseudo device"
|
|
|
|
default "CRYPTO_MTLS"
|
|
|
|
depends on CRYPTO_MBEDTLS_SHIM
|
|
|
|
help
|
2017-12-13 23:08:21 +08:00
|
|
|
Device name for mbedTLS Pseudo device.
|
2017-04-25 20:46:04 +08:00
|
|
|
|
|
|
|
config CRYPTO_MBEDTLS_SHIM_MAX_SESSION
|
|
|
|
int "Maximum of sessions mbedTLS shim driver can handle"
|
|
|
|
default 2
|
2017-11-04 04:49:59 +08:00
|
|
|
depends on CRYPTO_MBEDTLS_SHIM
|
2017-04-25 20:46:04 +08:00
|
|
|
help
|
2017-12-13 23:08:21 +08:00
|
|
|
This can be used to tweak the amount of sessions the driver
|
|
|
|
can handle in parallel.
|
2017-04-25 20:46:04 +08:00
|
|
|
|
2017-01-11 07:03:07 +08:00
|
|
|
source "drivers/crypto/Kconfig.ataes132a"
|
2017-04-25 18:52:55 +08:00
|
|
|
|
2016-07-20 05:20:25 +08:00
|
|
|
endif # CRYPTO
|