/ohos5.0/base/security/device_auth/test/fuzztest/session_manager/session/v2/expand_sub_session/expand_process_lib/pubkeyexchange_fuzzer/ |
H A D | pubkeyexchange_fuzzer.cpp | 49 BaseCmd *self = CreatePubKeyExchangeCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); in PubkeyExchangeTest01() 56 BaseCmd *client = CreatePubKeyExchangeCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); in PubkeyExchangeTest02() 82 (void)CreatePubKeyExchangeCmd(nullptr, true, ABORT_IF_ERROR); in PubkeyExchangeTest03() 89 (void)CreatePubKeyExchangeCmd((void *)(&errorParams), true, ABORT_IF_ERROR); in PubkeyExchangeTest04() 96 (void)CreatePubKeyExchangeCmd((void *)(&errorParams), true, ABORT_IF_ERROR); in PubkeyExchangeTest05() 103 (void)CreatePubKeyExchangeCmd((void *)(&errorParams), true, ABORT_IF_ERROR); in PubkeyExchangeTest06() 110 (void)CreatePubKeyExchangeCmd((void *)(&errorParams), true, ABORT_IF_ERROR); in PubkeyExchangeTest07() 116 BaseCmd *self = CreatePubKeyExchangeCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); in PubkeyExchangeTest08() 124 BaseCmd *self = CreatePubKeyExchangeCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); in PubkeyExchangeTest09() 134 BaseCmd *self = CreatePubKeyExchangeCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); in PubkeyExchangeTest10() [all …]
|
/ohos5.0/base/security/device_auth/test/fuzztest/session_manager/session/v2/expand_sub_session/expand_process_lib/authcodeimport_fuzzer/ |
H A D | authcodeimport_fuzzer.cpp | 52 BaseCmd *self = CreateAuthCodeImportCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); in AuthCodeImportTest001() 60 BaseCmd *client = CreateAuthCodeImportCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); in AuthCodeImportTest002() 65 BaseCmd *server = CreateAuthCodeImportCmd((void *)&g_paramsS, false, ABORT_IF_ERROR); in AuthCodeImportTest002() 111 BaseCmd *self = CreateAuthCodeImportCmd(nullptr, true, ABORT_IF_ERROR); in AuthCodeImportTest101() 155 BaseCmd *self = CreateAuthCodeImportCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); in AuthCodeImportTest106() 165 BaseCmd *self = CreateAuthCodeImportCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); in AuthCodeImportTest107() 179 BaseCmd *self = CreateAuthCodeImportCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); in AuthCodeImportTest108() 192 BaseCmd *self = CreateAuthCodeImportCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); in AuthCodeImportTest109() 210 BaseCmd *self = CreateAuthCodeImportCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); in AuthCodeImportTest110() 226 BaseCmd *self = CreateAuthCodeImportCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); in AuthCodeImportTest111() [all …]
|
/ohos5.0/base/security/device_auth/test/fuzztest/session_manager/session/v2/expand_sub_session/expand_process_lib/savetrustedinfo_fuzzer/ |
H A D | savetrustedinfo_fuzzer.cpp | 174 BaseCmd *self = CreateSaveTrustedInfoCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); in SaveTrustedInfoTest00() 180 (void)CreateSaveTrustedInfoCmd(nullptr, true, ABORT_IF_ERROR); in SaveTrustedInfoTest03() 187 (void)CreateSaveTrustedInfoCmd((void *)(&errorParams), true, ABORT_IF_ERROR); in SaveTrustedInfoTest04() 194 (void)CreateSaveTrustedInfoCmd((void *)(&errorParams), true, ABORT_IF_ERROR); in SaveTrustedInfoTest05() 201 (void)CreateSaveTrustedInfoCmd((void *)(&errorParams), true, ABORT_IF_ERROR); in SaveTrustedInfoTest06() 206 BaseCmd *self = CreateSaveTrustedInfoCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); in SaveTrustedInfoTest07() 213 BaseCmd *self = CreateSaveTrustedInfoCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); in SaveTrustedInfoTest08() 222 BaseCmd *self = CreateSaveTrustedInfoCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); in SaveTrustedInfoTest09() 235 BaseCmd *self = CreateSaveTrustedInfoCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); in SaveTrustedInfoTest10() 248 BaseCmd *self = CreateSaveTrustedInfoCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); in SaveTrustedInfoTest11() [all …]
|
/ohos5.0/base/security/device_auth/test/unittest/tdd_framework/unit_test/services/session_manager/session/v2/expand_sub_session/expand_process_lib/ |
H A D | auth_code_import_test.cpp | 95 BaseCmd *self = CreateAuthCodeImportCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); 102 BaseCmd *client = CreateAuthCodeImportCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); 137 BaseCmd *self = CreateAuthCodeImportCmd(nullptr, true, ABORT_IF_ERROR); 172 BaseCmd *self = CreateAuthCodeImportCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); 180 BaseCmd *self = CreateAuthCodeImportCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); 191 BaseCmd *self = CreateAuthCodeImportCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); 201 BaseCmd *self = CreateAuthCodeImportCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); 220 BaseCmd *self = CreateAuthCodeImportCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); 234 BaseCmd *self = CreateAuthCodeImportCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); 247 BaseCmd *self = CreateAuthCodeImportCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); [all …]
|
H A D | pub_key_exchange_test.cpp | 95 BaseCmd *self = CreatePubKeyExchangeCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); 102 BaseCmd *client = CreatePubKeyExchangeCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); 137 BaseCmd *self = CreatePubKeyExchangeCmd(nullptr, true, ABORT_IF_ERROR); 172 BaseCmd *self = CreatePubKeyExchangeCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); 180 BaseCmd *self = CreatePubKeyExchangeCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); 191 BaseCmd *self = CreatePubKeyExchangeCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); 201 BaseCmd *self = CreatePubKeyExchangeCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); 220 BaseCmd *self = CreatePubKeyExchangeCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); 234 BaseCmd *self = CreatePubKeyExchangeCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); 247 BaseCmd *self = CreatePubKeyExchangeCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); [all …]
|
H A D | save_trusted_info_test.cpp | 217 BaseCmd *self = CreateSaveTrustedInfoCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); 320 BaseCmd *self = CreateSaveTrustedInfoCmd(nullptr, true, ABORT_IF_ERROR); 350 BaseCmd *self = CreateSaveTrustedInfoCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); 358 BaseCmd *self = CreateSaveTrustedInfoCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); 369 BaseCmd *self = CreateSaveTrustedInfoCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); 387 BaseCmd *self = CreateSaveTrustedInfoCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); 408 BaseCmd *self = CreateSaveTrustedInfoCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); 422 BaseCmd *self = CreateSaveTrustedInfoCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); 435 BaseCmd *self = CreateSaveTrustedInfoCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); 448 BaseCmd *self = CreateSaveTrustedInfoCmd((void *)&g_paramsC, true, ABORT_IF_ERROR); [all …]
|
/ohos5.0/base/security/device_auth/test/fuzztest/session_manager/session/v2/expand_sub_session/expandsubsession_fuzzer/ |
H A D | expandsubsession_fuzzer.cpp | 72 … res = client->addCmd(client, AUTH_CODE_IMPORT_CMD_TYPE, (void *)&g_paramsC, true, ABORT_IF_ERROR); in ExpandSubSessionTest02() 73 …res = server->addCmd(server, AUTH_CODE_IMPORT_CMD_TYPE, (void *)&g_paramsS, false, ABORT_IF_ERROR); in ExpandSubSessionTest02() 74 …= client->addCmd(client, PUB_KEY_EXCHANGE_CMD_TYPE, (void *)&g_25519ParamsC, true, ABORT_IF_ERROR); in ExpandSubSessionTest02() 75 … server->addCmd(server, PUB_KEY_EXCHANGE_CMD_TYPE, (void *)&g_25519ParamsS, false, ABORT_IF_ERROR); in ExpandSubSessionTest02() 146 … res = self->addCmd(nullptr, AUTH_CODE_IMPORT_CMD_TYPE, (void *)&g_paramsC, true, ABORT_IF_ERROR); in ExpandSubSessionTest09() 156 res = self->addCmd(self, AUTH_CODE_IMPORT_CMD_TYPE, nullptr, true, ABORT_IF_ERROR); in ExpandSubSessionTest10() 167 res = self->addCmd(self, AUTH_CODE_IMPORT_CMD_TYPE, (void *)&g_paramsC, true, ABORT_IF_ERROR); in ExpandSubSessionTest11() 177 res = self->addCmd(self, INVALID_CMD_TYPE, (void *)&g_paramsC, true, ABORT_IF_ERROR); in ExpandSubSessionTest12()
|
/ohos5.0/base/security/device_auth/test/unittest/tdd_framework/unit_test/services/session_manager/session/v2/expand_sub_session/ |
H A D | expand_sub_session_test.cpp | 124 … res = client->addCmd(client, AUTH_CODE_IMPORT_CMD_TYPE, (void *)&g_paramsC, true, ABORT_IF_ERROR); 126 …res = server->addCmd(server, AUTH_CODE_IMPORT_CMD_TYPE, (void *)&g_paramsS, false, ABORT_IF_ERROR); 128 …= client->addCmd(client, PUB_KEY_EXCHANGE_CMD_TYPE, (void *)&g_25519ParamsC, true, ABORT_IF_ERROR); 130 … server->addCmd(server, PUB_KEY_EXCHANGE_CMD_TYPE, (void *)&g_25519ParamsS, false, ABORT_IF_ERROR); 212 … res = self->addCmd(nullptr, AUTH_CODE_IMPORT_CMD_TYPE, (void *)&g_paramsC, true, ABORT_IF_ERROR); 225 res = self->addCmd(self, AUTH_CODE_IMPORT_CMD_TYPE, nullptr, true, ABORT_IF_ERROR); 240 res = self->addCmd(self, AUTH_CODE_IMPORT_CMD_TYPE, (void *)&g_paramsC, true, ABORT_IF_ERROR); 253 res = self->addCmd(self, INVALID_CMD_TYPE, (void *)&g_paramsC, true, ABORT_IF_ERROR); 424 … res = client->addCmd(client, AUTH_CODE_IMPORT_CMD_TYPE, (void *)&g_paramsC, true, ABORT_IF_ERROR); in TestMemoryInner() 428 …res = server->addCmd(server, AUTH_CODE_IMPORT_CMD_TYPE, (void *)&g_paramsS, false, ABORT_IF_ERROR); in TestMemoryInner() [all …]
|
/ohos5.0/base/security/device_auth/services/session_manager/inc/session/v2/expand_sub_session/expand_process_lib/ |
H A D | base_cmd.h | 23 ABORT_IF_ERROR = 1, enumerator
|
/ohos5.0/base/security/device_auth/services/session_manager/src/session/v2/ |
H A D | dev_session_v2.c | 147 (!impl->isClient), ABORT_IF_ERROR); in CmdExchangePkGenerator() 175 (!impl->isClient), ABORT_IF_ERROR); in CmdImportAuthCodeGenerator() 209 (!impl->isClient), ABORT_IF_ERROR); in CmdSaveTrustedInfoGenerator() 235 { CMD_EXCHANGE_PK, ABORT_IF_ERROR, CmdExchangePkGenerator }, 236 { CMD_IMPORT_AUTH_CODE, ABORT_IF_ERROR, CmdImportAuthCodeGenerator }, 237 { CMD_ADD_TRUST_DEVICE, ABORT_IF_ERROR, CmdSaveTrustedInfoGenerator }, 1587 if (CMDS_LIB[i].strategy == ABORT_IF_ERROR) { in SelfCmdsNegotiate() 1626 if (strategy == ABORT_IF_ERROR) { in PeerCmdsNegotiate()
|
/ohos5.0/base/security/device_auth/services/session_manager/src/session/v2/expand_sub_session/ |
H A D | expand_sub_session.c | 319 if (res != HC_SUCCESS && cmd->strategy == ABORT_IF_ERROR) { in StartNewCmds()
|