summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGowtham Suresh Kumar <gowtham.sureshkumar@arm.com>2023-04-06 18:39:02 +0100
committerArmin Kuster <akuster808@gmail.com>2023-04-12 07:45:24 -0400
commitcdd42956892612d06bb5c2eb2973be4446255fbf (patch)
treef59d1c725cece4ba51541d9aebb11464456efbbe
parent9d819c1242b0d6b5c90f637b0dcf291cf45bce76 (diff)
downloadmeta-security-cdd42956892612d06bb5c2eb2973be4446255fbf.tar.gz
meta-parsec: Disable RSA-OAEP OEQA tests for Parsec PKCS11 backend
Signed-off-by: Gowtham Suresh Kumar <gowtham.sureshkumar@arm.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r--meta-parsec/lib/oeqa/runtime/cases/parsec.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/meta-parsec/lib/oeqa/runtime/cases/parsec.py b/meta-parsec/lib/oeqa/runtime/cases/parsec.py
index 6be84ba..71061db 100644
--- a/meta-parsec/lib/oeqa/runtime/cases/parsec.py
+++ b/meta-parsec/lib/oeqa/runtime/cases/parsec.py
@@ -53,10 +53,10 @@ class ParsecTest(OERuntimeTestCase):
53 self.assertIn("ID: 0x0%d (%s provider)" % (prov_id, provider), 53 self.assertIn("ID: 0x0%d (%s provider)" % (prov_id, provider),
54 output, msg='%s provider is not configured.' % provider) 54 output, msg='%s provider is not configured.' % provider)
55 55
56 def run_cli_tests(self, prov_id=None): 56 def run_cli_tests(self, prov_id=None, extra_params=""):
57 """ Run Parsec CLI end-to-end tests against one or all providers """ 57 """ Run Parsec CLI end-to-end tests against one or all providers """
58 58
59 status, output = self.target.run('parsec-cli-tests.sh %s' % ("-%d" % prov_id if prov_id else "")) 59 status, output = self.target.run('parsec-cli-tests.sh %s %s' % ("-%d" % prov_id if prov_id else "", extra_params))
60 self.assertEqual(status, 0, msg='Parsec CLI tests failed.\n %s' % output) 60 self.assertEqual(status, 0, msg='Parsec CLI tests failed.\n %s' % output)
61 61
62 def check_packageconfig(self, prov): 62 def check_packageconfig(self, prov):
@@ -181,7 +181,9 @@ class ParsecTest(OERuntimeTestCase):
181 self.configure_pkcs11_provider() 181 self.configure_pkcs11_provider()
182 self.check_parsec_providers("PKCS #11", prov_id) 182 self.check_parsec_providers("PKCS #11", prov_id)
183 183
184 self.run_cli_tests(prov_id) 184 # Software PKCS11 we use for OE QA testing
185 # doesn't support RSA-OAEP(SHA256) encryption/decryption operations
186 self.run_cli_tests(prov_id, "--no-oaep")
185 self.restore_parsec_config() 187 self.restore_parsec_config()
186 188
187 def configure_TS_provider(self): 189 def configure_TS_provider(self):