Home
last modified time | relevance | path

Searched refs:SMP_GetPairMng (Results 1 - 9 of 9) sorted by relevance

/foundation/communication/bluetooth_service/services/bluetooth/stack/src/smp/
H A Dsmp_receive.c133 if ((SMP_GetPairMng()->state == SMP_STATE_PAIRING) && (SMP_GetPairMng()->handle == param->handle)) { in SMP_DisconnectedTask()
134 SMP_GeneratePairResult(SMP_GetPairMng()->handle, SMP_PAIR_STATUS_FAILED, 0x00, SMP_GetPairMng()->alarm); in SMP_DisconnectedTask()
210 (void)memset_s(SMP_GetPairMng(), sizeof(SMP_PairMng), 0x00, sizeof(SMP_PairMng)); in SMP_ReceivePairingRequest()
211 SMP_GetPairMng()->state = SMP_STATE_PAIRING; in SMP_ReceivePairingRequest()
212 SMP_GetPairMng()->handle = handle; in SMP_ReceivePairingRequest()
213 SMP_GetPairMng()->role = SMP_ROLE_SLAVE; in SMP_ReceivePairingRequest()
214 SMP_GetPairMng()->alarm = AlarmCreate("", false); in SMP_ReceivePairingRequest()
215 (void)memcpy_s(&SMP_GetPairMng() in SMP_ReceivePairingRequest()
[all...]
H A Dsmp_legacy.c33 uint16_t handle = SMP_GetPairMng()->handle; in SMP_LegacyPairMasterStep1()
34 uint8_t pairMethod = SMP_GetPairMng()->local.pairMethod; in SMP_LegacyPairMasterStep1()
41 SMP_GetPairMng()->step = SMP_LEGACY_PAIR_MASTER_STEP_2; in SMP_LegacyPairMasterStep1()
42 AlarmSet(SMP_GetPairMng()->alarm, SMP_PAIR_WAIT_TIME, SMP_PairTimeout, NULL); in SMP_LegacyPairMasterStep1()
54 (void)memcpy_s(SMP_GetPairMng()->local.random, SMP_RANDOM_DATA_LEN, returnParam->randomNumber, SMP_RAND_NUM_LEN); in SMP_LegacyPairMasterStep2()
59 SMP_GetPairMng()->handle, SMP_PAIR_STATUS_FAILED, SMP_PAIR_FAILED_UNSPECIFIED_REASION, NULL); in SMP_LegacyPairMasterStep2()
72 (void)memcpy_s(SMP_GetPairMng()->local.random + SMP_RAND_NUM_LEN, in SMP_LegacyPairMasterStep3()
77 SMP_ROLE_MASTER, SMP_GetPairMng()->local.random, SMP_RANDOM_DATA_LEN, &cryptC1Step1Param); in SMP_LegacyPairMasterStep3()
82 SMP_GetPairMng()->handle, SMP_PAIR_STATUS_FAILED, SMP_PAIR_FAILED_UNSPECIFIED_REASION, NULL); in SMP_LegacyPairMasterStep3()
102 SMP_GetPairMng() in SMP_LegacyPairMasterStep4()
[all...]
H A Dsmp_sc_accepter.c37 AlarmCancel(SMP_GetPairMng()->alarm); in SMP_ScPairJustworkOrNumericSlaveStep1()
38 (void)memcpy_s(SMP_GetPairMng()->peer.publicKey, SMP_PUBLICKEY_LEN, (uint8_t *)param->data, SMP_PUBLICKEY_LEN); in SMP_ScPairJustworkOrNumericSlaveStep1()
40 SMP_GetPairMng()->step = SMP_SC_PAIR_JUSTWORKORNUMERIC_SLAVE_STEP_2; in SMP_ScPairJustworkOrNumericSlaveStep1()
41 AlarmSet(SMP_GetPairMng()->alarm, SMP_PAIR_WAIT_TIME, SMP_PairTimeout, NULL); in SMP_ScPairJustworkOrNumericSlaveStep1()
45 SMP_GeneratePairResult(SMP_GetPairMng()->handle, in SMP_ScPairJustworkOrNumericSlaveStep1()
48 SMP_GetPairMng()->alarm); in SMP_ScPairJustworkOrNumericSlaveStep1()
63 SMP_GetPairMng()->local.publicKey, SMP_PUBLICKEY_LEN, eventParam->localP256PublicKey, SMP_PUBLICKEY_LEN); in SMP_ScPairJustworkOrNumericSlaveStep2()
65 SMP_GetPairMng()->step = SMP_SC_PAIR_JUSTWORKORNUMERIC_SLAVE_STEP_3; in SMP_ScPairJustworkOrNumericSlaveStep2()
67 DHKeyParam.remoteP256PublicKey, SMP_PUBLICKEY_LEN, SMP_GetPairMng()->peer.publicKey, SMP_PUBLICKEY_LEN); in SMP_ScPairJustworkOrNumericSlaveStep2()
68 AlarmSet(SMP_GetPairMng() in SMP_ScPairJustworkOrNumericSlaveStep2()
[all...]
H A Dsmp_hci_event.c336 if (SMP_GetPairMng()->state != SMP_STATE_PAIRING) { in SMP_OnLeRandCompTask()
341 AlarmCancel(SMP_GetPairMng()->alarm); in SMP_OnLeRandCompTask()
345 SMP_GetPairMng()->handle, SMP_PAIR_STATUS_FAILED, SMP_PAIR_FAILED_UNSPECIFIED_REASION, NULL); in SMP_OnLeRandCompTask()
347 SMP_ExecuteStepFunc(SMP_GetPairMng()->step, &param); in SMP_OnLeRandCompTask()
483 if ((SMP_GetPairMng()->state == SMP_STATE_PAIRING) && (SMP_GetPairMng()->handle == eventParam->connectionHandle)) { in SMP_OnLeLongTermKeyReqTask()
485 if (SMP_GetPairMng()->role != SMP_ROLE_SLAVE) { in SMP_OnLeLongTermKeyReqTask()
487 negativeReplyParam.connectionHandle = SMP_GetPairMng()->handle; in SMP_OnLeLongTermKeyReqTask()
492 if ((SMP_GetPairMng()->step != SMP_LEGACY_PAIR_SLAVE_STEP_12) && in SMP_OnLeLongTermKeyReqTask()
493 (SMP_GetPairMng() in SMP_OnLeLongTermKeyReqTask()
[all...]
H A Dsmp_sc_initiator.c41 SMP_GetPairMng()->local.publicKey, SMP_PUBLICKEY_LEN, eventParam->localP256PublicKey, SMP_PUBLICKEY_LEN); in SMP_ScPairJustworkOrNumericMasterStep1()
43 SMP_GetPairMng()->step = SMP_SC_PAIR_JUSTWORKORNUMERIC_MASTER_STEP_2; in SMP_ScPairJustworkOrNumericMasterStep1()
44 AlarmSet(SMP_GetPairMng()->alarm, SMP_PAIR_WAIT_TIME, SMP_PairTimeout, NULL); in SMP_ScPairJustworkOrNumericMasterStep1()
46 SMP_SendPairingPublicKey(SMP_GetPairMng()->handle, SMP_GetPairMng()->local.publicKey, SMP_SendDataCallback); in SMP_ScPairJustworkOrNumericMasterStep1()
49 SMP_GeneratePairResult(SMP_GetPairMng()->handle, in SMP_ScPairJustworkOrNumericMasterStep1()
52 SMP_GetPairMng()->alarm); in SMP_ScPairJustworkOrNumericMasterStep1()
64 AlarmCancel(SMP_GetPairMng()->alarm); in SMP_ScPairJustworkOrNumericMasterStep2()
65 (void)memcpy_s(SMP_GetPairMng()->peer.publicKey, SMP_PUBLICKEY_LEN, (uint8_t *)param->data, SMP_PUBLICKEY_LEN); in SMP_ScPairJustworkOrNumericMasterStep2()
66 SMP_GetPairMng() in SMP_ScPairJustworkOrNumericMasterStep2()
[all...]
H A Dsmp_tool.c236 param->preq[PAIR_REQ_5] = SMP_GetPairMng()->local.pairParam.ioCapability; in SMP_ConstituteC1Step1Param()
237 param->preq[PAIR_REQ_4] = SMP_GetPairMng()->local.pairParam.oobDataFlag; in SMP_ConstituteC1Step1Param()
238 param->preq[PAIR_REQ_3] = SMP_GetPairMng()->local.pairParam.authReq; in SMP_ConstituteC1Step1Param()
239 param->preq[PAIR_REQ_2] = SMP_GetPairMng()->local.pairParam.maxEncKeySize; in SMP_ConstituteC1Step1Param()
240 param->preq[PAIR_REQ_1] = SMP_GetPairMng()->local.pairParam.initKeyDist; in SMP_ConstituteC1Step1Param()
241 param->preq[PAIR_REQ_0] = SMP_GetPairMng()->local.pairParam.respKeyDist; in SMP_ConstituteC1Step1Param()
243 param->pres[PAIR_RES_5] = SMP_GetPairMng()->peer.pairParam.ioCapability; in SMP_ConstituteC1Step1Param()
244 param->pres[PAIR_RES_4] = SMP_GetPairMng()->peer.pairParam.oobDataFlag; in SMP_ConstituteC1Step1Param()
245 param->pres[PAIR_RES_3] = SMP_GetPairMng()->peer.pairParam.authReq; in SMP_ConstituteC1Step1Param()
246 param->pres[PAIR_RES_2] = SMP_GetPairMng() in SMP_ConstituteC1Step1Param()
[all...]
H A Dsmp_send.c64 if (SMP_GetPairMng()->local.keyDist & SMP_KEY_DIST_BIT_ENC_KEY) { in SMP_SendDistributionKeysToRemote()
71 if (SMP_GetPairMng()->local.keyDist & SMP_KEY_DIST_BIT_ID_KEY) { in SMP_SendDistributionKeysToRemote()
78 if (SMP_GetPairMng()->local.keyDist & SMP_KEY_DIST_BIT_SIGN_KEY) { in SMP_SendDistributionKeysToRemote()
95 (void)memcpy_s(ltkTemp, SMP_LTK_LEN, SMP_GetPairMng()->local.LTK, SMP_LTK_LEN); in SMP_SendDistKeysToRemoteEncKey()
96 int ret = SMP_SendEncryptionInformation(SMP_GetPairMng()->handle, ltkTemp, SMP_SendEncryptionInformationCallback); in SMP_SendDistKeysToRemoteEncKey()
103 SMP_MemoryReverseCopy(masterIdRandTemp, SMP_GetPairMng()->local.masterIdRand, SMP_MASTER_RAND_LEN); in SMP_SendDistKeysToRemoteEncKey()
104 ret = SMP_SendMasterIdentification(SMP_GetPairMng()->handle, in SMP_SendDistKeysToRemoteEncKey()
105 SMP_GetPairMng()->local.masterIdEdiv, in SMP_SendDistKeysToRemoteEncKey()
124 SMP_GetLocalIrk(SMP_GetPairMng()->local.IRK, sizeof(SMP_GetPairMng() in SMP_SendDistKeysToRemoteIdKey()
[all...]
H A Dsmp_common.h35 SMP_PairMng *SMP_GetPairMng();
H A Dsmp.c1871 SMP_PairMng *SMP_GetPairMng() in SMP_GetPairMng() function

Completed in 10 milliseconds