blob: 9f8bb8f6ea0a2e488510d6fef0e4d021f94347de [file] [log] [blame]
Soby Mathew3b9e1842020-10-07 12:04:56 +01001#------------------------------------------------------------------------------
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.
Tamas Ban69219202020-10-27 08:13:18 +000011if(NOT (CRYPTO_ENGINE_BUF_SIZE GREATER 0x5000))
12 set(CRYPTO_ENGINE_BUF_SIZE 0x5000 CACHE STRING "Heap size for the crypto backend")
Soby Mathew3b9e1842020-10-07 12:04:56 +010013endif()
Jamie Fox865778b2020-10-23 19:52:51 +010014
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
Tamas Ban69219202020-10-27 08:13:18 +000017if (("${TEST_PSA_API}" STREQUAL "CRYPTO") AND NOT (ITS_MAX_ASSET_SIZE GREATER 1229))
18 set(ITS_MAX_ASSET_SIZE "1229" CACHE STRING "The maximum asset size to be stored in the Internal Trusted Storage area")
Jamie Fox865778b2020-10-23 19:52:51 +010019endif()