Home
last modified time | relevance | path

Searched refs:cipherInfo (Results 1 – 10 of 10) sorted by relevance

/ohos5.0/drivers/peripheral/pin_auth/hdi_service/database/src/
H A Dpin_db.c468 if (cipherInfo == NULL) { in SplicePinCiperInfo()
472 if (memcpy_s(cipherInfo->buf, cipherInfo->maxSize, iv->buf, iv->contentSize) != EOK) { in SplicePinCiperInfo()
477 …if (memcpy_s(cipherInfo->buf + cipherInfo->contentSize, cipherInfo->maxSize - cipherInfo->contentS… in SplicePinCiperInfo()
483 …if (memcpy_s(cipherInfo->buf + cipherInfo->contentSize, cipherInfo->maxSize - cipherInfo->contentS… in SplicePinCiperInfo()
489 return cipherInfo; in SplicePinCiperInfo()
492 DestroyBuffer(cipherInfo); in SplicePinCiperInfo()
500 Buffer *cipherInfo = NULL; in GetPinCiperInfo() local
519 if (cipherInfo == NULL) { in GetPinCiperInfo()
529 return cipherInfo; in GetPinCiperInfo()
565 if (cipherInfo == NULL) { in ProcessAddPin()
[all …]
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_builder/src/
H A Dlnn_data_cloud_sync.c62 … if (ConvertHexStringToBytes((unsigned char *)cacheInfo->cipherInfo.key, SESSION_KEY_LENGTH, value, in DBCipherInfoSyncToCache()
68 … if (ConvertHexStringToBytes((unsigned char *)cacheInfo->cipherInfo.iv, BROADCAST_IV_LEN, value, in DBCipherInfoSyncToCache()
497 if (LnnSetDLDeviceBroadcastCipherKey(deviceUdid, cacheInfo->cipherInfo.key) != SOFTBUS_OK) { in SetDBDataToDistributedLedger()
502 if (LnnSetDLDeviceBroadcastCipherIv(deviceUdid, cacheInfo->cipherInfo.iv) != SOFTBUS_OK) { in SetDBDataToDistributedLedger()
778 *cacheInfo->cipherInfo.key, *cacheInfo->cipherInfo.iv, *cacheInfo->rpaInfo.peerIrk, in PrintSyncNodeInfo()
863 …if (memcpy_s((char *)oldInfo->cipherInfo.key, SESSION_KEY_LENGTH, newInfo->cipherInfo.key, SESSION… in LnnUpdateOldCacheInfo()
867 …if (memcpy_s((char *)oldInfo->cipherInfo.iv, BROADCAST_IV_LEN, newInfo->cipherInfo.iv, BROADCAST_I… in LnnUpdateOldCacheInfo()
H A Dlnn_connection_fsm.c1040 if (LnnSetLocalByteInfo(BYTE_KEY_BROADCAST_CIPHER_KEY, broadcastKey.cipherInfo.key, in LnnRecoveryBroadcastKey()
1045 if (LnnSetLocalByteInfo(BYTE_KEY_BROADCAST_CIPHER_IV, broadcastKey.cipherInfo.iv, in LnnRecoveryBroadcastKey()
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_builder/include/
H A Dlnn_cipherkey_manager.h33 BroadcastCipherInfo cipherInfo; member
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/distributed_ledger/src/
H A Dlnn_distributed_net_ledger.c957 … if (memcpy_s(deviceInfo->cipherInfo.key, sizeof(deviceInfo->cipherInfo.key), info->cipherInfo.key, in GetAndSaveRemoteDeviceInfo()
958 sizeof(info->cipherInfo.key)) != EOK) { in GetAndSaveRemoteDeviceInfo()
962 if (memcpy_s(deviceInfo->cipherInfo.iv, sizeof(deviceInfo->cipherInfo.iv), info->cipherInfo.iv, in GetAndSaveRemoteDeviceInfo()
963 sizeof(info->cipherInfo.iv)) != EOK) { in GetAndSaveRemoteDeviceInfo()
1524 …if (memcpy_s((char *)oldInfo->cipherInfo.key, SESSION_KEY_LENGTH, newInfo->cipherInfo.key, SESSION… in UpdateDistributedLedger()
1528 …if (memcpy_s((char *)oldInfo->cipherInfo.iv, BROADCAST_IV_LEN, newInfo->cipherInfo.iv, BROADCAST_I… in UpdateDistributedLedger()
H A Dlnn_distributed_net_ledger_manager.c729 if (memcpy_s(buf, len, info->cipherInfo.key, SESSION_KEY_LENGTH) != EOK) { in DlGetDeviceCipherInfoKey()
741 if (memcpy_s(buf, len, info->cipherInfo.iv, BROADCAST_IV_LEN) != EOK) { in DlGetDeviceCipherInfoIv()
1012 …if (memcpy_s((char *)info->cipherInfo.key, SESSION_KEY_LENGTH, cipherKey, SESSION_KEY_LENGTH) != E… in LnnSetDLDeviceBroadcastCipherKey()
1041 … if (memcpy_s((char *)info->cipherInfo.iv, BROADCAST_IV_LEN, cipherIv, BROADCAST_IV_LEN) != EOK) { in LnnSetDLDeviceBroadcastCipherIv()
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/local_ledger/src/
H A Dlnn_local_net_ledger.c1671 if (memcpy_s(buf, len, info->cipherInfo.key, SESSION_KEY_LENGTH) != EOK) { in LlGetCipherInfoKey()
1685 if (memcpy_s(buf, len, info->cipherInfo.iv, BROADCAST_IV_LEN) != EOK) { in LlGetCipherInfoIv()
1725 if (memcpy_s((char *)g_localNetLedger.localInfo.cipherInfo.key, in UpdateLocalCipherInfoKey()
1739 …if (memcpy_s((char *)g_localNetLedger.localInfo.cipherInfo.iv, BROADCAST_IV_LEN, id, BROADCAST_IV_… in UpdateLocalCipherInfoIv()
2032 broadcastKey->cipherInfo.key, SESSION_KEY_LENGTH) != SOFTBUS_OK) { in LnnLoadBroadcastCipherInfo()
2037 broadcastKey->cipherInfo.iv, BROADCAST_IV_LEN) != SOFTBUS_OK) { in LnnLoadBroadcastCipherInfo()
2055 … if (SoftBusGenerateRandomArray(broadcastKey.cipherInfo.key, SESSION_KEY_LENGTH) != SOFTBUS_OK) { in LnnGenBroadcastCipherInfo()
2059 … if (SoftBusGenerateRandomArray(broadcastKey.cipherInfo.iv, BROADCAST_IV_LEN) != SOFTBUS_OK) { in LnnGenBroadcastCipherInfo()
2064 broadcastKey.cipherInfo.key, SESSION_KEY_LENGTH) != SOFTBUS_OK) { in LnnGenBroadcastCipherInfo()
2069 broadcastKey.cipherInfo.iv, BROADCAST_IV_LEN) != SOFTBUS_OK) { in LnnGenBroadcastCipherInfo()
/ohos5.0/foundation/communication/dsoftbus/core/authentication/src/
H A Dauth_session_json.c1243 …if (memcpy_s(broadcastKey->cipherInfo.key, SESSION_KEY_LENGTH, info->cipherInfo.key, SESSION_KEY_L… in FillBroadcastCipherKey()
1247 …if (memcpy_s(broadcastKey->cipherInfo.iv, BROADCAST_IV_LEN, info->cipherInfo.iv, BROADCAST_IV_LEN)… in FillBroadcastCipherKey()
1277 info->cipherInfo.key, SESSION_KEY_LENGTH) != SOFTBUS_OK) { in PackCipherRpaInfo()
1282 info->cipherInfo.iv, BROADCAST_IV_LEN) != SOFTBUS_OK) { in PackCipherRpaInfo()
1333 if (ConvertHexStringToBytes((unsigned char *)info->cipherInfo.key, in UnpackCipherRpaInfo()
1338 if (ConvertHexStringToBytes((unsigned char *)info->cipherInfo.iv, in UnpackCipherRpaInfo()
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/common/include/
H A Dlnn_node_info.h180 BroadcastCipherInfo cipherInfo; member
/ohos5.0/foundation/communication/dsoftbus/tests/core/authentication/unittest/
H A Dauth_session_message_test.cpp412 … ASSERT_TRUE(memcpy_s(info.cipherInfo.key, SESSION_KEY_LENGTH, KEY_TEST, strlen(KEY_TEST)) == EOK);
413 ASSERT_TRUE(memcpy_s(info.cipherInfo.iv, BROADCAST_IV_LEN, IV_TEST, strlen(IV_TEST)) == EOK);