Home
last modified time | relevance | path

Searched refs:plainTextDecrypt (Results 1 – 6 of 6) sorted by relevance

/ohos5.0/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/alg_module_test/src/
H A Dhks_aes_encrypt_mt.cpp467 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 HKS_FREE(plainTextDecrypt.data); in RunTestCase()
H A Dhks_aes_key_mt.cpp466 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 HKS_FREE(plainTextDecrypt.data); in RunTestCase()
H A Dhks_aes_cipher_mt.cpp459 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 HKS_FREE(plainTextDecrypt.data); in RunTestCase()
H A Dhks_aes_decrypt_mt.cpp506 HksBlob plainTextDecrypt = { .size = inLen, .data = (uint8_t *)HksMalloc(inLen) }; in RunTestCase() local
507 ASSERT_NE(plainTextDecrypt.data, nullptr); in RunTestCase()
519 …EXPECT_EQ(HksDecrypt(&authId, paramInSet, &cipherText, &plainTextDecrypt), testCaseParams.decryptR… in RunTestCase()
521 EXPECT_EQ(plainTextDecrypt.size, testCaseParams.hexData.length()); in RunTestCase()
522 … EXPECT_EQ(HksMemCmp(plainText.data, plainTextDecrypt.data, testCaseParams.hexData.length()), 0); in RunTestCase()
527 HKS_FREE(plainTextDecrypt.data); in RunTestCase()
/ohos5.0/base/security/huks/test/reliability/src/
H A Dapi_pressure_test.cpp712 HksBlob plainTextDecrypt = { .size = *inLen, .data = (uint8_t *)HksMalloc(*inLen) }; in DecryptTest() local
713 ASSERT_NE(plainTextDecrypt.data, nullptr); in DecryptTest()
714 EXPECT_EQ(HksDecrypt(authId, paramInSet, cipherText, &plainTextDecrypt), HKS_SUCCESS); in DecryptTest()
715 HKS_FREE(plainTextDecrypt.data); in DecryptTest()
835 … HksBlob plainTextDecrypt = { .size = CIPHER_SIZE, .data = (uint8_t *)HksMalloc(CIPHER_SIZE) }; in CipherScene() local
836 ASSERT_NE(plainTextDecrypt.data, nullptr); in CipherScene()
837 EXPECT_EQ(HksDecrypt(&authId, paramInSet, &cipherText, &plainTextDecrypt), HKS_SUCCESS); in CipherScene()
839 HKS_FREE(plainTextDecrypt.data); in CipherScene()
H A Dpressure_test.cpp640 HksBlob plainTextDecrypt = { .size = inLen, .data = (uint8_t *)HksMalloc(inLen) }; variable
641 ASSERT_NE(plainTextDecrypt.data, nullptr);
643 int32_t ret = HksDecrypt(&authId, paramInSet, &cipherText, &plainTextDecrypt);
648 HKS_FREE(plainTextDecrypt.data);
1125 HksBlob plainTextDecrypt = { .size = inLen, .data = (uint8_t *)HksMalloc(inLen) }; variable
1126 ASSERT_NE(plainTextDecrypt.data, nullptr);
1128 int32_t ret = HksDecrypt(&authKey, paramInSet, &cipherText, &plainTextDecrypt);
1133 HKS_FREE(plainTextDecrypt.data);