diff --git a/security/security_huks_basic/huks_cipher_promise_BasicTest/entry/src/main/js/test/Cipher/SecurityHuksCipherSM4BasicPromiseJsunit.test.js b/security/security_huks_basic/huks_cipher_promise_BasicTest/entry/src/main/js/test/Cipher/SecurityHuksCipherSM4BasicPromiseJsunit.test.js index a156d2231b386290267ab61250d7fafec9df6e6a..fb00564ac5b31e59e2694dc003502e1a0df14048 100755 --- a/security/security_huks_basic/huks_cipher_promise_BasicTest/entry/src/main/js/test/Cipher/SecurityHuksCipherSM4BasicPromiseJsunit.test.js +++ b/security/security_huks_basic/huks_cipher_promise_BasicTest/entry/src/main/js/test/Cipher/SecurityHuksCipherSM4BasicPromiseJsunit.test.js @@ -17,7 +17,7 @@ import { describe, it } from 'deccjsunit/index'; import { HuksCipherSM4 } from '../../../../../../../utils/param/cipher/publicCipherParam'; import { HksTag } from '../../../../../../../utils/param/publicParam'; import { stringToUint8Array } from '../../../../../../../utils/param/publicFunc'; -import { publicCipherFunc, IV, encryptedResult } from './SecurityHuksCipherAESBasicPromiseJsunit.test'; +import { publicCipherFunc, IV, updateResult } from './SecurityHuksCipherAESBasicPromiseJsunit.test'; const plainString48Bytes = 'Hks_SM4_Cipher_Test_000000000000000000000_string'; const plainData48Bytes = stringToUint8Array(plainString48Bytes); @@ -70,7 +70,7 @@ describe('SecurityHuksCipherSM4PromiseJsunit', function () { HuksCipherSM4.HuksKeySM4BLOCKMODECBC, { tag: HksTag.HKS_TAG_IV, value: stringToUint8Array(IV) } ), - inData: new Uint8Array(encryptedResult), + inData: new Uint8Array(updateResult), }; await publicCipherFunc( srcKeyAlias, @@ -114,7 +114,7 @@ describe('SecurityHuksCipherSM4PromiseJsunit', function () { HuksCipherSM4.HuksKeySM4BLOCKMODECBC, { tag: HksTag.HKS_TAG_IV, value: stringToUint8Array(IV) } ), - inData: new Uint8Array(encryptedResult), + inData: new Uint8Array(updateResult), }; await publicCipherFunc( srcKeyAlias, @@ -211,7 +211,7 @@ describe('SecurityHuksCipherSM4PromiseJsunit', function () { HuksCipherSM4.HuksKeySM4BLOCKMODECBC, { tag: HksTag.HKS_TAG_IV, value: stringToUint8Array(IV) } ), - inData: new Uint8Array(encryptedResult), + inData: new Uint8Array(updateResult), }; await publicCipherFunc( srcKeyAlias, @@ -255,7 +255,7 @@ describe('SecurityHuksCipherSM4PromiseJsunit', function () { HuksCipherSM4.HuksKeySM4BLOCKMODECBC, { tag: HksTag.HKS_TAG_IV, value: stringToUint8Array(IV) } ), - inData: new Uint8Array(encryptedResult), + inData: new Uint8Array(updateResult), }; await publicCipherFunc( srcKeyAlias, @@ -352,7 +352,7 @@ describe('SecurityHuksCipherSM4PromiseJsunit', function () { HuksCipherSM4.HuksKeySM4BLOCKMODECTR, { tag: HksTag.HKS_TAG_IV, value: stringToUint8Array(IV) } ), - inData: new Uint8Array(encryptedResult), + inData: new Uint8Array(updateResult), }; await publicCipherFunc( srcKeyAlias, @@ -396,7 +396,7 @@ describe('SecurityHuksCipherSM4PromiseJsunit', function () { HuksCipherSM4.HuksKeySM4BLOCKMODECTR, { tag: HksTag.HKS_TAG_IV, value: stringToUint8Array(IV) } ), - inData: new Uint8Array(encryptedResult), + inData: new Uint8Array(updateResult), }; await publicCipherFunc( srcKeyAlias, @@ -493,7 +493,7 @@ describe('SecurityHuksCipherSM4PromiseJsunit', function () { HuksCipherSM4.HuksKeySM4BLOCKMODEECB, { tag: HksTag.HKS_TAG_IV, value: stringToUint8Array(IV) } ), - inData: new Uint8Array(encryptedResult), + inData: new Uint8Array(updateResult), }; await publicCipherFunc( srcKeyAlias, @@ -537,7 +537,7 @@ describe('SecurityHuksCipherSM4PromiseJsunit', function () { HuksCipherSM4.HuksKeySM4BLOCKMODEECB, { tag: HksTag.HKS_TAG_IV, value: stringToUint8Array(IV) } ), - inData: new Uint8Array(encryptedResult), + inData: new Uint8Array(updateResult), }; await publicCipherFunc( srcKeyAlias, @@ -634,7 +634,7 @@ describe('SecurityHuksCipherSM4PromiseJsunit', function () { HuksCipherSM4.HuksKeySM4BLOCKMODEECB, { tag: HksTag.HKS_TAG_IV, value: stringToUint8Array(IV) } ), - inData: new Uint8Array(encryptedResult), + inData: new Uint8Array(updateResult), }; await publicCipherFunc( srcKeyAlias, @@ -678,7 +678,7 @@ describe('SecurityHuksCipherSM4PromiseJsunit', function () { HuksCipherSM4.HuksKeySM4BLOCKMODEECB, { tag: HksTag.HKS_TAG_IV, value: stringToUint8Array(IV) } ), - inData: new Uint8Array(encryptedResult), + inData: new Uint8Array(updateResult), }; await publicCipherFunc( srcKeyAlias, diff --git a/security/security_huks_basic/huks_signverify_callback_BasicTest/entry/src/main/js/test/SignVerify/SecurityHuksSM2BasicFinish63KBCallbackJsunit.test.js b/security/security_huks_basic/huks_signverify_callback_BasicTest/entry/src/main/js/test/SignVerify/SecurityHuksSM2BasicFinish63KBCallbackJsunit.test.js index a1268c1b1abdf32a420325c39a85413b491f0043..c4792ffa3707c70c8e723fb21291d57b95545563 100755 --- a/security/security_huks_basic/huks_signverify_callback_BasicTest/entry/src/main/js/test/SignVerify/SecurityHuksSM2BasicFinish63KBCallbackJsunit.test.js +++ b/security/security_huks_basic/huks_signverify_callback_BasicTest/entry/src/main/js/test/SignVerify/SecurityHuksSM2BasicFinish63KBCallbackJsunit.test.js @@ -34,7 +34,6 @@ describe('SecurityHuksSignVerifySM2CallbackJsunit', function () { }; finishOutData = await publicSignVerifyFunc( srcKeyAlies, - srcKeyAlies + 'New', HuksOptions, 'finish', true, diff --git a/security/security_huks_basic/huks_signverify_callback_BasicTest/entry/src/main/js/test/SignVerify/SecurityHuksSM2BasicFinish65KBCallbackJsunit.test.js b/security/security_huks_basic/huks_signverify_callback_BasicTest/entry/src/main/js/test/SignVerify/SecurityHuksSM2BasicFinish65KBCallbackJsunit.test.js index 0aa1698520aece628190ffc123ccd926d81e54a1..b9142b542978e84beaf7d83139db29efc5b0f47a 100755 --- a/security/security_huks_basic/huks_signverify_callback_BasicTest/entry/src/main/js/test/SignVerify/SecurityHuksSM2BasicFinish65KBCallbackJsunit.test.js +++ b/security/security_huks_basic/huks_signverify_callback_BasicTest/entry/src/main/js/test/SignVerify/SecurityHuksSM2BasicFinish65KBCallbackJsunit.test.js @@ -34,7 +34,6 @@ describe('SecurityHuksSignVerifySM2CallbackJsunit', function () { }; finishOutData = await publicSignVerifyFunc( srcKeyAlies, - srcKeyAlies + 'New', HuksOptions, 'finish', true,