Soby Mathew | 3b9e184 | 2020-10-07 12:04:56 +0100 | [diff] [blame] | 1 | #------------------------------------------------------------------------------ |
| 2 | # Copyright (c) 2020, Arm Limited. All rights reserved. |
| 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | #------------------------------------------------------------------------------ |
| 7 | |
| 8 | ############ Override defaults for PSA API tests ############################## |
| 9 | |
| 10 | # CRYPTO_ENGINE_BUF_SIZE needs to be much larger for PSA API tests. |
| 11 | if(CRYPTO_ENGINE_BUF_SIZE LESS 0x5000) |
| 12 | set(CRYPTO_ENGINE_BUF_SIZE 0x5000 CACHE STRING "Heap size for the crypto backend" FORCE) |
| 13 | endif() |
Jamie Fox | 865778b | 2020-10-23 19:52:51 +0100 | [diff] [blame^] | 14 | |
| 15 | # When building for the PSA Crypto API tests, ensure the ITS max asset size is |
| 16 | # set to at least the size of the largest asset created by the tests |
| 17 | if (("${TEST_PSA_API}" STREQUAL "CRYPTO") AND (ITS_MAX_ASSET_SIZE LESS 1229)) |
| 18 | set(ITS_MAX_ASSET_SIZE "1229" CACHE STRING "The maximum asset size to be stored in the Internal Trusted Storage area" FORCE) |
| 19 | endif() |