/test/xts/acts/security/security_huks_reformed_test/huks_signverify_promise_BasicTest/src/main/js/test/SignVerify/ |
D | SecurityHuksRSABasicFinish65KBPromiseJsunit.test.js | 44 inData: srcData65Kb, property 56 inData: finishOutData, property 73 inData: srcData65KbSha256, property 85 inData: finishOutData, property 101 inData: srcData65Kb, property 113 inData: finishOutData, property 130 inData: srcData65Kb, property 142 inData: finishOutData, property 159 inData: srcData65Kb, property 171 inData: finishOutData, property [all …]
|
D | SecurityHuksECCBasicFinish65KBPromiseJsunit.test.js | 43 inData: srcData65Sha256, property 53 inData: finishOutData, property 68 inData: srcData65Sha256, property 78 inData: finishOutData, property 93 inData: srcData65Sha256, property 103 inData: finishOutData, property 118 inData: srcData65Kb, property 129 inData: finishOutData, property 145 inData: srcData65Kb, property 156 inData: finishOutData, property [all …]
|
D | SecurityHuksRSASignExtendJsunit.test.js | 175 const inData = HuksOptions.inData; 176 const lastInDataPosition = inData.length - 1; 183 HuksOptions.inData = new Uint8Array( 184 Array.from(inData).slice(inDataSegPosition, inDataSegPosition + inDataSegSize) 301 inData: srcData64Kb, property 311 inData: srcData64Kb, property 315 HuksOptionsSign.inData = srcData64Kb; 317 HuksOptionsSign.inData = new Uint8Array(new Array()); 328 inData: srcData64Kb, property 331 HuksOptionsVerify.inData = srcData64Kb; [all …]
|
/test/xts/acts/security/huks_napi_BasicTest/src/ |
D | huks_cipher_sm4_test_common.cpp | 22 …const struct OH_Huks_ParamSet *encryptParamSet, const struct OH_Huks_Blob *inData, struct OH_Huks_… in HksSm4CipherTestEncrypt() argument 32 ret = TestUpdateLoopFinish(&handleEncrypt, encryptParamSet, inData, cipherText); in HksSm4CipherTestEncrypt() 37 …EXPECT_NE(HksMemCmp(inData->data, cipherText->data, inData->size), (int32_t)OH_HUKS_SUCCESS) << "c… in HksSm4CipherTestEncrypt() 44 const struct OH_Huks_Blob *inData) in HksSm4CipherTestDecrypt() argument 59 …EXPECT_EQ(HksMemCmp(inData->data, plainText->data, inData->size), (int32_t)OH_HUKS_SUCCESS) << "pl… in HksSm4CipherTestDecrypt() 67 struct OH_Huks_Blob inData = { in HksSm4CipherTestCaseOther() local 75 inData.size = strlen(tmpInData); in HksSm4CipherTestCaseOther() 76 inData.data = (uint8_t *)tmpInData; in HksSm4CipherTestCaseOther() 88 ret = HksSm4CipherTestEncrypt(keyAlias, encryptParamSet, &inData, &cipherText); in HksSm4CipherTestCaseOther() 94 ret = HksSm4CipherTestDecrypt(keyAlias, decryptParamSet, &cipherText, &plainText, &inData); in HksSm4CipherTestCaseOther()
|
D | huks_cipher_aes_test_common.cpp | 25 …const struct OH_Huks_ParamSet *encryptParamSet, const struct OH_Huks_Blob *inData, struct OH_Huks_… in HksAesCipherTestEncrypt() argument 36 ret = TestUpdateLoopFinish(&handleEncrypt, encryptParamSet, inData, cipherText); in HksAesCipherTestEncrypt() 42 …EXPECT_NE(HksMemCmp(inData->data, cipherText->data, inData->size), (int32_t)OH_HUKS_SUCCESS) << "c… in HksAesCipherTestEncrypt() 50 const struct OH_Huks_Blob *inData) in HksAesCipherTestDecrypt() argument 67 …EXPECT_EQ(HksMemCmp(inData->data, plainText->data, inData->size), (int32_t)OH_HUKS_SUCCESS) << "pl… in HksAesCipherTestDecrypt() 77 struct OH_Huks_Blob inData = { in HksAesCipherTestCaseOther() local 85 inData.size = strlen(tmpInData); in HksAesCipherTestCaseOther() 86 inData.data = (uint8_t *)tmpInData; in HksAesCipherTestCaseOther() 100 ret = HksAesCipherTestEncrypt(keyAlias, encryptParamSet, &inData, &cipherText); in HksAesCipherTestCaseOther() 106 ret = HksAesCipherTestDecrypt(keyAlias, decryptParamSet, &cipherText, &plainText, &inData); in HksAesCipherTestCaseOther() [all …]
|
D | huks_cipher_rsa_test_common.cpp | 21 …const struct OH_Huks_ParamSet *encryptParamSet, const struct OH_Huks_Blob *inData, struct OH_Huks_… in HksRsaCipherTestEncryptAbnormal() argument 31 …ret = TestUpdateFinish(&handleEncrypt, encryptParamSet, OH_HUKS_KEY_PURPOSE_ENCRYPT, inData, ciphe… in HksRsaCipherTestEncryptAbnormal() 38 int32_t ret1 = HksMemCmp(inData->data, cipherText->data, inData->size); in HksRsaCipherTestEncryptAbnormal() 45 …const struct OH_Huks_ParamSet *encryptParamSet, const struct OH_Huks_Blob *inData, struct OH_Huks_… in HksRsaCipherTestEncrypt() argument 55 …ret = TestUpdateFinish(&handleEncrypt, encryptParamSet, OH_HUKS_KEY_PURPOSE_ENCRYPT, inData, ciphe… in HksRsaCipherTestEncrypt() 60 int32_t ret1 = HksMemCmp(inData->data, cipherText->data, inData->size); in HksRsaCipherTestEncrypt() 67 const struct OH_Huks_Blob *inData) in HksRsaCipherTestDecrypt() argument 82 int32_t ret1 = HksMemCmp(inData->data, plainText->data, inData->size); in HksRsaCipherTestDecrypt() 88 …mSet *encryptParamSet, struct OH_Huks_ParamSet *decryptParamSet, const struct OH_Huks_Blob *inData) in HksRsaCipherTestCase() argument 107 ret = HksRsaCipherTestEncrypt(&newKeyAlias, encryptParamSet, inData, &cipherText); in HksRsaCipherTestCase() [all …]
|
/test/xts/acts/security/security_huks_reformed_test/huks_cipher_promise_BasicTest/src/main/js/test/Cipher/ |
D | SecurityHuksCipherSM2BasicPromiseJsunit.test.js | 99 temp = HuksOptions.inData; 101 HuksOptions.inData = exportKey; 107 HuksOptions.inData = temp; 142 let huksOptionsInData = HuksOptions.inData; 143 let inDataArray = HuksOptions.inData; 146 HuksOptions.inData = stringToUint8Array('0'); 151 …HuksOptions.inData = new Uint8Array(Array.from(huksOptionsInData).slice(dateSize * i, dateSize * (… 153 HuksOptions.inData = huksOptionsInData; 156 HuksOptions.inData = new Uint8Array( 183 HuksOptions.inData = new Uint8Array(new Array()); [all …]
|
D | SecurityHuksCipherRSABasicPromiseJsunit.test.js | 60 inData: new Uint8Array(defaultData), property 99 HuksOptions.inData = exportKey; 137 let huksOptionsInData = HuksOptions.inData; 138 let inDataArray = HuksOptions.inData; 141 HuksOptions.inData = stringToUint8Array('0'); 146 …HuksOptions.inData = new Uint8Array(Array.from(huksOptionsInData).slice(dateSize * i, dateSize * (… 148 HuksOptions.inData = huksOptionsInData; 151 HuksOptions.inData = new Uint8Array( 178 HuksOptions.inData = new Uint8Array(new Array()); 247 inputInData = HuksOptions.inData; [all …]
|
D | SecurityHuksCipherSM4BasicPromiseJsunit.test.js | 42 inData: new Uint8Array(new Array()), property 82 const inData = HuksOptions.inData; 83 const lastInDataPosition = inData.length - 1; 95 HuksOptions.inData = new Uint8Array( 96 Array.from(inData).slice(inDataSegPosition, inDataSegPosition + inDataSegSize) 123 HuksOptions.inData = new Uint8Array( 124 Array.from(inData).slice(inDataSegPosition, inDataSegPosition + inDataSegSize) 188 plainData = HuksOptions.inData; 222 inData: plainData48Bytes, property 234 inData: new Uint8Array(encryptedResult), property [all …]
|
/test/xts/acts/security/security_huks_basic/huks_cipher_promise_BasicTest/src/main/js/test/Cipher/ |
D | SecurityHuksCipherSM2BasicPromiseJsunit.test.js | 74 temp = HuksOptions.inData; 76 HuksOptions.inData = exportKey; 81 HuksOptions.inData = temp; 109 let huksOptionsInData = HuksOptions.inData; 110 let inDataArray = HuksOptions.inData; 113 HuksOptions.inData = stringToUint8Array('0'); 118 …HuksOptions.inData = new Uint8Array(Array.from(huksOptionsInData).slice(dateSize * i, dateSize * (… 120 HuksOptions.inData = huksOptionsInData; 123 HuksOptions.inData = new Uint8Array( 146 HuksOptions.inData = new Uint8Array(new Array()); [all …]
|
D | SecurityHuksCipherRSABasicPromiseJsunit.test.js | 42 inData: new Uint8Array(defaultData), property 73 HuksOptions.inData = exportKey; 103 let huksOptionsInData = HuksOptions.inData; 104 let inDataArray = HuksOptions.inData; 107 HuksOptions.inData = stringToUint8Array('0'); 112 …HuksOptions.inData = new Uint8Array(Array.from(huksOptionsInData).slice(dateSize * i, dateSize * (… 114 HuksOptions.inData = huksOptionsInData; 117 HuksOptions.inData = new Uint8Array( 140 HuksOptions.inData = new Uint8Array(new Array()); 208 inputInData = HuksOptions.inData; [all …]
|
D | SecurityHuksCipherSM4BasicPromiseJsunit.test.js | 42 inData: new Uint8Array(new Array()), property 74 const inData = HuksOptions.inData; 75 const lastInDataPosition = inData.length - 1; 87 HuksOptions.inData = new Uint8Array( 88 Array.from(inData).slice(inDataSegPosition, inDataSegPosition + inDataSegSize) 110 HuksOptions.inData = new Uint8Array( 111 Array.from(inData).slice(inDataSegPosition, inDataSegPosition + inDataSegSize) 165 plainData = HuksOptions.inData; 199 inData: plainData48Bytes, property 211 inData: new Uint8Array(encryptedResult), property [all …]
|
D | SecurityHuksCipherAESBasicPromiseJsunit.test.js | 31 inData: new Uint8Array(new Array()), property 64 let huksOptionsInData = HuksOptions.inData; 65 let inDataArray = HuksOptions.inData; 68 HuksOptions.inData = new Uint8Array(new Array()); 74 …HuksOptions.inData = new Uint8Array(Array.from(huksOptionsInData).slice(dateSize * i, dateSize * (… 77 HuksOptions.inData = huksOptionsInData; 79 HuksOptions.inData = new Uint8Array( 83 HuksOptions.inData = new Uint8Array(new Array()); 181 encryptedData = HuksOptions.inData; 210 inData: srcData63Kb, property [all …]
|
/test/xts/acts/security/security_huks_reformed_test/huks_cipher_callback_BasicTest/src/main/js/test/Cipher/ |
D | SecurityHuksSM2BasicCallbackJsunit.test.js | 55 inData: new Uint8Array(defaultData), property 130 temp = huksOptions.inData; 132 huksOptions.inData = exportKey; 137 huksOptions.inData = temp; 203 let huksOptionsInData = HuksOptions.inData; 204 let inDataArray = HuksOptions.inData; 207 HuksOptions.inData = stringToUint8Array('0'); 212 …HuksOptions.inData = new Uint8Array(Array.from(huksOptionsInData).slice(dateSize * i, dateSize * (… 214 HuksOptions.inData = huksOptionsInData; 217 HuksOptions.inData = new Uint8Array( [all …]
|
D | SecurityHuksSM4BasicCallbackJsunit.test.js | 42 inData: new Uint8Array(new Array()), property 114 const inData = HuksOptions.inData; 115 const lastInDataPosition = inData.length - 1; 127 HuksOptions.inData = new Uint8Array( 128 Array.from(inData).slice(inDataSegPosition, inDataSegPosition + inDataSegSize) 155 HuksOptions.inData = new Uint8Array( 156 Array.from(inData).slice(inDataSegPosition, inDataSegPosition + inDataSegSize) 284 plainData = HuksOptions.inData; 318 inData: plainData48Bytes, property 330 inData: new Uint8Array(encryptedResult), property [all …]
|
/test/xts/acts/security/security_huks_basic/huks_hmac_callback_BasicTest/src/main/js/test/HMAC/ |
D | SecurityHuksHmacBasicCallbackJsunit.test.js | 139 let huksOptionsInData = HuksOptions.inData; 140 let inDataArray = stringToArray(HuksOptions.inData); 142 if (HuksOptions.inData.length <= dateSize) { 143 HuksOptions.inData = new Uint8Array(inDataArray); 152 HuksOptions.inData = huksOptionsInData; 157 HuksOptions.inData = new Uint8Array( 170 HuksOptions.inData = new Uint8Array( 176 console.log(`test update HuksOptions.inData ${HuksOptions.inData}`); 212 HuksOptions.inData = new Uint8Array(stringToArray("0")); 253 inData: srcData63Kb, property [all …]
|
D | SecurityHuksImportJsunit.test.js | 455 inData: ecc256Key, property 477 inData: dsa2048Key, property 502 inData: aes128Key, property 520 inData: aes192Key, property 538 inData: aes256Key, property 556 inData: aes512Key, property 587 inData: rsa512Key, property 611 inData: rsa768Key, property 632 inData: rsa1024Key, property 653 inData: rsa2048Key, property [all …]
|
/test/xts/acts/security/security_huks_reformed_test/huks_hmac_promise_BasicTest/src/main/js/test/HMAC/ |
D | SecurityHuksHmacBasicPromiseJsunit.test.js | 110 let huksOptionsInData = HuksOptions.inData; 111 let inDataArray = stringToArray(HuksOptions.inData); 113 HuksOptions.inData = new Uint8Array(inDataArray); 115 HuksOptions.inData = huksOptionsInData; 120 HuksOptions.inData = new Uint8Array( 126 HuksOptions.inData = new Uint8Array( 139 HuksOptions.inData = new Uint8Array(stringToArray("0")); 229 inData: srcData63Kb, property 243 inData: srcData63Kb, property 257 inData: srcData65Kb, property [all …]
|
D | SecurityHuksFaceFingerNormalJsunit.test.js | 50 function usePinNormal(inData) { argument 92 inData: inData, property 97 function usePinTime(inData) { argument 139 inData: inData, property 197 let inData = new Uint8Array(new Array()); 198 let option = usePinNormal(inData); 230 let inData = new Uint8Array(new Array()); 231 let option = usePinNormal(inData); 263 let inData = new Uint8Array(new Array()); 264 let option = usePinNormal(inData); [all …]
|
/test/xts/acts/security/security_huks_basic/utils/param/signverify/ |
D | publicSignverifyPromise.js | 38 let _InData = HuksOptions.inData; 39 HuksOptions.inData = exportKey; 49 HuksOptions.inData = _InData; 81 const inData = HuksOptions.inData; 82 const lastInDataPosition = inData.length - 1; 89 HuksOptions.inData = new Uint8Array( 90 Array.from(inData).slice(inDataSegPosition, inDataSegPosition + inDataSegSize) 178 finishOutData = HuksOptions.inData; 182 HuksOptions.inData = rawData; 186 HuksOptions.inData = new Uint8Array(new Array()); [all …]
|
/test/xts/acts/security/security_huks_reformed_test/huks_hmac_callback_BasicTest/src/main/js/test/HMAC/ |
D | SecurityHuksHmacBasicCallbackJsunit.test.js | 124 let huksOptionsInData = HuksOptions.inData; 125 let inDataArray = stringToArray(HuksOptions.inData); 127 if (HuksOptions.inData.length <= dateSize) { 128 HuksOptions.inData = new Uint8Array(inDataArray); 143 HuksOptions.inData = huksOptionsInData; 148 HuksOptions.inData = new Uint8Array( 166 HuksOptions.inData = new Uint8Array( 172 console.log(`test update HuksOptions.inData ${HuksOptions.inData}`); 225 HuksOptions.inData = new Uint8Array(stringToArray("0")); 280 inData: srcData63Kb, property [all …]
|
/test/xts/acts/security/security_huks_basic/huks_cipher_callback_BasicTest/src/main/js/test/Cipher/ |
D | SecurityHuksSM4BasicCallbackJsunit.test.js | 42 inData: new Uint8Array(new Array()), property 99 const inData = HuksOptions.inData; 100 const lastInDataPosition = inData.length - 1; 112 HuksOptions.inData = new Uint8Array( 113 Array.from(inData).slice(inDataSegPosition, inDataSegPosition + inDataSegSize) 135 HuksOptions.inData = new Uint8Array( 136 Array.from(inData).slice(inDataSegPosition, inDataSegPosition + inDataSegSize) 241 plainData = HuksOptions.inData; 275 inData: plainData48Bytes, property 287 inData: new Uint8Array(encryptedResult), property [all …]
|
D | SecurityHuksSM2BasicCallbackJsunit.test.js | 100 temp = HuksOptions.inData; 102 HuksOptions.inData = exportKey; 106 HuksOptions.inData = temp; 159 let huksOptionsInData = HuksOptions.inData; 160 let inDataArray = HuksOptions.inData; 163 HuksOptions.inData = stringToUint8Array('0'); 168 …HuksOptions.inData = new Uint8Array(Array.from(huksOptionsInData).slice(dateSize * i, dateSize * (… 170 HuksOptions.inData = huksOptionsInData; 173 HuksOptions.inData = new Uint8Array( 208 HuksOptions.inData = new Uint8Array(new Array()); [all …]
|
/test/xts/acts/security/security_huks_basic/huks_hmac_promise_BasicTest/src/main/js/test/HMAC/ |
D | SecurityHuksHmacBasicPromiseJsunit.test.js | 141 let huksOptionsInData = HuksOptions.inData; 142 let inDataArray = stringToArray(HuksOptions.inData); 144 HuksOptions.inData = new Uint8Array(inDataArray); 146 HuksOptions.inData = huksOptionsInData; 151 HuksOptions.inData = new Uint8Array( 157 HuksOptions.inData = new Uint8Array( 170 HuksOptions.inData = new Uint8Array(stringToArray("0")); 244 inData: srcData63Kb, property 258 inData: srcData63Kb, property 272 inData: srcData65Kb, property [all …]
|
/test/xts/acts/security/huks_napi_BasicTest/include/ |
D | huks_cipher_rsa_test_common.h | 53 …Set *encryptParamSet, struct OH_Huks_ParamSet *decryptParamSet, const struct OH_Huks_Blob *inData); 55 …Set *encryptParamSet, struct OH_Huks_ParamSet *decryptParamSet, const struct OH_Huks_Blob *inData); 57 const struct OH_Huks_Blob *inData, struct OH_Huks_Blob *cipherText); 59 const struct OH_Huks_Blob *inData, struct OH_Huks_Blob *cipherText); 61 …truct OH_Huks_Blob *cipherText, struct OH_Huks_Blob *plainText, const struct OH_Huks_Blob *inData);
|