Home
last modified time | relevance | path

Searched refs:proof (Results 1 – 8 of 8) sorted by relevance

/base/security/device_auth/services/creds_manager/src/
Dcreds_operation_utils.c213 int32_t ret = SetPreSharedUrlForProof(urlStr, &info->proof.preSharedUrl); in GetIdentityInfoByType()
257 FreeBuffData(&info->proof.preSharedUrl); in DestroyIdentityInfo()
258 FreeBuffData(&info->proof.certInfo.pkInfoStr); in DestroyIdentityInfo()
259 FreeBuffData(&info->proof.certInfo.pkInfoSignature); in DestroyIdentityInfo()
Dcreds_manager.c148 info->proof.certInfo.isPseudonym = false; in AddNoPseudonymIdentityInfo()
185 info->proof.certInfo.isPseudonym = true; in GetIdentityInfos()
839 (*returnInfo)->proof.certInfo.isPseudonym = true; in GetCredInfoByPeerCert()
841 (*returnInfo)->proof.certInfo.isPseudonym = false; in GetCredInfoByPeerCert()
/base/security/device_auth/services/creds_manager/inc/
Dcreds_manager_defines.h93 IdentityProof proof; member
/base/security/device_auth/frameworks/deviceauth_lite/source/key_agreement/
Dpake_server.c334 struct hmac proof = { 0, {0} }; in generate_proof() local
344 return proof; in generate_proof()
353 int32_t ret = compute_hmac((struct var_buffer *)&pake_server->hmac_key, &challenge, &proof); in generate_proof()
358 proof.length = 0; in generate_proof()
361 return proof; in generate_proof()
Dpake_client.c338 struct hmac proof = { 0, {0} }; in generate_proof() local
348 return proof; in generate_proof()
357 int32_t ret = compute_hmac((struct var_buffer *)&pake_client->hmac_key, &challenge, &proof); in generate_proof()
361 proof.length = 0; in generate_proof()
364 return proof; in generate_proof()
/base/security/device_auth/services/session_manager/src/session/v2/
Ddev_session_v2.c458 …if (AddStringToJson(credInfo, FIELD_CRED_URL, (const char *)cred->proof.preSharedUrl.val) != HC_SU… in AddPreSharedCredInfo()
467 if (AddIntToJson(credInfo, FIELD_SIGN_ALG, cred->proof.certInfo.signAlg) != HC_SUCCESS) { in AddCertCredInfo()
472 if (cred->proof.certInfo.isPseudonym) { in AddCertCredInfo()
473 …res = AddPkInfoWithPdid(impl->context, credInfo, (const char *)cred->proof.certInfo.pkInfoStr.val); in AddCertCredInfo()
476 (const char *)cred->proof.certInfo.pkInfoStr.val) != HC_SUCCESS) { in AddCertCredInfo()
480 if (AddByteToJson(credInfo, FIELD_PK_INFO_SIGNATURE, cred->proof.certInfo.pkInfoSignature.val, in AddCertCredInfo()
481 cred->proof.certInfo.pkInfoSignature.length) != HC_SUCCESS) { in AddCertCredInfo()
1137 CJson *urlJson = CreateJsonFromString((const char *)cred->proof.preSharedUrl.val); in AddAuthInfoToContextByCred()
1250 return GetSharedSecretByUrl(impl->context, &selfCred->proof.preSharedUrl, in GetSharedSecret()
Ddev_session_util.c280 CJson *urlJson = CreateJsonFromString((const char *)info->proof.preSharedUrl.val); in IsP2pAuth()
301 CJson *urlJson = CreateJsonFromString((const char *)info->proof.preSharedUrl.val); in SetPeerAuthIdToContextIfNeeded()
/base/security/device_auth/services/creds_manager/src/account_related/
Daccount_related_creds_manager.c244 int32_t ret = GetCertInfo(osAccountId, userId, authId, &info->proof.certInfo); in GetAccountAsymIdentityInfo()