Home
last modified time | relevance | path

Searched refs:deviceCommKey (Results 1 – 3 of 3) sorted by relevance

/foundation/communication/dsoftbus/tests/core/authentication/unittest/
Dauth_session_message_test.cpp99 AuthDeviceKeyInfo deviceCommKey; variable
100 (void)memset_s(&deviceCommKey, sizeof(AuthDeviceKeyInfo), 0, sizeof(AuthDeviceKeyInfo));
101 ASSERT_TRUE(memcpy_s(deviceCommKey.deviceKey, SESSION_KEY_LENGTH,
103 deviceCommKey.keyLen = 5;
104 deviceCommKey.keyIndex = 12345;
105 EXPECT_TRUE(PackFastAuthValue(obj, &deviceCommKey) == SOFTBUS_ERR);
Dauth_other_test.cpp622 AuthDeviceKeyInfo deviceCommKey = {0}; variable
626 deviceCommKey.keyLen = keyLen;
627 uint64_t ret = PackFastAuthValue(obj, &deviceCommKey);
/foundation/communication/dsoftbus/core/authentication/src/
Dauth_session_message.c233 static int32_t PackFastAuthValue(JsonObj *obj, AuthDeviceKeyInfo *deviceCommKey) in PackFastAuthValue() argument
240 aesParam.key = deviceCommKey->deviceKey; in PackFastAuthValue()
241 aesParam.keyLen = deviceCommKey->keyLen; in PackFastAuthValue()
242 int32_t ret = LnnEncryptAesGcm(&aesParam, (int32_t)deviceCommKey->keyIndex, &data, &dataLen); in PackFastAuthValue()
378 AuthDeviceKeyInfo deviceCommKey = {0}; in PackFastAuth() local
379 if (GetFastAuthKey(udidHashHexStr, info, &deviceCommKey) != SOFTBUS_OK) { in PackFastAuth()
383 if (PackFastAuthValue(obj, &deviceCommKey) != SOFTBUS_OK) { in PackFastAuth()
384 (void)memset_s(&deviceCommKey, sizeof(AuthDeviceKeyInfo), 0, sizeof(AuthDeviceKeyInfo)); in PackFastAuth()
388 (void)memset_s(&deviceCommKey, sizeof(AuthDeviceKeyInfo), 0, sizeof(AuthDeviceKeyInfo)); in PackFastAuth()