diff --git a/security/security_huks_basic/huks_cipher_callback_BasicTest/entry/src/main/js/test/Cipher/SecurityHuksRSABasicCallbackJsunit.test.js b/security/security_huks_basic/huks_cipher_callback_BasicTest/entry/src/main/js/test/Cipher/SecurityHuksRSABasicCallbackJsunit.test.js index 8f378af3dfedee3f558a104cc85ba6fd28c097a9..b6a8d2edf1395af6860dfe52455edc93bf0940ad 100644 --- a/security/security_huks_basic/huks_cipher_callback_BasicTest/entry/src/main/js/test/Cipher/SecurityHuksRSABasicCallbackJsunit.test.js +++ b/security/security_huks_basic/huks_cipher_callback_BasicTest/entry/src/main/js/test/Cipher/SecurityHuksRSABasicCallbackJsunit.test.js @@ -38,6 +38,7 @@ async function publicGenerateKeyFunc(srcKeyAlies, genHuksOptionsNONC) { expect(data.errorCode == 0).assertTrue(); expect(data.outData == null).assertTrue(); expect(data.properties == null).assertTrue(); + expect(huks.getSdkVersion(genHuksOptionsNONC) != null).assertTrue(); }) .catch((err) => { console.log('test generateKey err information: ' + JSON.stringify(err)); diff --git a/security/security_huks_basic/huks_hmac_callback_BasicTest/entry/src/main/js/test/HMAC/SecurityHuksAccessControlJsunit.test.js b/security/security_huks_basic/huks_hmac_callback_BasicTest/entry/src/main/js/test/HMAC/SecurityHuksAccessControlJsunit.test.js index 28d05baf49e7409960e0fd0d6c437150f8560970..0cd554d8f68dc98e5aee7bcdbef0657dd7151a1e 100644 --- a/security/security_huks_basic/huks_hmac_callback_BasicTest/entry/src/main/js/test/HMAC/SecurityHuksAccessControlJsunit.test.js +++ b/security/security_huks_basic/huks_hmac_callback_BasicTest/entry/src/main/js/test/HMAC/SecurityHuksAccessControlJsunit.test.js @@ -309,6 +309,8 @@ describe('SecurityHuksAccessControlJsunit', function () { expect(4).assertEqual(huks.HuksKeyFlag.HUKS_KEY_FLAG_DERIVE_KEY); expect(0).assertEqual(huks.HuksKeyStorageType.HUKS_STORAGE_TEMP); expect(1).assertEqual(huks.HuksKeyStorageType.HUKS_STORAGE_PERSISTENT); + expect(0).assertEqual(huks.HuksSendType.HUKS_SEND_TYPE_ASYNC); + expect(1).assertEqual(huks.HuksSendType.HUKS_SEND_TYPE_SYNC); expect(0).assertEqual(huks.HuksTagType.HUKS_TAG_TYPE_INVALID); expect(268435456).assertEqual(huks.HuksTagType.HUKS_TAG_TYPE_INT); expect(536870912).assertEqual(huks.HuksTagType.HUKS_TAG_TYPE_UINT);