/base/security/device_auth/services/creds_manager/src/ |
H A D | creds_manager.c | 34 static bool IsPinAuth(const CJson *context, const Uint8Buff *presharedUrl) in IsPinAuth() argument 41 CJson *urlJson = CreateJsonFromString((const char *)presharedUrl->val); in IsPinAuth() 64 static const AuthIdentity *getAuthIdentity(const CJson *in, const Uint8Buff *presharedUrl) in getAuthIdentity() argument 68 if (IsPinAuth(in, presharedUrl)) { in getAuthIdentity() 137 int32_t GetCredInfoByPeerUrl(const CJson *in, const Uint8Buff *presharedUrl, IdentityInfo **returnInfo) in GetCredInfoByPeerUrl() argument 139 if (in == NULL || presharedUrl == NULL || returnInfo == NULL) { in GetCredInfoByPeerUrl() 144 const AuthIdentity *authIdentity = getAuthIdentity(in, presharedUrl); in GetCredInfoByPeerUrl() 150 return authIdentity->getCredInfoByPeerUrl(in, presharedUrl, returnInfo); in GetCredInfoByPeerUrl() 154 const CJson *in, const Uint8Buff *presharedUrl, ProtocolAlgType protocolType, Uint8Buff *sharedSecret) in GetSharedSecretByUrl() 156 if (in == NULL || presharedUrl in GetSharedSecretByUrl() 153 GetSharedSecretByUrl( const CJson *in, const Uint8Buff *presharedUrl, ProtocolAlgType protocolType, Uint8Buff *sharedSecret) GetSharedSecretByUrl() argument [all...] |
/base/security/device_auth/test/fuzztest/creds_manager/credsmanager_fuzzer/ |
H A D | credsmanager_fuzzer.cpp | 825 Uint8Buff presharedUrl = { nullptr, 0 }; in CredsManagerTest18() local 826 res = GetCredInfoByPeerUrl(json, &presharedUrl, nullptr); in CredsManagerTest18() 836 Uint8Buff presharedUrl = { nullptr, 0 }; in CredsManagerTest19() local 838 (void)GetCredInfoByPeerUrl(json, &presharedUrl, &info); in CredsManagerTest19() 848 Uint8Buff presharedUrl = { reinterpret_cast<uint8_t *>(presharedUrlStr), strlen(presharedUrlStr) + 1 }; in CredsManagerTest20() local 850 (void)GetCredInfoByPeerUrl(json, &presharedUrl, &info); in CredsManagerTest20() 864 Uint8Buff presharedUrl = { reinterpret_cast<uint8_t *>(presharedUrlStr), strlen(presharedUrlStr) + 1 }; in CredsManagerTest21() local 866 (void)GetCredInfoByPeerUrl(json, &presharedUrl, &info); in CredsManagerTest21() 879 Uint8Buff presharedUrl = { reinterpret_cast<uint8_t *>(presharedUrlStr), strlen(presharedUrlStr) + 1 }; in CredsManagerTest22() local 881 (void)GetCredInfoByPeerUrl(json, &presharedUrl, in CredsManagerTest22() 894 Uint8Buff presharedUrl = { reinterpret_cast<uint8_t *>(presharedUrlStr), strlen(presharedUrlStr) + 1 }; CredsManagerTest23() local 910 Uint8Buff presharedUrl = { reinterpret_cast<uint8_t *>(presharedUrlStr), strlen(presharedUrlStr) + 1 }; CredsManagerTest24() local 927 Uint8Buff presharedUrl = { reinterpret_cast<uint8_t *>(presharedUrlStr), strlen(presharedUrlStr) + 1 }; CredsManagerTest25() local 942 Uint8Buff presharedUrl = { reinterpret_cast<uint8_t *>(presharedUrlStr), strlen(presharedUrlStr) + 1 }; CredsManagerTest26() local 956 Uint8Buff presharedUrl = { reinterpret_cast<uint8_t *>(presharedUrlStr), strlen(presharedUrlStr) + 1 }; CredsManagerTest27() local 971 Uint8Buff presharedUrl = { reinterpret_cast<uint8_t *>(presharedUrlStr), strlen(presharedUrlStr) + 1 }; CredsManagerTest28() local 987 Uint8Buff presharedUrl = { reinterpret_cast<uint8_t *>(presharedUrlStr), strlen(presharedUrlStr) + 1 }; CredsManagerTest29() local 1004 Uint8Buff presharedUrl = { reinterpret_cast<uint8_t *>(presharedUrlStr), strlen(presharedUrlStr) + 1 }; CredsManagerTest30() local 1022 Uint8Buff presharedUrl = { reinterpret_cast<uint8_t *>(presharedUrlStr), strlen(presharedUrlStr) + 1 }; CredsManagerTest31() local 1040 Uint8Buff presharedUrl = { reinterpret_cast<uint8_t *>(presharedUrlStr), strlen(presharedUrlStr) + 1 }; CredsManagerTest32() local 1059 Uint8Buff presharedUrl = { reinterpret_cast<uint8_t *>(presharedUrlStr), strlen(presharedUrlStr) + 1 }; CredsManagerTest33() local 1079 Uint8Buff presharedUrl = { reinterpret_cast<uint8_t *>(presharedUrlStr), strlen(presharedUrlStr) + 1 }; CredsManagerTest34() local 1192 Uint8Buff presharedUrl = { nullptr, 0 }; CredsManagerTest38() local 1234 Uint8Buff presharedUrl = { nullptr, 0 }; CredsManagerTest39() local 1259 Uint8Buff presharedUrl = { nullptr, 0 }; CredsManagerTest40() local 1279 Uint8Buff presharedUrl = { nullptr, 0 }; CredsManagerTest41() local 1297 Uint8Buff presharedUrl = { nullptr, 0 }; CredsManagerTest42() local 1314 Uint8Buff presharedUrl = { nullptr, 0 }; CredsManagerTest43() local 1330 Uint8Buff presharedUrl = { nullptr, 0 }; CredsManagerTest44() local 1346 Uint8Buff presharedUrl = { nullptr, 0 }; CredsManagerTest45() local 1363 Uint8Buff presharedUrl = { nullptr, 0 }; CredsManagerTest46() local 1380 Uint8Buff presharedUrl = { nullptr, 0 }; CredsManagerTest47() local 1399 Uint8Buff presharedUrl = { nullptr, 0 }; CredsManagerTest48() local 1419 Uint8Buff presharedUrl = { nullptr, 0 }; CredsManagerTest49() local 1447 Uint8Buff presharedUrl = { nullptr, 0 }; CredsManagerTest50() local 1484 Uint8Buff presharedUrl = { nullptr, 0 }; CredsManagerTest51() local 1520 Uint8Buff presharedUrl = { nullptr, 0 }; CredsManagerTest52() local 1541 Uint8Buff presharedUrl = { nullptr, 0 }; CredsManagerTest53() local 1557 Uint8Buff presharedUrl = { nullptr, 0 }; CredsManagerTest54() local 1582 Uint8Buff presharedUrl = { nullptr, 0 }; CredsManagerTest55() local 1612 Uint8Buff presharedUrl = { nullptr, 0 }; CredsManagerTest56() local 1644 Uint8Buff presharedUrl = { nullptr, 0 }; CredsManagerTest57() local 1665 Uint8Buff presharedUrl = { nullptr, 0 }; CredsManagerTest58() local 1684 Uint8Buff presharedUrl = { nullptr, 0 }; CredsManagerTest59() local 1705 Uint8Buff presharedUrl = { nullptr, 0 }; CredsManagerTest60() local 1734 Uint8Buff presharedUrl = { nullptr, 0 }; CredsManagerTest61() local [all...] |
/base/security/device_auth/test/unittest/tdd_framework/unit_test/services/creds_manager/ |
H A D | creds_manager_test.cpp | 871 Uint8Buff presharedUrl = { nullptr, 0 }; in HWTEST_F() local 872 res = GetCredInfoByPeerUrl(json, &presharedUrl, nullptr); in HWTEST_F() 882 Uint8Buff presharedUrl = { nullptr, 0 }; in HWTEST_F() local 884 int32_t res = GetCredInfoByPeerUrl(json, &presharedUrl, &info); in HWTEST_F() 898 Uint8Buff presharedUrl = { (uint8_t *)presharedUrlStr, strlen(presharedUrlStr) + 1 }; in HWTEST_F() local 900 int32_t res = GetCredInfoByPeerUrl(json, &presharedUrl, &info); in HWTEST_F() 918 Uint8Buff presharedUrl = { (uint8_t *)presharedUrlStr, strlen(presharedUrlStr) + 1 }; in HWTEST_F() local 920 int32_t res = GetCredInfoByPeerUrl(json, &presharedUrl, &info); in HWTEST_F() 937 Uint8Buff presharedUrl = { (uint8_t *)presharedUrlStr, strlen(presharedUrlStr) + 1 }; in HWTEST_F() local 939 int32_t res = GetCredInfoByPeerUrl(json, &presharedUrl, in HWTEST_F() 956 Uint8Buff presharedUrl = { (uint8_t *)presharedUrlStr, strlen(presharedUrlStr) + 1 }; HWTEST_F() local 976 Uint8Buff presharedUrl = { (uint8_t *)presharedUrlStr, strlen(presharedUrlStr) + 1 }; HWTEST_F() local 997 Uint8Buff presharedUrl = { (uint8_t *)presharedUrlStr, strlen(presharedUrlStr) + 1 }; HWTEST_F() local 1016 Uint8Buff presharedUrl = { (uint8_t *)presharedUrlStr, strlen(presharedUrlStr) + 1 }; HWTEST_F() local 1034 Uint8Buff presharedUrl = { (uint8_t *)presharedUrlStr, strlen(presharedUrlStr) + 1 }; HWTEST_F() local 1053 Uint8Buff presharedUrl = { (uint8_t *)presharedUrlStr, strlen(presharedUrlStr) + 1 }; HWTEST_F() local 1073 Uint8Buff presharedUrl = { (uint8_t *)presharedUrlStr, strlen(presharedUrlStr) + 1 }; HWTEST_F() local 1094 Uint8Buff presharedUrl = { (uint8_t *)presharedUrlStr, strlen(presharedUrlStr) + 1 }; HWTEST_F() local 1116 Uint8Buff presharedUrl = { (uint8_t *)presharedUrlStr, strlen(presharedUrlStr) + 1 }; HWTEST_F() local 1138 Uint8Buff presharedUrl = { (uint8_t *)presharedUrlStr, strlen(presharedUrlStr) + 1 }; HWTEST_F() local 1161 Uint8Buff presharedUrl = { (uint8_t *)presharedUrlStr, strlen(presharedUrlStr) + 1 }; HWTEST_F() local 1185 Uint8Buff presharedUrl = { (uint8_t *)presharedUrlStr, strlen(presharedUrlStr) + 1 }; HWTEST_F() local 1288 Uint8Buff presharedUrl = { nullptr, 0 }; HWTEST_F() local 1324 Uint8Buff presharedUrl = { nullptr, 0 }; HWTEST_F() local 1350 Uint8Buff presharedUrl = { nullptr, 0 }; HWTEST_F() local 1372 Uint8Buff presharedUrl = { nullptr, 0 }; HWTEST_F() local 1394 Uint8Buff presharedUrl = { nullptr, 0 }; HWTEST_F() local 1415 Uint8Buff presharedUrl = { nullptr, 0 }; HWTEST_F() local 1435 Uint8Buff presharedUrl = { nullptr, 0 }; HWTEST_F() local 1455 Uint8Buff presharedUrl = { nullptr, 0 }; HWTEST_F() local 1476 Uint8Buff presharedUrl = { nullptr, 0 }; HWTEST_F() local 1497 Uint8Buff presharedUrl = { nullptr, 0 }; HWTEST_F() local 1520 Uint8Buff presharedUrl = { nullptr, 0 }; HWTEST_F() local 1544 Uint8Buff presharedUrl = { nullptr, 0 }; HWTEST_F() local 1573 Uint8Buff presharedUrl = { nullptr, 0 }; HWTEST_F() local 1607 Uint8Buff presharedUrl = { nullptr, 0 }; HWTEST_F() local 1641 Uint8Buff presharedUrl = { nullptr, 0 }; HWTEST_F() local 1663 Uint8Buff presharedUrl = { nullptr, 0 }; HWTEST_F() local 1683 Uint8Buff presharedUrl = { nullptr, 0 }; HWTEST_F() local 1709 Uint8Buff presharedUrl = { nullptr, 0 }; HWTEST_F() local 1737 Uint8Buff presharedUrl = { nullptr, 0 }; HWTEST_F() local 1767 Uint8Buff presharedUrl = { nullptr, 0 }; HWTEST_F() local 1789 Uint8Buff presharedUrl = { nullptr, 0 }; HWTEST_F() local 1812 Uint8Buff presharedUrl = { nullptr, 0 }; HWTEST_F() local 1837 Uint8Buff presharedUrl = { nullptr, 0 }; HWTEST_F() local 1867 Uint8Buff presharedUrl = { nullptr, 0 }; HWTEST_F() local [all...] |
/base/security/device_auth/test/unittest/deviceauth/source/ |
H A D | identity_manager_test.cpp | 184 Uint8Buff presharedUrl = { nullptr, 0 }; in HWTEST_F() local 185 ret = identity->getCredInfoByPeerUrl(in, &presharedUrl, nullptr); in HWTEST_F() 191 ret = identity->getSharedSecretByUrl(in, &presharedUrl, ALG_EC_SPEKE, nullptr); in HWTEST_F() 232 Uint8Buff presharedUrl = { nullptr, 0 }; in HWTEST_F() local 233 ret = identity->getCredInfoByPeerUrl(in, &presharedUrl, nullptr); in HWTEST_F() 236 ret = identity->getCredInfoByPeerUrl(in, &presharedUrl, &info); in HWTEST_F() 240 ret = identity->getSharedSecretByUrl(in, &presharedUrl, ALG_EC_SPEKE, &sharedSecret); in HWTEST_F() 246 ret = identity->getSharedSecretByUrl(in, &presharedUrl, ALG_EC_SPEKE, nullptr); in HWTEST_F() 261 Uint8Buff presharedUrl = { nullptr, 0 }; in HWTEST_F() local 262 ret = identity->getCredInfoByPeerUrl(in, &presharedUrl, nullpt in HWTEST_F() [all...] |
H A D | deviceauth_func_test.cpp | 1287 Uint8Buff presharedUrl = { val, sizeof(val) }; in HWTEST_F() local 1289 int32_t res = GetSharedSecretByUrl(in, &presharedUrl, ALG_ISO, &sharedSecret); in HWTEST_F() 1293 res = GetSharedSecretByUrl(nullptr, &presharedUrl, ALG_ISO, &sharedSecret); in HWTEST_F() 1307 Uint8Buff presharedUrl = { val, sizeof(val) }; in HWTEST_F() local 1309 int32_t res = GetSharedSecretByUrl(in, &presharedUrl, ALG_ISO, &sharedSecret); in HWTEST_F() 1313 res = GetSharedSecretByUrl(nullptr, &presharedUrl, ALG_ISO, &sharedSecret); in HWTEST_F() 1348 Uint8Buff presharedUrl = { (uint8_t *)credUrl, HcStrlen(credUrl) }; in HWTEST_F() local 1350 int32_t res = GetSharedSecretByUrl(in, &presharedUrl, ALG_ISO, &sharedSecret); in HWTEST_F()
|
/base/security/device_auth/services/creds_manager/inc/ |
H A D | creds_manager.h | 28 int32_t GetCredInfoByPeerUrl(const CJson *in, const Uint8Buff *presharedUrl, IdentityInfo **returnInfo); 30 const CJson *in, const Uint8Buff *presharedUrl, ProtocolAlgType protocolType, Uint8Buff *sharedSecret);
|
/base/security/device_auth/services/identity_manager/inc/ |
H A D | identity_manager.h | 44 int32_t (*getCredInfoByPeerUrl)(const CJson *in, const Uint8Buff *presharedUrl, IdentityInfo **returnInfo); 46 const CJson *in, const Uint8Buff *presharedUrl, ProtocolAlgType protocolType, Uint8Buff *sharedSecret);
|
/base/security/device_auth/services/identity_manager/src/ |
H A D | identity_pin.c | 188 static int32_t GetCredInfoByPeerUrl(const CJson *in, const Uint8Buff *presharedUrl, IdentityInfo **returnInfo) in GetCredInfoByPeerUrl() argument 190 if (in == NULL || presharedUrl == NULL || returnInfo == NULL) { in GetCredInfoByPeerUrl() 199 CJson *urlJson = CreateJsonFromString((const char *)presharedUrl->val); in GetCredInfoByPeerUrl() 213 int32_t ret = SetPreSharedUrlForProof((const char *)presharedUrl->val, &info->proof.preSharedUrl); in GetCredInfoByPeerUrl() 341 const CJson *in, const Uint8Buff *presharedUrl, ProtocolAlgType protocolType, Uint8Buff *sharedSecret) in GetSharedSecretByUrl() 343 if (in == NULL || presharedUrl == NULL || sharedSecret == NULL) { in GetSharedSecretByUrl() 340 GetSharedSecretByUrl( const CJson *in, const Uint8Buff *presharedUrl, ProtocolAlgType protocolType, Uint8Buff *sharedSecret) GetSharedSecretByUrl() argument
|
H A D | identity_p2p.c | 158 static int32_t GetCredInfoByPeerUrl(const CJson *in, const Uint8Buff *presharedUrl, IdentityInfo **returnInfo) in GetCredInfoByPeerUrl() argument 160 if (in == NULL || presharedUrl == NULL || returnInfo == NULL) { in GetCredInfoByPeerUrl() 169 int32_t ret = SetPreSharedUrlForProof((const char *)presharedUrl->val, &info->proof.preSharedUrl); in GetCredInfoByPeerUrl() 283 const CJson *in, const Uint8Buff *presharedUrl, ProtocolAlgType protocolType, Uint8Buff *sharedSecret) in GetSharedSecretByUrl() 286 if (in == NULL || presharedUrl == NULL || sharedSecret == NULL) { in GetSharedSecretByUrl() 282 GetSharedSecretByUrl( const CJson *in, const Uint8Buff *presharedUrl, ProtocolAlgType protocolType, Uint8Buff *sharedSecret) GetSharedSecretByUrl() argument
|
H A D | identity_group.c | 408 static int32_t GetCredInfoByPeerUrl(const CJson *in, const Uint8Buff *presharedUrl, IdentityInfo **returnInfo) in GetCredInfoByPeerUrl() argument 410 if (in == NULL || presharedUrl == NULL || returnInfo == NULL) { in GetCredInfoByPeerUrl() 415 CJson *urlJson = CreateJsonFromString((const char *)presharedUrl->val); in GetCredInfoByPeerUrl() 841 const CJson *in, const Uint8Buff *presharedUrl, ProtocolAlgType protocolType, Uint8Buff *sharedSecret) in GetSharedSecretByUrl() 843 if (in == NULL || presharedUrl == NULL || sharedSecret == NULL) { in GetSharedSecretByUrl() 848 CJson *urlJson = CreateJsonFromString((const char *)presharedUrl->val); in GetSharedSecretByUrl() 840 GetSharedSecretByUrl( const CJson *in, const Uint8Buff *presharedUrl, ProtocolAlgType protocolType, Uint8Buff *sharedSecret) GetSharedSecretByUrl() argument
|