xtest: disable SE05X unsupported tests

The SE050/1 secure elements do not support all the cryptographic
operations tested in the regression nor pkcs#11 tests.

Since the test framework wont handle a 'feature not supported' return
code from the secure world, this commit disables those tests that are
not supported by the hardware.

pkcs11:
	RSA sign:
		CKM_MD5_RSA_PKCS
	RSA OAEP crypto:
	    	RSA-OAEP/SHA224
		RSA-OAEP/SHA224/label
		RSA-OAEP/SHA256
		RSA-OAEP/SHA256/label
		RSA-OAEP/SHA384
		RSA-OAEP/SHA384/label
		RSA-OAEP/SHA512
		RSA-OAEP/SHA512/label
regression:
	RSA keypair generation:
	    	RSA-256
		RSA-384
		RSA-640
		RSA-768
		RSA-896

Signed-off-by: Jorge Ramirez-Ortiz <jorge@foundries.io>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
diff --git a/host/xtest/pkcs11_1000.c b/host/xtest/pkcs11_1000.c
index 3065b59..4b36909 100644
--- a/host/xtest/pkcs11_1000.c
+++ b/host/xtest/pkcs11_1000.c
@@ -6297,8 +6297,10 @@
 	const void *data;
 	CK_ULONG data_size;
 } rsa_pkcs_sign_tests[] = {
+#ifndef CFG_CRYPTO_SE05X
 	RSA_SIGN_TEST("CKM_MD5_RSA_PKCS", CKM_MD5_RSA_PKCS,
 		      digest_test_pattern),
+#endif
 	RSA_SIGN_TEST("CKM_SHA1_RSA_PKCS", CKM_SHA1_RSA_PKCS,
 		      digest_test_pattern),
 	RSA_SIGN_TEST("CKM_SHA224_RSA_PKCS", CKM_SHA224_RSA_PKCS,
@@ -7051,6 +7053,7 @@
 	RSA_OAEP_CRYPT_TEST("RSA-OAEP/SHA1/label", 1024, CKM_SHA_1,
 			    CKG_MGF1_SHA1, rsa_oaep_label,
 			    sizeof(rsa_oaep_label)),
+#ifndef CFG_CRYPTO_SE05X
 	RSA_OAEP_CRYPT_TEST("RSA-OAEP/SHA224", 1024, CKM_SHA224,
 			    CKG_MGF1_SHA224, NULL, 0),
 	RSA_OAEP_CRYPT_TEST("RSA-OAEP/SHA224/label", 1024, CKM_SHA224,
@@ -7071,6 +7074,7 @@
 	RSA_OAEP_CRYPT_TEST("RSA-OAEP/SHA512/label", 2048, CKM_SHA512,
 			    CKG_MGF1_SHA512, rsa_oaep_label,
 			    sizeof(rsa_oaep_label)),
+#endif
 };
 
 static int test_rsa_oaep_operations(ADBG_Case_t *c,
diff --git a/host/xtest/regression_4000.c b/host/xtest/regression_4000.c
index 9f0c29f..3cf870b 100644
--- a/host/xtest/regression_4000.c
+++ b/host/xtest/regression_4000.c
@@ -4401,12 +4401,16 @@
 	TEEC_Session session = { };
 	uint32_t ret_orig = 0;
 	static const struct key_types_noparam key_types[] = {
+#ifndef CFG_CRYPTO_SE05X
 		{ 0, "RSA-256", TEE_TYPE_RSA_KEYPAIR, 1, 256, 256 },
 		{ 1, "RSA-384", TEE_TYPE_RSA_KEYPAIR, 1, 384, 384 },
+#endif
 		{ 1, "RSA-512", TEE_TYPE_RSA_KEYPAIR, 1, 512, 512 },
+#ifndef CFG_CRYPTO_SE05X
 		{ 1, "RSA-640", TEE_TYPE_RSA_KEYPAIR, 1, 640, 640 },
 		{ 1, "RSA-768", TEE_TYPE_RSA_KEYPAIR, 1, 768, 768 },
 		{ 1, "RSA-896", TEE_TYPE_RSA_KEYPAIR, 1, 896, 896 },
+#endif
 		{ 1, "RSA-1024", TEE_TYPE_RSA_KEYPAIR, 1, 1024, 1024 },
 		{ 1, "RSA-2048", TEE_TYPE_RSA_KEYPAIR, 1, 2048, 2048 },
 		{ 1, "RSA-3072", TEE_TYPE_RSA_KEYPAIR, 1, 3072, 3072 },