Enhancements: Crypto

Details     : Re-structure test data structures across tests and in turn
              re-use the test data effectively.

              Reduce overall RAM requirement(.data and .bss) which
              effectively minimize the overall boot time.

              The RAM consumption reduced to ~12K from ~105K.

              With modified test data structures, the test logic code looks
              cleaner and readable.

Note        : Re-work for some of the left out tests will be done as part
              of future release.

Signed-off-by: Vinay Kumar Kotegowder <vinaykumar.kotegowder@arm.com>
diff --git a/api-tests/dev_apis/crypto/suite.cmake b/api-tests/dev_apis/crypto/suite.cmake
index 6f1050f..40c1a0d 100644
--- a/api-tests/dev_apis/crypto/suite.cmake
+++ b/api-tests/dev_apis/crypto/suite.cmake
@@ -33,6 +33,8 @@
 
 add_definitions(${CC_OPTIONS})
 add_definitions(${AS_OPTIONS})
+# append common crypto file to list of source collected
+list(APPEND SUITE_CC_SOURCE ${PSA_SUITE_DIR}/common/test_crypto_common.c)
 add_library(${PSA_TARGET_TEST_COMBINE_LIB} STATIC ${SUITE_CC_SOURCE} ${SUITE_AS_SOURCE})
 
 # Test related Include directories
@@ -54,4 +56,5 @@
 	${PSA_ROOT_DIR}/platform/targets/common/nspe
 	${PSA_ROOT_DIR}/platform/targets/common/nspe/crypto
 	${PSA_ROOT_DIR}/platform/targets/${TARGET}/nspe
+	${PSA_SUITE_DIR}/common/
 )