/test/xts/acts/security_lite/huks/common/ |
H A D | hks_test_curve25519.c | 38 HKS_TEST_ASSERT(ret == 0); in TestGenerateEd25519Key() 43 HKS_TEST_ASSERT(ret == 0); in TestGenerateEd25519Key() 48 HKS_TEST_ASSERT(ret == 0); in TestGenerateEd25519Key() 53 HKS_TEST_ASSERT(ret == 0); in TestGenerateEd25519Key() 58 HKS_TEST_ASSERT(ret == 0); in TestGenerateEd25519Key() 63 HKS_TEST_ASSERT(ret == 0); in TestGenerateEd25519Key() 65 HKS_TEST_ASSERT(ret == 0); in TestGenerateEd25519Key() 67 HKS_TEST_ASSERT(ret == 0); in TestGenerateEd25519Key() 78 HKS_TEST_ASSERT(ret == 0); in TestSignEd25519() 83 HKS_TEST_ASSERT(re in TestSignEd25519() [all...] |
H A D | hks_test_common.c | 66 HKS_TEST_ASSERT(tmp.data != NULL); in TestConstuctBlob() 69 HKS_TEST_ASSERT(HksGenerateRandom(NULL, &tmp) == 0); in TestConstuctBlob() 71 HKS_TEST_ASSERT(memcpy_s((*blob)->data + offset, realBlobDataSize - offset, tmp.data, tmp.size) == EOK); in TestConstuctBlob() 80 HKS_TEST_ASSERT(tmp.data != NULL); in TestConstuctBlob() 83 HKS_TEST_ASSERT(HksGenerateRandom(NULL, &tmp) == 0); in TestConstuctBlob() 84 HKS_TEST_ASSERT(memcpy_s((*blob)->data + offset, remainSize, tmp.data, tmp.size) == EOK); in TestConstuctBlob() 108 HKS_TEST_ASSERT(ret == 0); in TestGenerateKeyParamSetPre() 116 HKS_TEST_ASSERT(ret == 0); in TestGenerateKeyParamSetPre() 124 HKS_TEST_ASSERT(ret == 0); in TestGenerateKeyParamSetPre() 133 HKS_TEST_ASSERT(re in TestGenerateKeyParamSetPre() [all...] |
H A D | hks_test_aes.c | 139 HKS_TEST_ASSERT(ret == 0); in ConstructParamSetEncryptDecryptAes() 141 HKS_TEST_ASSERT(ret == 0); in ConstructParamSetEncryptDecryptAes() 150 HKS_TEST_ASSERT(HksInitParamSet(¶mSet) == 0); in GenerateBaseKey() 171 HKS_TEST_ASSERT(HksAddParams(paramSet, tmpParams, sizeof(tmpParams) / sizeof(tmpParams[0])) == 0); in GenerateBaseKey() 172 HKS_TEST_ASSERT(HksBuildParamSet(¶mSet) == 0); in GenerateBaseKey() 173 HKS_TEST_ASSERT(HksGenerateKey(alias, paramSet, NULL) == 0); in GenerateBaseKey() 212 HKS_TEST_ASSERT(HksAddParams(paramSet, tmpParams, sizeof(tmpParams) / sizeof(tmpParams[0])) == 0); in PlainPubKey() 241 HKS_TEST_ASSERT(HksAddParams(paramSet, tmpParams, sizeof(tmpParams) / sizeof(tmpParams[0])) == 0); in SetKeyAliasTrue() 268 HKS_TEST_ASSERT(HksAddParams(paramSet, tmpParams, sizeof(tmpParams) / sizeof(tmpParams[0])) == 0); in SetKeyAliasWrong() 276 HKS_TEST_ASSERT(HksInitParamSe in GenerateAesAgreeKey() [all...] |
H A D | hks_test_cipher.c | 464 HKS_TEST_ASSERT(ret == 0);
in ConstructDataToBlob() 471 HKS_TEST_ASSERT(ret == 0);
in ConstructDataToBlob() 496 HKS_TEST_ASSERT(ret == 0);
in Encrypt() 500 HKS_TEST_ASSERT(ret == 0);
in Encrypt() 504 HKS_TEST_ASSERT(ret == 0);
in Encrypt() 519 HKS_TEST_ASSERT(ret == 0);
in Encrypt() 535 HKS_TEST_ASSERT(ret == 0);
in DecryptCipher() 571 HKS_TEST_ASSERT(ret == 0);
in DecryptCipher() 600 HKS_TEST_ASSERT(ret == 0);
in Decrypt() 604 HKS_TEST_ASSERT(re in Decrypt() [all...] |
/test/xts/acts/security_lite/huks/liteos_m_adapter/ |
H A D | hks_agreement_test.c | 116 HKS_TEST_ASSERT(ret == 0); in AgreeKey() 136 HKS_TEST_ASSERT(ret == 0); in ExecHksAgreementTest001() 138 HKS_TEST_ASSERT(ret == 0); in ExecHksAgreementTest001() 147 HKS_TEST_ASSERT(ret == 0); in ExecHksAgreementTest001() 150 HKS_TEST_ASSERT(ret == g_testAgreeParams[0].expectResult); in ExecHksAgreementTest001() 158 HKS_TEST_ASSERT(ret == 0); in ExecHksAgreementTest001() 160 HKS_TEST_ASSERT(ret == 0); in ExecHksAgreementTest001() 185 HKS_TEST_ASSERT(ret == 0); in ExecHksAgreementTest002() 187 HKS_TEST_ASSERT(ret == 0); in ExecHksAgreementTest002() 196 HKS_TEST_ASSERT(re in ExecHksAgreementTest002() [all...] |
H A D | hks_delete_test.c | 62 HKS_TEST_ASSERT(TestGenDefaultKeyAndGetAlias(&keyAlias) == 0); in ExecHksDeleteTest001() 69 HKS_TEST_ASSERT(ret == 0); in ExecHksDeleteTest001() 73 HKS_TEST_ASSERT(ret == g_testKeyExistParams[0].expectResult); in ExecHksDeleteTest001()
|
H A D | hks_derive_test.c | 176 HKS_TEST_ASSERT(TestConstuctBlob(saltData, true, saltSize, true, saltSize) == 0); in DeriveKey() 179 HKS_TEST_ASSERT(TestConstuctBlob(infoData, true, infoSize, true, infoSize) == 0); in DeriveKey() 193 HKS_TEST_ASSERT(ret == 0); in DeriveKey()
|
H A D | hks_bn_exp_mod_test.c | 116 HKS_TEST_ASSERT(tmpBufX[i] == bufX[i]); in TestValue()
|
H A D | hks_generate_key_test.c | 146 HKS_TEST_ASSERT(HksDeleteKey(keyAlias, NULL) == 0); in ExecHksGenerateKeyTest001()
|
/test/xts/acts/security_lite/huks/liteos_a_adapter/ |
H A D | hks_derive_test.cpp | 123 HKS_TEST_ASSERT(TestConstuctBlob(saltData, true, saltSize, true, saltSize) == 0); in DeriveKey() 126 HKS_TEST_ASSERT(TestConstuctBlob(infoData, true, infoSize, true, infoSize) == 0); in DeriveKey() 140 HKS_TEST_ASSERT(ret == 0); in DeriveKey() 167 HKS_TEST_ASSERT(ret == 0); in BaseTestDerive() 176 HKS_TEST_ASSERT(ret == 0); in BaseTestDerive() 184 HKS_TEST_ASSERT(ret == g_testDeriveParams[index].expectResult); in BaseTestDerive() 190 HKS_TEST_ASSERT(HksDeleteKey(keyAlias, NULL) == 0); in BaseTestDerive()
|
H A D | hks_mac_test.cpp | 91 HKS_TEST_ASSERT(ret == 0); in ConstructDataToBlob() 98 HKS_TEST_ASSERT(ret == 0); in ConstructDataToBlob() 124 HKS_TEST_ASSERT(ret == 0); in Mac() 155 HKS_TEST_ASSERT(ret == 0); in BaseTestMac() 162 HKS_TEST_ASSERT(ret == 0); in BaseTestMac() 168 HKS_TEST_ASSERT(ret == g_testMacParams[index].expectResult); in BaseTestMac() 174 HKS_TEST_ASSERT(ret == 0); in BaseTestMac()
|
H A D | hks_exist_test.cpp | 73 HKS_TEST_ASSERT(TestGenDefaultKeyAndGetAlias(&keyAlias) == 0); in HWTEST_F() 75 HKS_TEST_ASSERT(ret == g_testKeyExistParams[0].expectResult); in HWTEST_F() 76 HKS_TEST_ASSERT(HksDeleteKey(keyAlias, NULL) == HKS_SUCCESS); in HWTEST_F() 83 HKS_TEST_ASSERT(ret == 0); in HWTEST_F() 88 HKS_TEST_ASSERT(ret == g_testKeyExistParams[0].expectResult); in HWTEST_F()
|
H A D | hks_bn_exp_mod_test.cpp | 89 HKS_TEST_ASSERT(tmpBufX[i] == bufX[i]); in TestValue() 113 HKS_TEST_ASSERT(ret == 0); in HWTEST_F() 118 HKS_TEST_ASSERT(ret == 0); in HWTEST_F() 123 HKS_TEST_ASSERT(ret == 0); in HWTEST_F() 128 HKS_TEST_ASSERT(ret == 0); in HWTEST_F() 135 HKS_TEST_ASSERT(ret == g_testBnExpModParams[0].expectResult); in HWTEST_F()
|
H A D | hks_generate_key_test.cpp | 90 HKS_TEST_ASSERT(ret == 0); in HWTEST_F() 104 HKS_TEST_ASSERT(ret == 0); in HWTEST_F() 110 HKS_TEST_ASSERT(ret == 0); in HWTEST_F() 116 HKS_TEST_ASSERT(ret == g_testGenKeyParams[index].expectResult); in HWTEST_F() 121 HKS_TEST_ASSERT(HksDeleteKey(keyAlias, NULL) == 0); in HWTEST_F()
|
H A D | hks_hash_test.cpp | 85 HKS_TEST_ASSERT(ret == 0); in HWTEST_F() 92 HKS_TEST_ASSERT(ret == 0); in HWTEST_F() 99 HKS_TEST_ASSERT(ret == 0); in HWTEST_F() 105 HKS_TEST_ASSERT(ret == g_testHashParams[0].expectResult); in HWTEST_F()
|
H A D | hks_delete_test.cpp | 73 HKS_TEST_ASSERT(TestGenDefaultKeyAndGetAlias(&keyAlias) == 0); in HWTEST_F() 80 HKS_TEST_ASSERT(ret == 0); in HWTEST_F() 84 HKS_TEST_ASSERT(ret == g_testKeyExistParams[0].expectResult); in HWTEST_F()
|
H A D | hks_generate_random_test.cpp | 76 HKS_TEST_ASSERT(ret == 0); in HWTEST_F() 82 HKS_TEST_ASSERT(ret == g_testGenRandomParams[0].expectResult); in HWTEST_F()
|
H A D | hks_agreement_test.cpp | 89 HKS_TEST_ASSERT(ret == 0); in AgreeKey()
|
/test/xts/acts/security_lite/huks/common/include/ |
H A D | hks_test_log.h | 22 #define HKS_TEST_ASSERT(test) \ macro
|