1# Crypto configuration options
2
3# Copyright (c) 2017 Intel Corporation
4# SPDX-License-Identifier: Apache-2.0
5
6#
7# CRYPTO options
8#
9menuconfig CRYPTO
10	bool "Crypto drivers"
11
12if CRYPTO
13
14config CRYPTO_INIT_PRIORITY
15	int "Crypto devices init priority"
16	default 90
17	help
18	  Crypto devices initialization priority.
19
20module = CRYPTO
21module-str = CRYPTO
22source "subsys/logging/Kconfig.template.log_config"
23
24config CRYPTO_TINYCRYPT_SHIM
25	bool "TinyCrypt shim driver [EXPERIMENTAL]"
26	select TINYCRYPT
27	select TINYCRYPT_AES
28	select TINYCRYPT_AES_CBC
29	select TINYCRYPT_AES_CTR
30	select TINYCRYPT_AES_CCM
31	select TINYCRYPT_AES_CMAC
32	select EXPERIMENTAL
33	help
34	  Enable TinyCrypt shim layer compliant with crypto APIs.
35
36config CRYPTO_TINYCRYPT_SHIM_MAX_SESSION
37	int "Maximum of sessions TinyCrypt shim driver can handle"
38	default 2
39	depends on CRYPTO_TINYCRYPT_SHIM
40	help
41	  This can be used to tweak the amount of sessions the driver
42	  can handle in parallel.
43
44config CRYPTO_TINYCRYPT_SHIM_DRV_NAME
45	string "Device name for TinyCrypt Pseudo device"
46	default "CRYPTO_TC"
47	depends on CRYPTO_TINYCRYPT_SHIM
48	help
49	  Device name for TinyCrypt Pseudo device.
50
51config CRYPTO_MBEDTLS_SHIM
52	bool "MbedTLS shim driver [EXPERIMENTAL]"
53	select MBEDTLS
54	select MBEDTLS_ENABLE_HEAP
55	select EXPERIMENTAL
56	help
57	  Enable mbedTLS shim layer compliant with crypto APIs. You will need
58	  to fill in a relevant value to CONFIG_MBEDTLS_HEAP_SIZE.
59
60config CRYPTO_MBEDTLS_SHIM_DRV_NAME
61	string "Device name for mbedTLS Pseudo device"
62	default "CRYPTO_MTLS"
63	depends on CRYPTO_MBEDTLS_SHIM
64	help
65	  Device name for mbedTLS Pseudo device.
66
67config CRYPTO_MBEDTLS_SHIM_MAX_SESSION
68	int "Maximum of sessions mbedTLS shim driver can handle"
69	default 2
70	depends on CRYPTO_MBEDTLS_SHIM
71	help
72	  This can be used to tweak the amount of sessions the driver
73	  can handle in parallel.
74
75source "drivers/crypto/Kconfig.ataes132a"
76source "drivers/crypto/Kconfig.stm32"
77source "drivers/crypto/Kconfig.nrf_ecb"
78source "drivers/crypto/Kconfig.intel"
79source "drivers/crypto/Kconfig.npcx"
80source "drivers/crypto/Kconfig.xec"
81source "drivers/crypto/Kconfig.it8xxx2"
82source "drivers/crypto/Kconfig.mcux_dcp"
83
84endif # CRYPTO
85