Crypto: Align implementation to pass PSA API compliance
-- Enable the option to specify maximum supported key
length and maximum number of key slots at build time
for the key module
-- Enable the option to specify internal buffer size
for scratch allocation at build time for the
engine module
-- Make sure that MD-2 and MD-4 hashes are enabled and
supported by the back end as they are tested by the
PSA API compliance tests
-- Other alignment needed to pass PSA API compliance
tests, as changes in return codes, more error
checking, and documentation update when needed
Change-Id: I4bb78b06de2fa01580c4cbd361c946d32c614240
Signed-off-by: Jamie Fox <jamie.fox@arm.com>
Co-Authored-by: Antonio de Angelis <antonio.deangelis@arm.com>
diff --git a/secure_fw/services/crypto/CMakeLists.inc b/secure_fw/services/crypto/CMakeLists.inc
index 4b572eb..3cf8dc2 100644
--- a/secure_fw/services/crypto/CMakeLists.inc
+++ b/secure_fw/services/crypto/CMakeLists.inc
@@ -67,6 +67,21 @@
#Inform the user about Crypto service features selected based on the Crypto service cmake flags
message("The Crypto service compile configuration is as follows:")
message("- CRYPTO_ENGINE_MBEDTLS: " ${CRYPTO_ENGINE_MBEDTLS})
+ if (NOT DEFINED CRYPTO_KEY_STORAGE_NUM)
+ message("- CRYPTO_KEY_STORAGE_NUM using default value")
+ else()
+ message("- CRYPTO_KEY_STORAGE_NUM: " ${CRYPTO_KEY_STORAGE_NUM})
+ endif()
+ if (NOT DEFINED CRYPTO_KEY_MAX_KEY_LENGTH)
+ message("- CRYPTO_KEY_MAX_KEY_LENGTH using default value")
+ else()
+ message("- CRYPTO_KEY_MAX_KEY_LENGTH: " ${CRYPTO_KEY_MAX_KEY_LENGTH})
+ endif()
+ if (NOT DEFINED CRYPTO_ENGINE_BUF_SIZE)
+ message("- CRYPTO_ENGINE_BUF_SIZE using default value")
+ else()
+ message("- CRYPTO_ENGINE_BUF_SIZE: " ${CRYPTO_ENGINE_BUF_SIZE})
+ endif()
else()
message(FATAL_ERROR "Build system currently doesn't support selectively disabling of a service.")