Home
last modified time | relevance | path

Searched refs:tmpSharedSecret (Results 1 – 2 of 2) sorted by relevance

/base/security/device_auth/services/protocol/src/pake_protocol/pake_v2_protocol/
Dpake_v2_protocol_common.c329 …ComputeSharedSecret(PakeBaseParams *params, const Uint8Buff *sid, const Uint8Buff *tmpSharedSecret) in ComputeSharedSecret() argument
348 tmpSharedSecret->val, params->innerKeyLen) != EOK) { // Only need x-coordinate in ComputeSharedSecret()
382 Uint8Buff tmpSharedSecret = { NULL, 0 }; in GenerateSharedSecret() local
385tmpSharedSecret.length = (params->curveType == CURVE_256) ? (params->innerKeyLen * 2) : (params->i… in GenerateSharedSecret()
386 tmpSharedSecret.val = (uint8_t *)HcMalloc(tmpSharedSecret.length, 0); in GenerateSharedSecret()
387 if (tmpSharedSecret.val == NULL) { in GenerateSharedSecret()
393 res = AgreeEcSharedSecret(params, &tmpSharedSecret); in GenerateSharedSecret()
395 res = AgreeDlSharedSecret(params, &tmpSharedSecret); in GenerateSharedSecret()
415 res = ComputeSharedSecret(params, &sid, &tmpSharedSecret); in GenerateSharedSecret()
425 FreeAndCleanKey(&tmpSharedSecret); in GenerateSharedSecret()
/base/security/device_auth/services/session_manager/src/session/v2/auth_sub_session/protocol_lib/
Ddl_speke_protocol.c355 static int32_t CalTmpSharedSecret(DlSpekeParams *params, Uint8Buff *tmpSharedSecret) in CalTmpSharedSecret() argument
358 params->largePrimeNumHex, tmpSharedSecret); in CalTmpSharedSecret()
452 static int32_t CombineSharedSecretMsg(DlSpekeParams *params, const Uint8Buff *tmpSharedSecret, cons… in CombineSharedSecretMsg() argument
463 tmpSharedSecret->val, params->innerKeyLen) != EOK) { in CombineSharedSecretMsg()
478 Uint8Buff tmpSharedSecret = { NULL, 0 }; in GenerateSharedSecretMsg() local
479 if (InitUint8Buff(&tmpSharedSecret, params->innerKeyLen) != HC_SUCCESS) { in GenerateSharedSecretMsg()
483 int32_t res = CalTmpSharedSecret(params, &tmpSharedSecret); in GenerateSharedSecretMsg()
485 ClearFreeUint8Buff(&tmpSharedSecret); in GenerateSharedSecretMsg()
493 ClearFreeUint8Buff(&tmpSharedSecret); in GenerateSharedSecretMsg()
496 res = CombineSharedSecretMsg(params, &tmpSharedSecret, &sid, sharedSecretMsg); in GenerateSharedSecretMsg()
[all …]