/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/stack/src/smp/ |
H A D | smp_legacy.c | 120 SMP_MemoryReverseCopy(confirmTemp, SMP_GetPairMng()->local.confirm, SMP_CONFIRM_DATA_LEN); in SMP_LegacyPairMasterStep5() 143 …SMP_MemoryReverseCopy(SMP_GetPairMng()->peer.confirm, (uint8_t *)param->data, SMP_CONFIRM_DATA_LEN… in SMP_LegacyPairMasterStep6() 144 SMP_MemoryReverseCopy(randomTemp, SMP_GetPairMng()->local.random, SMP_RANDOM_DATA_LEN); in SMP_LegacyPairMasterStep6() 165 … SMP_MemoryReverseCopy(SMP_GetPairMng()->peer.random, (uint8_t *)param->data, SMP_RANDOM_DATA_LEN); in SMP_LegacyPairMasterStep7() 210 SMP_MemoryReverseCopy(confirmTemp, returnParam->encryptedData, SMP_CONFIRM_DATA_LEN); in SMP_LegacyPairMasterStep9() 222 SMP_MemoryReverseCopy(encryptParam.key, SMP_GetPairMng()->TK, SMP_TK_LEN); in SMP_LegacyPairMasterStep9() 516 SMP_MemoryReverseCopy(confirm, SMP_GetPairMng()->local.confirm, SMP_CONFIRM_DATA_LEN); in SMP_LegacyPairSlaveStep7() 537 … SMP_MemoryReverseCopy(SMP_GetPairMng()->peer.random, (uint8_t *)param->data, SMP_RANDOM_DATA_LEN); in SMP_LegacyPairSlaveStep8() 584 SMP_MemoryReverseCopy(confirm, returnParam->encryptedData, SMP_CONFIRM_DATA_LEN); in SMP_LegacyPairSlaveStep10() 596 SMP_MemoryReverseCopy(encryptParam.key, SMP_GetPairMng()->TK, SMP_TK_LEN); in SMP_LegacyPairSlaveStep10() [all …]
|
H A D | smp_sc_accepter.c | 87 SMP_MemoryReverseCopy(SMP_GetPairMng()->DHKey, eventParam->DHKey, SMP_DHKEY_LEN); in SMP_ScPairJustworkOrNumericSlaveStep3() 213 SMP_MemoryReverseCopy(tmpConfirm, SMP_GetPairMng()->local.confirm, SMP_CONFIRM_DATA_LEN); in SMP_ScPairJustworkOrNumericSlaveStep8() 239 SMP_MemoryReverseCopy(randomTemp, SMP_GetPairMng()->local.random, SMP_RANDOM_DATA_LEN); in SMP_ScPairJustworkOrNumericSlaveStep9() 333 SMP_MemoryReverseCopy(randomTemp, SMP_GetPairMng()->local.random, SMP_RANDOM_DATA_LEN); in SMP_ScPairJustworkOrNumericSlaveStep12() 420 SMP_MemoryReverseCopy(SMP_GetPairMng()->DHKey, eventParam->DHKey, SMP_DHKEY_LEN); in SMP_ScPairPasskeyEntrySlaveStep3() 601 SMP_MemoryReverseCopy(confirmTmp, SMP_GetPairMng()->local.confirm, SMP_CONFIRM_DATA_LEN); in SMP_ScPairPasskeyEntrySlaveStep11() 796 SMP_MemoryReverseCopy(SMP_GetPairMng()->DHKey, eventParam->DHKey, SMP_DHKEY_LEN); in SMP_ScPairOobSlaveStep9() 952 SMP_MemoryReverseCopy(randomTemp, SMP_GetPairMng()->local.random, SMP_RANDOM_DATA_LEN); in SMP_ScPairOobSlaveStep15() 976 SMP_MemoryReverseCopy(encryptParam.key, SALT, sizeof(encryptParam.key)); in SMP_ScPairCommonSlaveStep1() 1200 SMP_MemoryReverseCopy(encryptParam.key, SMP_GetPairMng()->macKey, SMP_MACKEY_LEN); in SMP_ScPairCommonSlaveStep10() [all …]
|
H A D | smp_sc_initiator.c | 141 SMP_MemoryReverseCopy(randomTemp, SMP_GetPairMng()->local.random, SMP_RANDOM_DATA_LEN); in SMP_ScPairJustworkOrNumericMasterStep6() 165 SMP_MemoryReverseCopy(encryptParam.key, SMP_GetPairMng()->peer.random, SMP_RANDOM_DATA_LEN); in SMP_ScPairJustworkOrNumericMasterStep7() 249 SMP_MemoryReverseCopy(encryptParam.key, SALT, sizeof(encryptParam.key)); in SMP_ScPairJustworkOrNumericMasterStep10() 402 SMP_MemoryReverseCopy(SMP_GetPairMng()->DHKey, eventParam->DHKey, SMP_DHKEY_LEN); in SMP_ScPairPasskeyEntryMasterStep3() 571 SMP_MemoryReverseCopy(randomTemp, SMP_GetPairMng()->local.random, SMP_RANDOM_DATA_LEN); in SMP_ScPairPasskeyEntryMasterStep11() 680 SMP_MemoryReverseCopy(encryptParam.key, SALT, sizeof(encryptParam.key)); in SMP_ScPairPasskeyEntryMasterStep15() 752 SMP_MemoryReverseCopy(SMP_GetPairMng()->DHKey, eventParam->DHKey, SMP_DHKEY_LEN); in SMP_ScPairOobMasterStep9() 884 SMP_MemoryReverseCopy(randomTemp, SMP_GetPairMng()->local.random, SMP_RANDOM_DATA_LEN); in SMP_ScPairOobMasterStep14() 907 SMP_MemoryReverseCopy(encryptParam.key, SALT, sizeof(encryptParam.key)); in SMP_ScPairOobMasterStep15() 1129 SMP_MemoryReverseCopy(encryptParam.key, SMP_GetPairMng()->macKey, SMP_MACKEY_LEN); in SMP_ScPairCommonMasterStep9() [all …]
|
H A D | smp_privacy.c | 57 SMP_MemoryReverseCopy( in SMP_GenerateRpaStep1() 59 SMP_MemoryReverseCopy(address, pEncCmdData->address, sizeof(address)); in SMP_GenerateRpaStep1() 112 SMP_MemoryReverseCopy(g_smpLocalIdentAddr.addr, addr->addr, sizeof(g_smpLocalIdentAddr.addr)); in SMP_SetLocalIdentAddr()
|
H A D | smp_tool.c | 294 SMP_MemoryReverseCopy(encryptParam.key, SMP_GetPairMng()->TK, SMP_TK_LEN); in SMP_CryptographicC1Step1() 295 SMP_MemoryReverseCopy(encryptParam.plaintextData, param->output, sizeof(param->output)); in SMP_CryptographicC1Step1() 307 SMP_MemoryReverseCopy(param->input, returnParam->encryptedData, sizeof(param->input)); in SMP_ConstituteC1Step2Param() 338 SMP_MemoryReverseCopy(encryptParam.key, SMP_GetPairMng()->TK, SMP_TK_LEN); in SMP_CryptographicC1Step2() 339 SMP_MemoryReverseCopy(encryptParam.plaintextData, param->output, sizeof(param->output)); in SMP_CryptographicC1Step2() 358 … SMP_MemoryReverseCopy((uint8_t *)(&passkey), (SMP_GetPairMng()->TK + 0x0C), sizeof(uint32_t)); in SMP_ConstituteF4Param() 617 SMP_MemoryReverseCopy(encryptParam.plaintextData, encCmd->Y, CRYPT_AESCMAC_Y_LEN); in SMP_CryptographicAesCmacStep3() 625 SMP_MemoryReverseCopy(encryptParam.plaintextData, encCmd->Y, CRYPT_AESCMAC_Y_LEN); in SMP_CryptographicAesCmacStep3() 659 SMP_MemoryReverseCopy(param->pEncCmdData->X, param->X, CRYPT_AESCMAC_X_LEN); in SMP_CryptographicAesCmacStep4() 667 … SMP_MemoryReverseCopy(encryptParam.plaintextData, param->pEncCmdData->Y, CRYPT_AESCMAC_Y_LEN); in SMP_CryptographicAesCmacStep4() [all …]
|
H A D | smp.c | 329 SMP_MemoryReverseCopy( in SMP_StartPairTask() 480 SMP_MemoryReverseCopy( in SMP_RemotePairReqReplyTask() 687 SMP_MemoryReverseCopy(startEncParam.randomNumber, param->random, SMP_MASTER_RAND_LEN); in SMP_StartEncTask() 918 SMP_MemoryReverseCopy(encryptParam.plaintextData, message, sizeof(message)); in SMP_GenRpaTask() 1101 SMP_MemoryReverseCopy(encryptParam.key, SALT, sizeof(encryptParam.key)); in SMP_AuthReqReplyStepTransMaster() 1199 SMP_MemoryReverseCopy(encryptParam.key, SALT, sizeof(encryptParam.key)); in SMP_AuthReqReplyNumericSlave() 1284 SMP_MemoryReverseCopy(g_smpPairMng.peer.confirm, in SMP_AuthReqReplyObtainEntryValue() 1413 SMP_MemoryReverseCopy( in SMP_PairReqReplyScPairOob() 1415 … SMP_MemoryReverseCopy(scOobData + sizeof(g_smpPairMng.local.addr.addr) + SMP_RANDOM_DATA_LEN, in SMP_PairReqReplyScPairOob() 1550 SMP_MemoryReverseCopy( in SMP_PairRspReplyScPairOob() [all …]
|
H A D | smp_oob.c | 162 SMP_MemoryReverseCopy(randomTmp, g_smpScOobMng.random, SMP_RANDOM_DATA_LEN); in SMP_GenerateScOobDataStep4() 163 SMP_MemoryReverseCopy(confirmTmp, g_smpScOobMng.confirm, SMP_CONFIRM_DATA_LEN); in SMP_GenerateScOobDataStep4()
|
H A D | smp_send.c | 103 …SMP_MemoryReverseCopy(masterIdRandTemp, SMP_GetPairMng()->local.masterIdRand, SMP_MASTER_RAND_LEN); in SMP_SendDistKeysToRemoteEncKey() 135 …SMP_MemoryReverseCopy(identAddrTemp.addr, SMP_GetPairMng()->local.identityAddr.addr, BT_ADDRESS_SI… in SMP_SendDistKeysToRemoteIdKey() 583 SMP_MemoryReverseCopy(address, pEncCmd->address, sizeof(address)); in SMP_EncCmdTimeoutResoRpa()
|
H A D | smp_hci_event.c | 725 SMP_MemoryReverseCopy(SMP_GetPairMng()->DHKey, eventParam->DHKey, SMP_DHKEY_LEN); in SMP_OnGenDHKeyCompScJwOrNumMasterStep3() 733 SMP_MemoryReverseCopy(SMP_GetPairMng()->DHKey, eventParam->DHKey, SMP_DHKEY_LEN); in SMP_OnGenDHKeyCompScJwOrNumMasterStep4() 914 SMP_MemoryReverseCopy(randomTemp, eventParam->randomNumber, SMP_MASTER_RAND_LEN); in SMP_OnLtkReqEncProc()
|
H A D | smp_tool.h | 169 void SMP_MemoryReverseCopy(uint8_t *dest, const uint8_t *source, uint16_t length);
|
H A D | smp_receive.c | 720 SMP_MemoryReverseCopy(SMP_GetPairMng()->peer.masterIdRand, &(pData[0x02]), SMP_MASTER_RAND_LEN); in SMP_RecvMasterIdentProcessMaster() 770 SMP_MemoryReverseCopy(SMP_GetPairMng()->peer.masterIdRand, &(pData[0x02]), SMP_MASTER_RAND_LEN); in SMP_RecvMasterIdentProcessSlave()
|