Searched refs:plainTextDecrypt (Results 1 – 6 of 6) sorted by relevance
/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/alg_module_test/src/ |
D | hks_aes_key_mt.cpp | 466 HksBlob plainTextDecrypt = { .size = inLen, .data = (uint8_t *)HksMalloc(inLen) }; in RunTestCase() local 467 ASSERT_NE(plainTextDecrypt.data, nullptr); in RunTestCase() 473 … EXPECT_EQ(AesGcmDecrypt(paramInSet, &cipherText, &plainTextDecrypt, &symmetricKey, &tagAead), in RunTestCase() 479 …AesDecrypt(paramInSet, &cipherText, &plainTextDecrypt, &symmetricKey), testCaseParams.decryptResul… in RunTestCase() 481 EXPECT_EQ(plainTextDecrypt.size, testCaseParams.hexData.length()); in RunTestCase() 482 … EXPECT_EQ(HksMemCmp(plainText.data, plainTextDecrypt.data, testCaseParams.hexData.length()), 0); in RunTestCase() 487 HksFree(plainTextDecrypt.data); in RunTestCase()
|
D | hks_aes_encrypt_mt.cpp | 467 HksBlob plainTextDecrypt = { .size = inLen, .data = (uint8_t *)HksMalloc(inLen) }; in RunTestCase() local 468 ASSERT_NE(plainTextDecrypt.data, nullptr); in RunTestCase() 476 … EXPECT_EQ(AesGcmDecrypt(paramInSet, &cipherText, &plainTextDecrypt, &authId, &tagAead), in RunTestCase() 481 … AesDecrypt(paramInSet, &cipherText, &plainTextDecrypt, &authId), testCaseParams.decryptResult); in RunTestCase() 483 EXPECT_EQ(plainTextDecrypt.size, testCaseParams.hexData.length()); in RunTestCase() 484 … EXPECT_EQ(HksMemCmp(plainText.data, plainTextDecrypt.data, testCaseParams.hexData.length()), 0); in RunTestCase() 489 HksFree(plainTextDecrypt.data); in RunTestCase()
|
D | hks_aes_cipher_mt.cpp | 459 HksBlob plainTextDecrypt = { .size = inLen, .data = (uint8_t *)HksMalloc(inLen) }; in RunTestCase() local 460 ASSERT_NE(plainTextDecrypt.data, nullptr); in RunTestCase() 461 …EXPECT_EQ(HksDecrypt(&authId, paramInSet, &cipherText, &plainTextDecrypt), testCaseParams.decryptR… in RunTestCase() 462 EXPECT_EQ(plainTextDecrypt.size, testCaseParams.hexData.length()); in RunTestCase() 463 … EXPECT_EQ(HksMemCmp(plainText.data, plainTextDecrypt.data, testCaseParams.hexData.length()), 0); in RunTestCase() 464 HksFree(plainTextDecrypt.data); in RunTestCase()
|
D | hks_aes_decrypt_mt.cpp | 470 HksBlob plainTextDecrypt = { .size = inLen, .data = (uint8_t *)HksMalloc(inLen) }; in RunTestCase() local 471 ASSERT_NE(plainTextDecrypt.data, nullptr); in RunTestCase() 483 …EXPECT_EQ(HksDecrypt(&authId, paramInSet, &cipherText, &plainTextDecrypt), testCaseParams.decryptR… in RunTestCase() 485 EXPECT_EQ(plainTextDecrypt.size, testCaseParams.hexData.length()); in RunTestCase() 486 … EXPECT_EQ(HksMemCmp(plainText.data, plainTextDecrypt.data, testCaseParams.hexData.length()), 0); in RunTestCase() 491 HksFree(plainTextDecrypt.data); in RunTestCase()
|
/base/security/huks/test/reliability/src/ |
D | api_pressure_test.cpp | 715 HksBlob plainTextDecrypt = { .size = *inLen, .data = (uint8_t *)HksMalloc(*inLen) }; in DecryptTest() local 716 ASSERT_NE(plainTextDecrypt.data, nullptr); in DecryptTest() 717 EXPECT_EQ(HksDecrypt(authId, paramInSet, cipherText, &plainTextDecrypt), HKS_SUCCESS); in DecryptTest() 718 HksFree(plainTextDecrypt.data); in DecryptTest() 838 … HksBlob plainTextDecrypt = { .size = CIPHER_SIZE, .data = (uint8_t *)HksMalloc(CIPHER_SIZE) }; in CipherScene() local 839 ASSERT_NE(plainTextDecrypt.data, nullptr); in CipherScene() 840 EXPECT_EQ(HksDecrypt(&authId, paramInSet, &cipherText, &plainTextDecrypt), HKS_SUCCESS); in CipherScene() 842 HksFree(plainTextDecrypt.data); in CipherScene()
|
D | pressure_test.cpp | 664 HksBlob plainTextDecrypt = { .size = inLen, .data = (uint8_t *)HksMalloc(inLen) }; variable 665 ASSERT_NE(plainTextDecrypt.data, nullptr); 667 int32_t ret = HksDecrypt(&authId, paramInSet, &cipherText, &plainTextDecrypt); 672 HksFree(plainTextDecrypt.data); 1147 HksBlob plainTextDecrypt = { .size = inLen, .data = (uint8_t *)HksMalloc(inLen) }; variable 1148 ASSERT_NE(plainTextDecrypt.data, nullptr); 1150 int32_t ret = HksDecrypt(&authKey, paramInSet, &cipherText, &plainTextDecrypt); 1155 HksFree(plainTextDecrypt.data);
|