Searched refs:pakeTask (Results 1 – 1 of 1) sorted by relevance
/base/security/device_auth/services/mk_agree/src/ |
D | mk_agree_task.c | 29 static int32_t GeneratePakeRequestPayload(PakeMkAgreeTask *pakeTask, CJson *payload) in GeneratePakeRequestPayload() argument 31 Uint8Buff saltBuff = { pakeTask->clientSalt, SALT_LEN }; in GeneratePakeRequestPayload() 32 int32_t res = pakeTask->taskBase.loader->generateRandom(&saltBuff); in GeneratePakeRequestPayload() 48 if (AddByteToJson(payload, FIELD_SALT, pakeTask->clientSalt, SALT_LEN) != HC_SUCCESS) { in GeneratePakeRequestPayload() 62 static int32_t GeneratePakeRequestPayloadData(PakeMkAgreeTask *pakeTask, Uint8Buff *payloadData) in GeneratePakeRequestPayloadData() argument 69 int32_t res = GeneratePakeRequestPayload(pakeTask, payload); in GeneratePakeRequestPayloadData() 97 static int32_t GeneratePakeResponsePayload(PakeMkAgreeTask *pakeTask, const Uint8Buff *kcfData, CJs… in GeneratePakeResponsePayload() argument 110 if (AddByteToJson(payload, FIELD_SALT, pakeTask->serverSalt, SALT_LEN) != HC_SUCCESS) { in GeneratePakeResponsePayload() 149 static int32_t ComputeKcfData(PakeMkAgreeTask *pakeTask, const Uint8Buff *firstSalt, const Uint8Buf… in ComputeKcfData() argument 159 PseudonymKeyInfo info = { pakeTask->taskBase.peerInfo, pakeTask->taskBase.pdidIndex }; in ComputeKcfData() [all …]
|