Searched refs:deviceCommKey (Results 1 – 2 of 2) sorted by relevance
/ohos5.0/foundation/communication/dsoftbus/tests/core/authentication/unittest/ |
H A D | auth_session_message_test.cpp | 103 AuthDeviceKeyInfo deviceCommKey; variable 105 ASSERT_TRUE(memcpy_s(deviceCommKey.deviceKey, SESSION_KEY_LENGTH, 107 deviceCommKey.keyLen = 5; 108 deviceCommKey.keyIndex = 12345; 109 EXPECT_TRUE(PackFastAuthValue(obj, &deviceCommKey) == SOFTBUS_ERR); 633 AuthDeviceKeyInfo deviceCommKey = {0}; variable 637 deviceCommKey.keyLen = keyLen; 638 uint64_t ret = PackFastAuthValue(obj, &deviceCommKey); 801 AuthDeviceKeyInfo deviceCommKey; variable 804 deviceCommKey.keyLen = SESSION_KEY_LENGTH; [all …]
|
/ohos5.0/foundation/communication/dsoftbus/core/authentication/src/ |
H A D | auth_session_json.c | 232 static int32_t PackFastAuthValue(JsonObj *obj, AuthDeviceKeyInfo *deviceCommKey) in PackFastAuthValue() argument 239 aesParam.key = deviceCommKey->deviceKey; in PackFastAuthValue() 240 aesParam.keyLen = deviceCommKey->keyLen; in PackFastAuthValue() 241 int32_t ret = LnnEncryptAesGcm(&aesParam, (int32_t)deviceCommKey->keyIndex, &data, &dataLen); in PackFastAuthValue() 419 AuthDeviceKeyInfo deviceCommKey = {0}; in PackFastAuth() local 420 if (GetFastAuthKey(udidHashHexStr, info, &deviceCommKey) != SOFTBUS_OK) { in PackFastAuth() 424 if (PackFastAuthValue(obj, &deviceCommKey) != SOFTBUS_OK) { in PackFastAuth() 425 (void)memset_s(&deviceCommKey, sizeof(AuthDeviceKeyInfo), 0, sizeof(AuthDeviceKeyInfo)); in PackFastAuth() 429 (void)memset_s(&deviceCommKey, sizeof(AuthDeviceKeyInfo), 0, sizeof(AuthDeviceKeyInfo)); in PackFastAuth()
|