test_suite_psa_crypto: revert known failing checks for [en|de]cryption with opaque keys
Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
diff --git a/tests/suites/test_suite_psa_crypto.function b/tests/suites/test_suite_psa_crypto.function
index f67508c..60c4f30 100644
--- a/tests/suites/test_suite_psa_crypto.function
+++ b/tests/suites/test_suite_psa_crypto.function
@@ -2148,11 +2148,8 @@
NULL, 0,
buffer, buffer_length,
&output_length);
- if (use_opaque_key) {
- /* Encryption/decryption is opaque keys is currently not supported. */
- TEST_EQUAL(status, PSA_ERROR_NOT_SUPPORTED);
- } else if (policy_alg == exercise_alg &&
- (policy_usage & PSA_KEY_USAGE_ENCRYPT) != 0) {
+ if (policy_alg == exercise_alg &&
+ (policy_usage & PSA_KEY_USAGE_ENCRYPT) != 0) {
PSA_ASSERT(status);
} else {
TEST_EQUAL(status, PSA_ERROR_NOT_PERMITTED);
@@ -2166,11 +2163,8 @@
NULL, 0,
buffer, buffer_length,
&output_length);
- if (use_opaque_key) {
- /* Encryption/decryption is opaque keys is currently not supported. */
- TEST_EQUAL(status, PSA_ERROR_NOT_SUPPORTED);
- } else if (policy_alg == exercise_alg &&
- (policy_usage & PSA_KEY_USAGE_DECRYPT) != 0) {
+ if (policy_alg == exercise_alg &&
+ (policy_usage & PSA_KEY_USAGE_DECRYPT) != 0) {
TEST_EQUAL(status, PSA_ERROR_INVALID_PADDING);
} else {
TEST_EQUAL(status, PSA_ERROR_NOT_PERMITTED);