Crypto: Correct setting of config parameters
This patch corrects the previously incorrect setting
of config parameters via cmake. The patch also displays
the values of the config parameters during build to
ease analysis of the config values being applied.
The crypto module now assumes that the config parameters
are passed in via build and hence the previous assumption
of setting the defaults in code are removed and #error
is introduced if the build doesn't set them.
Signed-off-by: Soby Mathew <soby.mathew@arm.com>
Change-Id: Ic4dc8b2a08be5aa278d54cf4f4b73c0e12e9ccd3
diff --git a/secure_fw/partitions/crypto/crypto_init.c b/secure_fw/partitions/crypto/crypto_init.c
index 265fcfb..75dfc00 100644
--- a/secure_fw/partitions/crypto/crypto_init.c
+++ b/secure_fw/partitions/crypto/crypto_init.c
@@ -56,7 +56,7 @@
* in bytes
*/
#ifndef TFM_CRYPTO_IOVEC_BUFFER_SIZE
-#define TFM_CRYPTO_IOVEC_BUFFER_SIZE (5120)
+#error TFM_CRYPTO_IOVEC_BUFFER_SIZE is not defined
#endif
/**
@@ -269,7 +269,7 @@
* Crypto for its dynamic allocations
*/
#ifndef TFM_CRYPTO_ENGINE_BUF_SIZE
-#define TFM_CRYPTO_ENGINE_BUF_SIZE (0x2040) /* >8KB for EC signing in attest */
+#error TFM_CRYPTO_ENGINE_BUF_SIZE is not defined
#endif
/**