Home
last modified time | relevance | path

Searched refs:broadcastKey (Results 1 - 7 of 7) sorted by relevance

/foundation/communication/dsoftbus/core/bus_center/lnn/net_builder/src/
H A Dlnn_cipherkey_manager_virtual.c81 int32_t LnnGetLocalBroadcastCipherKey(BroadcastCipherKey *broadcastKey) in LnnGetLocalBroadcastCipherKey() argument
83 (void)broadcastKey; in LnnGetLocalBroadcastCipherKey()
87 int32_t LnnSaveLocalBroadcastCipherKey(const BroadcastCipherKey *broadcastKey) in LnnSaveLocalBroadcastCipherKey() argument
89 (void)broadcastKey; in LnnSaveLocalBroadcastCipherKey()
93 int32_t LnnUpdateLocalBroadcastCipherKey(BroadcastCipherKey *broadcastKey) in LnnUpdateLocalBroadcastCipherKey() argument
95 (void)broadcastKey; in LnnUpdateLocalBroadcastCipherKey()
H A Dlnn_connection_fsm.c1032 BroadcastCipherKey broadcastKey; in LnnRecoveryBroadcastKey() local
1033 (void)memset_s(&broadcastKey, sizeof(BroadcastCipherKey), 0, sizeof(BroadcastCipherKey)); in LnnRecoveryBroadcastKey()
1035 ret = LnnGetLocalBroadcastCipherKey(&broadcastKey); in LnnRecoveryBroadcastKey()
1040 ret = LnnSetLocalByteInfo(BYTE_KEY_BROADCAST_CIPHER_KEY, broadcastKey.cipherInfo.key, SESSION_KEY_LENGTH); in LnnRecoveryBroadcastKey()
1045 ret = LnnSetLocalByteInfo(BYTE_KEY_BROADCAST_CIPHER_IV, broadcastKey.cipherInfo.iv, BROADCAST_IV_LEN); in LnnRecoveryBroadcastKey()
1050 LNN_LOGI(LNN_BUILDER, "recovery broadcastKey success!"); in LnnRecoveryBroadcastKey()
1053 (void)memset_s(&broadcastKey, sizeof(BroadcastCipherKey), 0, sizeof(BroadcastCipherKey)); in LnnRecoveryBroadcastKey()
1054 LNN_LOGI(LNN_BUILDER, "recovery broadcastKey success!"); in LnnRecoveryBroadcastKey()
/foundation/communication/dsoftbus/core/bus_center/lnn/net_builder/include/
H A Dlnn_cipherkey_manager.h46 int32_t LnnGetLocalBroadcastCipherKey(BroadcastCipherKey *broadcastKey);
47 int32_t LnnSaveLocalBroadcastCipherKey(const BroadcastCipherKey *broadcastKey);
48 int32_t LnnUpdateLocalBroadcastCipherKey(BroadcastCipherKey *broadcastKey);
/foundation/communication/dsoftbus/tests/core/bus_center/lnn/net_builder/src/
H A Dlnn_connection_fsm_mock.cpp90 int32_t LnnGetLocalBroadcastCipherKey(BroadcastCipherKey *broadcastKey) in LnnGetLocalBroadcastCipherKey() argument
92 return GetLnnConnInterface()->LnnGetLocalBroadcastCipherKey(broadcastKey); in LnnGetLocalBroadcastCipherKey()
/foundation/communication/dsoftbus/core/bus_center/lnn/net_ledger/local_ledger/src/
H A Dlnn_local_net_ledger.c2009 static int32_t LnnLoadBroadcastCipherInfo(BroadcastCipherKey *broadcastKey) in LnnLoadBroadcastCipherInfo() argument
2011 if (broadcastKey == NULL) { in LnnLoadBroadcastCipherInfo()
2012 LNN_LOGE(LNN_LEDGER, "broadcastKey is null."); in LnnLoadBroadcastCipherInfo()
2015 if (LnnGetLocalBroadcastCipherKey(broadcastKey) != SOFTBUS_OK) { in LnnLoadBroadcastCipherInfo()
2020 broadcastKey->cipherInfo.key, SESSION_KEY_LENGTH) != SOFTBUS_OK) { in LnnLoadBroadcastCipherInfo()
2025 broadcastKey->cipherInfo.iv, BROADCAST_IV_LEN) != SOFTBUS_OK) { in LnnLoadBroadcastCipherInfo()
2035 BroadcastCipherKey broadcastKey; in LnnGenBroadcastCipherInfo() local
2037 (void)memset_s(&broadcastKey, sizeof(BroadcastCipherKey), 0, sizeof(BroadcastCipherKey)); in LnnGenBroadcastCipherInfo()
2040 ret = LnnLoadBroadcastCipherInfo(&broadcastKey); in LnnGenBroadcastCipherInfo()
2043 if (SoftBusGenerateRandomArray(broadcastKey in LnnGenBroadcastCipherInfo()
[all...]
/foundation/communication/dsoftbus/tests/core/bus_center/lnn/net_builder/include/
H A Dlnn_connection_fsm_mock.h53 virtual int32_t LnnGetLocalBroadcastCipherKey(BroadcastCipherKey *broadcastKey) = 0;
/foundation/communication/dsoftbus/core/authentication/src/
H A Dauth_session_json.c1239 static int32_t FillBroadcastCipherKey(BroadcastCipherKey *broadcastKey, const NodeInfo *info) in FillBroadcastCipherKey() argument
1241 if (memcpy_s(broadcastKey->udid, UDID_BUF_LEN, info->deviceInfo.deviceUdid, UDID_BUF_LEN) != EOK) { in FillBroadcastCipherKey()
1245 if (memcpy_s(broadcastKey->cipherInfo.key, SESSION_KEY_LENGTH, info->cipherInfo.key, SESSION_KEY_LENGTH) != EOK) { in FillBroadcastCipherKey()
1249 if (memcpy_s(broadcastKey->cipherInfo.iv, BROADCAST_IV_LEN, info->cipherInfo.iv, BROADCAST_IV_LEN) != EOK) { in FillBroadcastCipherKey()
1273 BroadcastCipherKey broadcastKey; in UpdateBroadcastCipherKey() local
1274 (void)memset_s(&broadcastKey, sizeof(BroadcastCipherKey), 0, sizeof(BroadcastCipherKey)); in UpdateBroadcastCipherKey()
1275 if (FillBroadcastCipherKey(&broadcastKey, info) != SOFTBUS_OK) { in UpdateBroadcastCipherKey()
1276 (void)memset_s(&broadcastKey, sizeof(BroadcastCipherKey), 0, sizeof(BroadcastCipherKey)); in UpdateBroadcastCipherKey()
1279 if (LnnUpdateLocalBroadcastCipherKey(&broadcastKey) != SOFTBUS_OK) { in UpdateBroadcastCipherKey()
1281 (void)memset_s(&broadcastKey, sizeo in UpdateBroadcastCipherKey()
[all...]

Completed in 12 milliseconds