/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/sdk_test/include/ |
D | hks_test_cipher.h | 28 struct HksBlob **aadData; member 39 struct HksBlob **aadData; member 50 struct HksBlob *aadData; member
|
/base/security/huks/test/unittest/huks_lite_test/common/include/ |
D | hks_test_cipher.h | 28 struct HksBlob **aadData; member 39 struct HksBlob **aadData; member 50 struct HksBlob *aadData; member
|
/base/security/huks/test/unittest/huks_lite_test/liteos_m_adapter/ |
D | hks_modify_key_test.c | 153 ret = TestConstuctBlob(encryptStruct->aadData, true, aadSize, true, aadSize); in Encrypt() 165 encryptStruct->cipherParms->setAad, *(encryptStruct->aadData), in Encrypt() 200 decryptStruct->cipherParms->decryptParamSetParams.setAad, decryptStruct->aadData, in DecryptCipher() 255 struct HksBlob *aadData = NULL; in BaseTestCipherProcess() local 261 plainData, cipherData, &ivData, &nonceData, &aadData, 1 in BaseTestCipherProcess() 270 &decryptedData, ivData, nonceData, aadData, 1 in BaseTestCipherProcess() 289 TestFreeBlob(&aadData); in BaseTestCipherProcess() 334 struct HksBlob *aadData = NULL; in LITE_TEST_CASE() local 339 plainData, cipherData, &ivData, &nonceData, &aadData, 1 in LITE_TEST_CASE() 352 &decryptedData, ivData, nonceData, aadData, 1 in LITE_TEST_CASE() [all …]
|
/base/security/huks/test/unittest/huks_lite_test/liteos_a_adapter/ |
D | hks_modify_key_test.cpp | 148 ret = TestConstuctBlob(encryptStruct->aadData, true, aadSize, true, aadSize); in Encrypt() 160 encryptStruct->cipherParms->setAad, *(encryptStruct->aadData), in Encrypt() 195 decryptStruct->cipherParms->decryptParamSetParams.setAad, decryptStruct->aadData, in DecryptCipher() 267 struct HksBlob *aadData = NULL; in BaseTestCipherProcess() local 273 plainData, cipherData, &ivData, &nonceData, &aadData, 1 in BaseTestCipherProcess() 282 &decryptedData, ivData, nonceData, aadData, 1 in BaseTestCipherProcess() 301 TestFreeBlob(&aadData); in BaseTestCipherProcess() 328 struct HksBlob *aadData = NULL; variable 333 plainData, cipherData, &ivData, &nonceData, &aadData, 1 343 &decryptedData, ivData, nonceData, aadData, 1 [all …]
|
/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/sdk_test/src/ |
D | hks_modify_key_test.cpp | 149 ret = TestConstuctBlob(encryptStruct->aadData, true, aadSize, true, aadSize); in Encrypt() 161 encryptStruct->cipherParms->setAad, *(encryptStruct->aadData), in Encrypt() 196 decryptStruct->cipherParms->decryptParamSetParams.setAad, decryptStruct->aadData, in DecryptCipher() 268 struct HksBlob *aadData = NULL; in BaseTestCipher() local 274 plainData, cipherData, &ivData, &nonceData, &aadData, 1 in BaseTestCipher() 283 &decryptedData, ivData, nonceData, aadData, 1 in BaseTestCipher() 302 TestFreeBlob(&aadData); in BaseTestCipher() 329 struct HksBlob *aadData = NULL; variable 334 plainData, cipherData, &ivData, &nonceData, &aadData, 1 342 &decryptedData, ivData, nonceData, aadData, 1 [all …]
|
D | hks_test_cipher.c | 457 ret = TestConstuctBlob(encryptStruct->aadData, true, aadSize, true, aadSize); in Encrypt() 469 encryptStruct->cipherParms->setAad, *(encryptStruct->aadData), in Encrypt() 520 decryptStruct->cipherParms->decryptParamSetParams.setAad, decryptStruct->aadData, in DecryptCipher() 561 ret = TestConstuctBlob(onlyDecryptStruct->aadData, true, aadSize, true, aadSize); in Decrypt() 573 onlyDecryptStruct->cipherParms->setAad, *(onlyDecryptStruct->aadData), in Decrypt() 607 struct HksBlob *aadData = NULL; in BaseTestCipher() local 611 plainData, cipherData, &ivData, &nonceData, &aadData, performTimes in BaseTestCipher() 620 &decryptedData, ivData, nonceData, aadData, performTimes in BaseTestCipher() 641 TestFreeBlob(&aadData); in BaseTestCipher() 675 struct HksBlob *aadData = NULL; in BaseTestEncrypt() local [all …]
|
/base/security/huks/test/unittest/huks_lite_test/common/ |
D | hks_test_cipher.c | 457 ret = TestConstuctBlob(encryptStruct->aadData, true, aadSize, true, aadSize); in Encrypt() 469 encryptStruct->cipherParms->setAad, *(encryptStruct->aadData), in Encrypt() 520 decryptStruct->cipherParms->decryptParamSetParams.setAad, decryptStruct->aadData, in DecryptCipher() 561 ret = TestConstuctBlob(onlyDecryptStruct->aadData, true, aadSize, true, aadSize); in Decrypt() 573 onlyDecryptStruct->cipherParms->setAad, *(onlyDecryptStruct->aadData), in Decrypt() 607 struct HksBlob *aadData = NULL; in BaseTestCipher() local 611 plainData, cipherData, &ivData, &nonceData, &aadData, performTimes in BaseTestCipher() 620 &decryptedData, ivData, nonceData, aadData, performTimes in BaseTestCipher() 641 TestFreeBlob(&aadData); in BaseTestCipher() 675 struct HksBlob *aadData = NULL; in BaseTestEncrypt() local [all …]
|
/base/security/huks/test/unittest/huks_standard_test/module_test/framework_test/common_test/src/ |
D | hks_base_check_test.cpp | 295 const char* aadData = "0"; variable 296 struct HksBlob aad = { .size = strlen(aadData), .data = (uint8_t *)aadData }; 321 const char* aadData = "00000"; variable 322 struct HksBlob aad = { .size = strlen(aadData), .data = (uint8_t *)aadData }; 327 struct HksBlob nonce = { .size = strlen(aadData), .data = (uint8_t *)nonceData };
|
/base/security/huks/test/reliability/src/ |
D | api_pressure_test.cpp | 150 uint8_t aadData[AAD_SIZE] = { 'a', 'a', 'd' }; in AESModeRandForCiper() local 151 …ram aad = { .tag = HKS_TAG_ASSOCIATED_DATA, .blob = { .size = sizeof(aadData), .data = aadData } }; in AESModeRandForCiper()
|