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
|
2018-08-14 22:19:20 +08:00
|
|
|
bool "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
|
|
|
|
2018-09-18 01:56:43 +08:00
|
|
|
module = CRYPTO
|
|
|
|
module-str = CRYPTO
|
|
|
|
source "subsys/logging/Kconfig.template.log_config"
|
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
|