tests: crypto: enable on other arches

Some tests have large RAM requirements, appropriate filters added.
Redundant 'build_only = false' removed.

Issue: ZEP-1721
Change-Id: Id8b06b2ea8a63cf19cf155a75f1513810c383521
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
diff --git a/tests/crypto/test_cbc_mode/testcase.ini b/tests/crypto/test_cbc_mode/testcase.ini
index ae851ff..a8ae8ce 100644
--- a/tests/crypto/test_cbc_mode/testcase.ini
+++ b/tests/crypto/test_cbc_mode/testcase.ini
@@ -1,5 +1,2 @@
 [test]
 tags = crypto aes cbc
-build_only = false
-# FIXME: why?
-platform_whitelist = qemu_x86 qemu_cortex_m3
diff --git a/tests/crypto/test_ccm_mode/testcase.ini b/tests/crypto/test_ccm_mode/testcase.ini
index 366681a..7289983 100644
--- a/tests/crypto/test_ccm_mode/testcase.ini
+++ b/tests/crypto/test_ccm_mode/testcase.ini
@@ -1,5 +1,2 @@
 [test]
 tags = crypto aes ccm
-build_only = false
-# FIXME: why?
-platform_whitelist = qemu_x86 qemu_cortex_m3
diff --git a/tests/crypto/test_cmac_mode/testcase.ini b/tests/crypto/test_cmac_mode/testcase.ini
index e11dd00..076c810 100644
--- a/tests/crypto/test_cmac_mode/testcase.ini
+++ b/tests/crypto/test_cmac_mode/testcase.ini
@@ -1,5 +1,2 @@
 [test]
 tags = crypto aes cmac
-build_only = false
-# FIXME: why?
-platform_whitelist = qemu_x86 qemu_cortex_m3
diff --git a/tests/crypto/test_ctr_mode/testcase.ini b/tests/crypto/test_ctr_mode/testcase.ini
index 79ab9a4..fe8afa3 100644
--- a/tests/crypto/test_ctr_mode/testcase.ini
+++ b/tests/crypto/test_ctr_mode/testcase.ini
@@ -1,5 +1,2 @@
 [test]
 tags = crypto aes ctr
-build_only = false
-# FIXME: why?
-platform_whitelist = qemu_x86 qemu_cortex_m3
diff --git a/tests/crypto/test_ecc_dsa/testcase.ini b/tests/crypto/test_ecc_dsa/testcase.ini
index 2391116..7e12853 100644
--- a/tests/crypto/test_ecc_dsa/testcase.ini
+++ b/tests/crypto/test_ecc_dsa/testcase.ini
@@ -1,4 +1,7 @@
 [test]
 tags = crypto ecc dsa
-build_only = false
-platform_whitelist = qemu_x86 qemu_cortex_m3
+timeout = 180
+# Failing on xtensa, see ZEP-2021
+filter = (ARCH == "nios2" or CONFIG_DTCM_SIZE > 0x4000 or
+	  CONFIG_SRAM_SIZE > 16 or CONFIG_DCCM_SIZE > 16 or
+	  CONFIG_RAM_SIZE > 16)
diff --git a/tests/crypto/test_hmac/testcase.ini b/tests/crypto/test_hmac/testcase.ini
index 661f919..e619e0f 100644
--- a/tests/crypto/test_hmac/testcase.ini
+++ b/tests/crypto/test_hmac/testcase.ini
@@ -1,3 +1,5 @@
 [test]
 tags = crypto sha256 hmac
-platform_whitelist = qemu_x86 qemu_cortex_m3
+filter = (ARCH == "xtensa" or ARCH == "nios2" or CONFIG_DTCM_SIZE > 0x4000 or
+	  CONFIG_SRAM_SIZE > 16 or CONFIG_DCCM_SIZE > 16 or
+	  CONFIG_RAM_SIZE > 16)
diff --git a/tests/crypto/test_hmac_prng/testcase.ini b/tests/crypto/test_hmac_prng/testcase.ini
index ecfb0dc..eef0d7c 100644
--- a/tests/crypto/test_hmac_prng/testcase.ini
+++ b/tests/crypto/test_hmac_prng/testcase.ini
@@ -1,5 +1,5 @@
 [test]
 tags = crypto sha256 hmac prng
-build_only = false
-# FIXME: why?
-platform_whitelist = qemu_x86 qemu_cortex_m3
+filter = (ARCH == "xtensa" or ARCH == "nios2" or CONFIG_DTCM_SIZE > 0xc000 or
+	  CONFIG_SRAM_SIZE > 48 or CONFIG_DCCM_SIZE > 48 or
+	  CONFIG_RAM_SIZE > 48)