US 12,010,519 B2
Information sharing method, terminal device, storage medium, and computer program product
Fusheng Li, Shenzhen (CN); Deyong Li, Shenzhen (CN); Yingchao Wang, Shenzhen (CN); and Juan Li, Shenzhen (CN)
Assigned to HUAWEI TECHNOLOGIES CO., LTD., Shenzhen (CN)
Filed by HUAWEI TECHNOLOGIES CO., LTD., Shenzhen (CN)
Filed on Feb. 7, 2022, as Appl. No. 17/665,779.
Application 17/665,779 is a continuation of application No. PCT/CN2020/105143, filed on Jul. 28, 2020.
Claims priority of application No. 201910735944.6 (CN), filed on Aug. 9, 2019.
Prior Publication US 2022/0159471 A1, May 19, 2022
Int. Cl. H04W 12/50 (2021.01); H04W 12/041 (2021.01); H04W 12/0471 (2021.01); H04W 12/06 (2021.01); H04W 12/69 (2021.01)
CPC H04W 12/50 (2021.01) [H04W 12/041 (2021.01); H04W 12/0471 (2021.01); H04W 12/068 (2021.01); H04W 12/69 (2021.01)] 18 Claims
OG exemplary drawing
 
1. An information sharing method, comprising:
establishing, by a first terminal device, a communication connection to a second terminal device;
sending, by the first terminal device, an identity authentication notification message to a third terminal device through near field communication (NFC) when approaching the third terminal device;
obtaining, by the first terminal device, first identity information returned by the third terminal device through NFC when the third terminal device receives the identity authentication notification message;
performing, by the first terminal device, identity authentication on a third terminal device through when detecting the third terminal device;
determining, by the first terminal device, whether to send communication link information to the third terminal device based on the performed identity authentication; and
sending, by the first terminal device, the communication link information to the third terminal device by using a short-range wireless communication technology when determining that an identity of the third terminal device is valid, wherein the communication link information is used to establish a communication connection between the third terminal device and the second terminal device;
wherein the first identity information comprises a first device identifier of the third terminal device, a first version number of a public key attribute credential of the third terminal device, and a first random number generated by the third terminal device, and wherein the performing, by the first terminal device, identity authentication on the third terminal device based on the first identity information and pre-stored second identity information comprises:
obtaining, by the first terminal device, a first public key of the third terminal device based on the first device identifier and the first version number;
calculating, by the first terminal device, a first shared key based on a private key of the first terminal device and the first public key, and generating a second random number;
calculating, by the first terminal device, a first identity feature value based on the first shared key, a second device identifier of the first terminal device, the first random number, and the second random number;
sending, by the first terminal device, the first identity feature value, the second device identifier of the first terminal device, a second version number of the public key attribute credential, and the second random number to the third terminal device through near field communication;
receiving, by the first terminal device, a second identity feature value returned by the third terminal device, wherein the second identity feature value is obtained through calculation by the third terminal device based on a second shared key, the second device identifier, the first random number, and the second random number when the third terminal device obtains the second shared key through calculation; and the second shared key is obtained through calculation based on a private key of the third terminal device and a public key of the first terminal device; and
when the first identity feature value is the same as the second identity feature value, determining, by the first terminal device, that the identity of the third terminal device is valid.