Skip to content

Commit 39b7cf4

Browse files
Vge0rgerlubos
authored andcommitted
[nrf noup] tests: crypto: Set size for PSA slot
noup since this option does not exist upstream. The Oberon PSA core has an option to manually set the buffer size of the PSA key slots in bytes. This option here: MBEDTLS_PSA_STATIC_KEY_SLOT_BUFFER_SIZE This option has a default value of 16 since it directly affects the memory usage. The crypto tests use a secp256r1 key and thus since the public key for this key is 65 bytes long we need to set the option in the sample. Signed-off-by: Georgios Vasilakis <[email protected]> (cherry picked from commit 2da4861)
1 parent a29db90 commit 39b7cf4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/crypto/secp256r1/mbedtls.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
CONFIG_MBEDTLS=y
22
CONFIG_MBEDTLS_PSA_CRYPTO_C=y
33
CONFIG_MBEDTLS_PSA_P256M_DRIVER_ENABLED=y
4+
CONFIG_MBEDTLS_PSA_STATIC_KEY_SLOT_BUFFER_SIZE=65
45
CONFIG_MBEDTLS_PSA_STATIC_KEY_SLOTS=y
56
CONFIG_MBEDTLS_PSA_KEY_SLOT_COUNT=2
67

0 commit comments

Comments
 (0)