1# Configuration for the crypto modules in the TF-M Module
2
3# Copyright (c) 2021 Nordic Semiconductor ASA
4# SPDX-License-Identifier: Apache-2.0
5
6if BUILD_WITH_TFM
7
8if TFM_PARTITION_CRYPTO
9
10config TFM_CRYPTO_RNG_MODULE_ENABLED
11	bool "Random number generator crypto module"
12	default y
13	help
14	  Enables the random number generator  module within the crypto partition.
15	  Unset this option if 'psa_generate_random' is not used.
16
17config TFM_CRYPTO_KEY_MODULE_ENABLED
18	bool "KEY crypto module"
19	default y
20	help
21	  Enables the KEY crypto module within the crypto partition.
22	  Unset this option if the functionality provided by 'crypto_key_management.c'
23	  is not used.
24
25config TFM_CRYPTO_AEAD_MODULE_ENABLED
26	bool "AEAD crypto module"
27	default y
28	help
29	  Enables the AEAD crypto module within the crypto partition.
30	  Unset this option if the functionality provided by 'crypto_aead.c'
31	  is not used.
32
33config TFM_CRYPTO_MAC_MODULE_ENABLED
34	bool "MAC crypto module"
35	default y
36	help
37	  Enables the MAC crypto module within the crypto partition.
38	  Unset this option if the functionality provided by 'crypto_mac.c'
39	  is not used.
40
41config TFM_CRYPTO_HASH_MODULE_ENABLED
42	bool "HASH crypto module"
43	default y
44	help
45	  Enables the HASH crypto module within the crypto partition.
46	  Unset this option if the functionality provided by 'crypto_hash.c'
47	  is not used.
48
49config TFM_CRYPTO_CIPHER_MODULE_ENABLED
50	bool "CIPHER crypto module"
51	default y
52	help
53	  Enables the CIPHER crypto module within the crypto partition.
54	  Unset this option if the functionality provided by 'crypto_cipher.c'
55	  is not used.
56
57config TFM_CRYPTO_ASYM_ENCRYPT_MODULE_ENABLED
58	bool "ASYM ENCRYPT crypto module"
59	default y
60	help
61	  Enables the ASYM ENCRYPT crypto module within the crypto partition.
62	  Unset this option if the encrypt functionality provided by 'crypto_asymmetric.c'
63	  is not used.
64
65config TFM_CRYPTO_ASYM_SIGN_MODULE_ENABLED
66	bool "ASYM SIGN crypto module"
67	default y
68	help
69	  Enables the ASYM SIGN crypto module within the crypto partition.
70	  Unset this option if the sign functionality provided by 'crypto_asymmetric.c'
71	  is not used.
72
73config TFM_CRYPTO_KEY_DERIVATION_MODULE_ENABLED
74	bool "KEY DERIVATION crypto module"
75	default y
76	help
77	  Enables the KEY_DERIVATION crypto module within the crypto partition.
78	  Unset this option if the functionality provided by 'crypto_key_derivation.c'
79	  is not used.
80
81endif # TFM_PARTITION_CRYPTO
82
83endif # BUILD_WITH_TFM
84