1
2#-------------------------------------------------------------------------------
3# Copyright (c) 2023, Arm Limited. All rights reserved.
4#
5# SPDX-License-Identifier: BSD-3-Clause
6#
7#-------------------------------------------------------------------------------
8
9if PSA_API_TEST_CRYPTO
10    config CRYPTO_ENGINE_BUF_SIZE
11        default 0x5000
12
13    config CRYPTO_CONC_OPER_NUM
14        default 8
15
16    config CRYPTO_RNG_MODULE_ENABLED
17        default y
18
19    config CRYPTO_KEY_MODULE_ENABLED
20        default y
21
22    config CRYPTO_AEAD_MODULE_ENABLED
23        default y
24
25    config CRYPTO_MAC_MODULE_ENABLED
26        default y
27
28    config CRYPTO_HASH_MODULE_ENABLED
29        default y
30
31    config CRYPTO_CIPHER_MODULE_ENABLED
32        default y
33
34    config CRYPTO_ASYM_SIGN_MODULE_ENABLED
35        default y
36
37    config CRYPTO_ASYM_ENCRYPT_MODULE_ENABLED
38        default y
39
40    config CRYPTO_KEY_DERIVATION_MODULE_ENABLED
41        default y
42
43    config CRYPTO_IOVEC_BUFFER_SIZE
44        default 5120
45
46    config CRYPTO_NV_SEED
47        default y
48
49    config CRYPTO_SINGLE_PART_FUNCS_DISABLED
50        default n
51
52    config CRYPTO_STACK_SIZE
53        default 0x1B00
54endif
55
56if PSA_API_TEST_INITIAL_ATTESTATION
57    config ATTEST_INCLUDE_OPTIONAL_CLAIMS
58        default y
59
60    config ATTEST_INCLUDE_COSE_KEY_ID
61        default n
62
63    config ATTEST_STACK_SIZE
64        default 0x700
65
66    choice ATTEST_TOKEN_PROFILE
67        default ATTEST_TOKEN_PROFILE_PSA_IOT_1
68    endchoice
69endif
70
71if PSA_API_TEST_INTERNAL_TRUSTED_STORAGE || PSA_API_TEST_STORAGE
72    config ITS_CREATE_FLASH_LAYOUT
73        default y
74
75    config ITS_RAM_FS
76        default n
77
78    config ITS_VALIDATE_METADATA_FROM_FLASH
79        default y
80
81    config ITS_BUF_SIZE
82        default ITS_MAX_ASSET_SIZE
83
84    config ITS_NUM_ASSETS
85        default 10
86
87    config ITS_STACK_SIZE
88        default 0x720
89
90    config ITS_MAX_ASSET_SIZE
91        default 1229 if PSA_API_TEST_CRYPTO
92endif
93
94if PSA_API_TEST_PROTECTED_STORAGE || PSA_API_TEST_STORAGE
95    config PS_CREATE_FLASH_LAYOUT
96        default y
97
98    config PS_RAM_FS
99        default n
100
101    config PS_ROLLBACK_PROTECTION
102        default y
103
104    config PS_VALIDATE_METADATA_FROM_FLASH
105        default y
106
107    config PS_MAX_ASSET_SIZE
108        default 2048
109
110    config PS_NUM_ASSETS
111        default 10
112
113    config PS_STACK_SIZE
114        default 0x700
115endif
116
117config CONFIG_TFM_CONN_HANDLE_MAX_NUM
118    default 8
119