CKM: Support ECDSA tests for TZ Backend 56/296656/2
authorDongsun Lee <ds73.lee@samsung.com>
Thu, 3 Aug 2023 00:25:51 +0000 (09:25 +0900)
committerDong Sun Lee <ds73.lee@samsung.com>
Wed, 9 Aug 2023 07:17:11 +0000 (07:17 +0000)
Change-Id: I6a9605fb81e27b77425dddfd56db0c9b261b3a60

src/ckm/unprivileged/sign-verify.cpp

index c1a7b445dd08307111fbd1a20e1d0aedfb4f6b47..27e97495c0dc6a78cdae6d1be9ecc5c46235d076 100644 (file)
@@ -132,12 +132,9 @@ public:
         generateKeys(DSA, 3072);
         generateKeys(DSA, 4096);
 #endif
-#ifndef TZ_BACKEND
-        // ECDSA is not yet supported on TZ
         generateKeys(ECDSA, EC_PRIME192V1);
         generateKeys(ECDSA, EC_PRIME256V1);
         generateKeys(ECDSA, EC_SECP384R1);
-#endif
 
         MESSAGE_SHORT = create_raw_buffer(createRandomBufferCAPI(512/8));
 
@@ -316,8 +313,6 @@ void testSignVerify(Algo algo, size_t keyBits, int idx)
     if (algo == DSA && keyBits > 1024)
         RUNNER_IGNORED_MSG("For DSA with SHA1 only 1024-bit keys are supported and TZ does not"\
                            " currently support anything else than SHA1 for DSA.");
-    if (algo == ECDSA)
-        RUNNER_IGNORED_MSG("ECDSA is not yet supported in TZ");
 #endif
 
     std::string pw;