From 5e972bbe678b002d1e8b152ea35439bfc7170e04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BC=9E=E6=9C=A8=E5=B8=8C=E7=BE=8E?= Date: Mon, 20 Mar 2023 20:06:40 +0800 Subject: [PATCH] fixed 3061fb4 from https://gitee.com/harry-john/xts_acts/pulls/8101 fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 伞木希美 --- .../SecurityHuksDSABasicAbort63KBPromiseJsunit.test.js | 4 +++- .../SecurityHuksRSABasicFinish65KBPromiseJsunit.test.js | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/security/security_huks_reformed_test/huks_signverify_promise_BasicTest/src/main/js/test/SignVerify/SecurityHuksDSABasicAbort63KBPromiseJsunit.test.js b/security/security_huks_reformed_test/huks_signverify_promise_BasicTest/src/main/js/test/SignVerify/SecurityHuksDSABasicAbort63KBPromiseJsunit.test.js index 7ede56ea4..75b0df9cd 100644 --- a/security/security_huks_reformed_test/huks_signverify_promise_BasicTest/src/main/js/test/SignVerify/SecurityHuksDSABasicAbort63KBPromiseJsunit.test.js +++ b/security/security_huks_reformed_test/huks_signverify_promise_BasicTest/src/main/js/test/SignVerify/SecurityHuksDSABasicAbort63KBPromiseJsunit.test.js @@ -36,7 +36,9 @@ export default function SecurityHuksDSABasicAbort63KBPromiseJsunit() { ), inData: srcData63Kb, }; - await publicSignVerifyFunc(srcKeyAlies, HuksOptions, 'abort', true, srcData63Kb); + if (useSoftware) { + await publicSignVerifyFunc(srcKeyAlies, HuksOptions, 'abort', true, srcData63Kb); + } done(); }); }); diff --git a/security/security_huks_reformed_test/huks_signverify_promise_BasicTest/src/main/js/test/SignVerify/SecurityHuksRSABasicFinish65KBPromiseJsunit.test.js b/security/security_huks_reformed_test/huks_signverify_promise_BasicTest/src/main/js/test/SignVerify/SecurityHuksRSABasicFinish65KBPromiseJsunit.test.js index 13136ed8a..738b650e2 100644 --- a/security/security_huks_reformed_test/huks_signverify_promise_BasicTest/src/main/js/test/SignVerify/SecurityHuksRSABasicFinish65KBPromiseJsunit.test.js +++ b/security/security_huks_reformed_test/huks_signverify_promise_BasicTest/src/main/js/test/SignVerify/SecurityHuksRSABasicFinish65KBPromiseJsunit.test.js @@ -12,10 +12,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import { describe, it } from '@ohos/hypium'; +import { describe, it, beforeAll } from '@ohos/hypium'; import Data from '../../../../../../utils/data.json'; import { HuksSignVerifyRSA } from '../../../../../../utils/param/signverify/publicSignverifyParam'; -import { stringToUint8Array } from '../../../../../../utils/param/publicFunc'; +import { stringToUint8Array, checkSoftware } from '../../../../../../utils/param/publicFunc'; import { publicSignVerifyFunc } from '../../../../../../utils/param/signverify/publicSignverifyPromise.js'; let srcData65 = Data.Data65b; let srcData65Kb = stringToUint8Array(srcData65); -- GitLab