Home
last modified time | relevance | path

Searched refs:TestConstuctBlob (Results 1 – 25 of 29) sorted by relevance

12

/ohos5.0/base/security/huks/test/unittest/huks_common_test/src/
H A Dhks_modify_key_test_func.cpp22 int32_t ret = TestConstuctBlob(inData, in ConstructDataToBlob()
28 ret = TestConstuctBlob(outData, in ConstructDataToBlob()
45 ret = TestConstuctBlob(encryptStruct->ivData, true, ivSize, true, ivSize); in Encrypt()
49 ret = TestConstuctBlob(encryptStruct->nonceData, true, nonceSize, true, nonceSize); in Encrypt()
53 ret = TestConstuctBlob(encryptStruct->aadData, true, aadSize, true, aadSize); in Encrypt()
79 int32_t ret = TestConstuctBlob(decryptStruct->decryptedData, in DecryptCipher()
H A Dhks_test_cipher_func.cpp22 int32_t ret = TestConstuctBlob(inData, in ConstructDataToBlobTest()
29 ret = TestConstuctBlob(outData, in ConstructDataToBlobTest()
58 ret = TestConstuctBlob(encryptStructTest->ivData, true, ivSize, true, ivSize); in EncryptTest()
62 ret = TestConstuctBlob(encryptStructTest->nonceData, true, nonceSize, true, nonceSize); in EncryptTest()
66 ret = TestConstuctBlob(encryptStructTest->aadData, true, aadSize, true, aadSize); in EncryptTest()
93 int32_t ret = TestConstuctBlob(decryptStruct->decryptedData, in DecryptCipherTest()
162 ret = TestConstuctBlob(onlyDecryptStruct->ivData, true, ivSize, true, ivSize); in Decrypt()
166 ret = TestConstuctBlob(onlyDecryptStruct->nonceData, true, nonceSize, true, nonceSize); in Decrypt()
170 ret = TestConstuctBlob(onlyDecryptStruct->aadData, true, aadSize, true, aadSize); in Decrypt()
266 ret = TestConstuctBlob(&keyAlias, in BaseTestEncrypt()
[all …]
H A Dhks_test_common_func.cpp19 int32_t TestConstuctBlob(struct HksBlob **blob, bool blobExist, uint32_t blobSize, bool blobDataExi… in TestConstuctBlob() function
538 int32_t ret = TestConstuctBlob(keyAlias, in GenerateKey()
576 int32_t ret = TestConstuctBlob(keyAlias, in GenerateLocalRandomKey()
625 ret = TestConstuctBlob(privateKey, in GenerateLocalX25519Key()
634 ret = TestConstuctBlob(publicKey, in GenerateLocalX25519Key()
694 int32_t ret = TestConstuctBlob(keyAlias, in TestGenDefaultKeyAndGetAlias()
/ohos5.0/base/security/huks/test/unittest/huks_lite_test/liteos_a_adapter/
H A Dhks_derive_test.cpp58 HKS_TEST_ASSERT(TestConstuctBlob(saltData, true, saltSize, true, saltSize) == 0); in DeriveKey()
61 HKS_TEST_ASSERT(TestConstuctBlob(infoData, true, infoSize, true, infoSize) == 0); in DeriveKey()
95 ret = TestConstuctBlob(&keyAlias, in BaseTestDerive()
106 ret = TestConstuctBlob(&derivedKey, in BaseTestDerive()
H A Dhks_mac_test.cpp86 int32_t ret = TestConstuctBlob(srcData, in ConstructDataToBlob()
93 ret = TestConstuctBlob(macData, in ConstructDataToBlob()
138 ret = TestConstuctBlob(&keyTest, in BaseTestMac()
148 ret = TestConstuctBlob(&keyTest, in BaseTestMac()
H A Dhks_bn_exp_mod_test.cpp109 ret = TestConstuctBlob(&x, g_testBnExpModParams[0].xParams.blobExist,
119 ret = TestConstuctBlob(&e, g_testBnExpModParams[0].eParams.blobExist,
124 ret = TestConstuctBlob(&n, g_testBnExpModParams[0].nParams.blobExist,
H A Dhks_agreement_test.cpp120 ret = TestConstuctBlob(&agreeKey,
173 ret = TestConstuctBlob(&agreeKey, g_testAgreeParams[0].agreedKeyParams.blobExist, \
179 ret = TestConstuctBlob(&agreeKey2, g_testAgreeParams[0].agreedKeyParams.blobExist, \
H A Dhks_delete_test.cpp75 ret = TestConstuctBlob(&keyAlias,
H A Dhks_exist_test.cpp79 ret = TestConstuctBlob(&keyAlias,
H A Dhks_hash_test.cpp87 ret = TestConstuctBlob(&srcData,
/ohos5.0/base/security/huks/test/unittest/huks_lite_test/liteos_m_adapter/
H A Dhks_derive_test.c60 HKS_TEST_ASSERT(TestConstuctBlob(saltData, true, saltSize, true, saltSize) == 0); in DeriveKey()
63 HKS_TEST_ASSERT(TestConstuctBlob(infoData, true, infoSize, true, infoSize) == 0); in DeriveKey()
99 ret = TestConstuctBlob(&keyAlias, in BaseTestDerive()
110 ret = TestConstuctBlob(&derivedKey, in BaseTestDerive()
H A Dhks_bn_exp_mod_test.c67 ret = TestConstuctBlob(&x, g_testBnExpModParams[0].xParams.blobExist, in LITE_TEST_CASE()
77 ret = TestConstuctBlob(&e, g_testBnExpModParams[0].eParams.blobExist, in LITE_TEST_CASE()
82 ret = TestConstuctBlob(&n, g_testBnExpModParams[0].nParams.blobExist, in LITE_TEST_CASE()
H A Dhks_mac_test.c87 int32_t ret = TestConstuctBlob(srcData, in ConstructDataToBlob()
94 ret = TestConstuctBlob(macData, in ConstructDataToBlob()
139 ret = TestConstuctBlob(&key, in BaseTestMac()
149 ret = TestConstuctBlob(&key, in BaseTestMac()
H A Dhks_agreement_test.c122 ret = TestConstuctBlob(&agreeKey, in LITE_TEST_CASE()
177 ret = TestConstuctBlob(&agreeKey, g_testAgreeParams[0].agreedKeyParams.blobExist, \ in LITE_TEST_CASE()
186 ret = TestConstuctBlob(&agreeKey1, g_testAgreeParams[0].agreedKeyParams.blobExist, \ in LITE_TEST_CASE()
H A Dhks_delete_test.c77 ret = TestConstuctBlob(&keyAlias, in LITE_TEST_CASE()
H A Dhks_exist_test.c82 ret = TestConstuctBlob(&keyAlias, in LITE_TEST_CASE()
H A Dhks_hash_test.c91 ret = TestConstuctBlob(&srcData, in LITE_TEST_CASE()
/ohos5.0/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/sdk_test/src/
H A Dhks_derive_test.cpp43 EXPECT_TRUE(TestConstuctBlob(saltData, true, saltSize, true, saltSize) == 0); in DeriveKey()
46 EXPECT_TRUE(TestConstuctBlob(infoData, true, infoSize, true, infoSize) == 0); in DeriveKey()
97 ret = TestConstuctBlob(&keyAliasTest, in BaseTestDerive()
108 ret = TestConstuctBlob(&derivedKey, in BaseTestDerive()
H A Dhks_bn_exp_mod_test.cpp67 ret = TestConstuctBlob(&x, g_testBnExpModParams[0].xParams.blobExist,
77 ret = TestConstuctBlob(&e, g_testBnExpModParams[0].eParams.blobExist,
82 ret = TestConstuctBlob(&n, g_testBnExpModParams[0].nParams.blobExist,
H A Dhks_mac_test.cpp87 int32_t ret = TestConstuctBlob(srcData, in ConstructDataToBlob()
93 ret = TestConstuctBlob(macData, in ConstructDataToBlob()
139 ret = TestConstuctBlob(&key, in BaseTestMac()
149 ret = TestConstuctBlob(&key, in BaseTestMac()
H A Dhks_delete_test.cpp74 ret = TestConstuctBlob(&keyAlias,
H A Dhks_exist_test.cpp78 ret = TestConstuctBlob(&keyAlias,
H A Dhks_hash_test.cpp85 ret = TestConstuctBlob(&srcData,
H A Dhks_agreement_test.cpp120 ret = TestConstuctBlob(&agreeKey,
/ohos5.0/base/security/huks/test/unittest/huks_common_test/include/
H A Dhks_test_common_c.h29 int32_t TestConstuctBlob(struct HksBlob **blob, bool blobExist, uint32_t blobSize,

12