/ohos5.0/base/security/device_auth/test/unittest/tdd_framework/unit_test/services/frameworks/os_account_adapter/ |
H A D | os_account_adapter_test.cpp | 200 CJson *credentialJson = CreateJson(); in GetAsyCredentialJson() local 201 (void)AddIntToJson(credentialJson, FIELD_CREDENTIAL_TYPE, ASYMMETRIC_CRED); in GetAsyCredentialJson() 202 (void)AddByteToJson(credentialJson, FIELD_SERVER_PK, serverPkVal, serverPk.length); in GetAsyCredentialJson() 203 (void)AddByteToJson(credentialJson, FIELD_PK_INFO_SIGNATURE, signatureValue, signature.length); in GetAsyCredentialJson() 204 (void)AddObjToJson(credentialJson, FIELD_PK_INFO, pkInfoJson); in GetAsyCredentialJson() 206 return credentialJson; in GetAsyCredentialJson()
|
/ohos5.0/base/security/device_auth/test/fuzztest/devauthfunc_fuzzer/ |
H A D | devauthfunc_fuzzer.cpp | 288 CJson *credentialJson = CreateJson(); in GetAsyCredentialJson() local 289 (void)AddIntToJson(credentialJson, FIELD_CREDENTIAL_TYPE, ASYMMETRIC_CRED); in GetAsyCredentialJson() 290 (void)AddByteToJson(credentialJson, FIELD_SERVER_PK, serverPkVal, serverPk.length); in GetAsyCredentialJson() 291 (void)AddByteToJson(credentialJson, FIELD_PK_INFO_SIGNATURE, signatureValue, signature.length); in GetAsyCredentialJson() 292 (void)AddObjToJson(credentialJson, FIELD_PK_INFO, pkInfoJson); in GetAsyCredentialJson() 294 return credentialJson; in GetAsyCredentialJson()
|
/ohos5.0/base/security/device_auth/test/unittest/deviceauth/source/ |
H A D | deviceauth_standard_auth_test.cpp | 296 CJson *credentialJson = CreateJson(); in GetAsyCredentialJson() local 297 (void)AddIntToJson(credentialJson, FIELD_CREDENTIAL_TYPE, ASYMMETRIC_CRED); in GetAsyCredentialJson() 298 (void)AddByteToJson(credentialJson, FIELD_SERVER_PK, serverPkVal, serverPk.length); in GetAsyCredentialJson() 299 (void)AddByteToJson(credentialJson, FIELD_PK_INFO_SIGNATURE, signatureValue, signature.length); in GetAsyCredentialJson() 300 (void)AddObjToJson(credentialJson, FIELD_PK_INFO, pkInfoJson); in GetAsyCredentialJson() 302 return credentialJson; in GetAsyCredentialJson()
|
H A D | deviceauth_func_test.cpp | 993 CJson *credentialJson = CreateJson(); in GetAsyCredentialJson() local 994 (void)AddIntToJson(credentialJson, FIELD_CREDENTIAL_TYPE, ASYMMETRIC_CRED); in GetAsyCredentialJson() 995 (void)AddByteToJson(credentialJson, FIELD_SERVER_PK, serverPkVal, serverPk.length); in GetAsyCredentialJson() 996 (void)AddByteToJson(credentialJson, FIELD_PK_INFO_SIGNATURE, signatureValue, signature.length); in GetAsyCredentialJson() 997 (void)AddObjToJson(credentialJson, FIELD_PK_INFO, pkInfoJson); in GetAsyCredentialJson() 999 return credentialJson; in GetAsyCredentialJson()
|
H A D | deviceauth_standard_test.cpp | 223 CJson *credentialJson = CreateJson(); in GetAsyCredentialJson() local 224 (void)AddIntToJson(credentialJson, FIELD_CREDENTIAL_TYPE, ASYMMETRIC_CRED); in GetAsyCredentialJson() 225 (void)AddByteToJson(credentialJson, FIELD_SERVER_PK, serverPkVal, serverPk.length); in GetAsyCredentialJson() 226 (void)AddByteToJson(credentialJson, FIELD_PK_INFO_SIGNATURE, signatureValue, signature.length); in GetAsyCredentialJson() 227 (void)AddObjToJson(credentialJson, FIELD_PK_INFO, pkInfoJson); in GetAsyCredentialJson() 229 return credentialJson; in GetAsyCredentialJson()
|
/ohos5.0/foundation/distributedhardware/device_manager/services/implementation/src/credential/ |
H A D | dm_credential_manager.cpp | 391 nlohmann::json credentialJson = jsonObject[FIELD_CREDENTIAL_DATA]; in GetAddDeviceList() local 392 auto credentialDataList = credentialJson.get<std::vector<CredentialDataInfo>>(); in GetAddDeviceList()
|
/ohos5.0/base/security/device_auth/test/fuzztest/creds_manager/credsmanager_fuzzer/ |
H A D | credsmanager_fuzzer.cpp | 342 CJson *credentialJson = CreateJson(); in GetAsyCredentialJson() local 343 (void)AddIntToJson(credentialJson, FIELD_CREDENTIAL_TYPE, ASYMMETRIC_CRED); in GetAsyCredentialJson() 344 (void)AddByteToJson(credentialJson, FIELD_SERVER_PK, serverPkVal, serverPk.length); in GetAsyCredentialJson() 345 (void)AddByteToJson(credentialJson, FIELD_PK_INFO_SIGNATURE, signatureValue, signature.length); in GetAsyCredentialJson() 346 (void)AddObjToJson(credentialJson, FIELD_PK_INFO, pkInfoJson); in GetAsyCredentialJson() 348 return credentialJson; in GetAsyCredentialJson()
|
/ohos5.0/foundation/distributedhardware/device_manager/test/commonunittest/ |
H A D | UTTest_dm_credential_manager.cpp | 712 nlohmann::json credentialJson = nlohmann::json::array(); variable 713 credentialJson.push_back(jsonObject1); 715 jsonObject[FIELD_CREDENTIAL_DATA] = credentialJson;
|
/ohos5.0/base/security/device_auth/test/unittest/tdd_framework/unit_test/services/creds_manager/ |
H A D | creds_manager_test.cpp | 348 CJson *credentialJson = CreateJson(); in GetAsyCredentialJson() local 349 (void)AddIntToJson(credentialJson, FIELD_CREDENTIAL_TYPE, ASYMMETRIC_CRED); in GetAsyCredentialJson() 350 (void)AddByteToJson(credentialJson, FIELD_SERVER_PK, serverPkVal, serverPk.length); in GetAsyCredentialJson() 351 (void)AddByteToJson(credentialJson, FIELD_PK_INFO_SIGNATURE, signatureValue, signature.length); in GetAsyCredentialJson() 352 (void)AddObjToJson(credentialJson, FIELD_PK_INFO, pkInfoJson); in GetAsyCredentialJson() 354 return credentialJson; in GetAsyCredentialJson()
|