# US 12,010,519 B2 · Information sharing method, terminal device, storage medium, and computer program product

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 12,010,519 B2
- Document ID: US12010519B2
- Status: Granted
- Kind: B2
- Application number: 17/665,779
- Filed: 2022-02-07
- Published: 2022-05-19
- Granted: 2024-06-11
- Earliest claimed: 2019-08-09
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Fusheng Li; Deyong Li; Yingchao Wang; Juan Li
- Web page: https://patentgrep.com/patent/US12010519B2

## CPC

- H04W 12/50: Secure pairing of devices
- H04L 12/12: Arrangements for remote connection or disconnection of substations or of equipment thereof
- H04W 4/80: Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
- H04W 12/041: Key generation or derivation
- H04W 12/0471: Key exchange
- H04W 12/06: Authentication
- H04W 12/068: {using credential vaults, e.g. password manager applications or one time password [OTP] applications}
- H04W 12/63: Location-dependent; Proximity-dependent
- H04W 12/69: Identity-dependent
- H04W: WIRELESS COMMUNICATION NETWORKS (broadcast communication H04H; communication systems using wireless links for non-selective communication, e.g. wireless extensions H04M1/72)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

An information sharing method and related terminal device are provided. In the method, a first terminal device first establishes a communication connection to a second terminal device. When the first terminal device approaches a third terminal device, the first terminal device performs identity authentication on the third terminal device through near field communication (NFC). After determining that the identity of the third terminal device is valid, the first terminal device sends communication link information to the third terminal device by using a short-range wireless communication technology. After receiving the communication link information, the third terminal device establishes a communication connection to the second terminal device by using the communication link information when detecting the second terminal device. In the foregoing solution, communication connections can be quickly and conveniently established, and information sharing can be implemented among a group of terminal devices.

## Claims

### Claim 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.

### Claim 2 (depends on 1)

The information sharing method according to claim 1, wherein both a cellular mobile network and a wireless local area network of the third terminal device are in a disabled state.

### Claim 3 (depends on 1)

The information sharing method according to claim 1, wherein the short-range wireless communication technology is NFC.

### Claim 4 (depends on 1)

The information sharing method according to claim 1, wherein the short-range wireless communication technology is Bluetooth communication.

### Claim 5 (depends on 1)

The information sharing method according to claim 1, wherein the second terminal device is a terminal device that completes pairing with the first terminal device in advance, and the communication link information comprises Bluetooth pairing information used for pairing with the second terminal device.

### Claim 6 (depends on 1)

The information sharing method according to claim 1, wherein the communication link information comprises access information of a wireless network.

### Claim 7 (depends on 6)

The information sharing method according to claim 6, wherein the communication link information further comprises NFC access control identification information.

### Claim 8 (depends on 1)

The information sharing method according to claim 1, wherein the communication link information comprises NFC access control identification information.

### Claim 9 (depends on 1)

The information sharing method according to claim 1, wherein the first identity information comprises a first device identifier and a first public key of the third terminal device; and
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 from an identity database based on the first device identifier, a pre-stored public key corresponding to the third terminal device; performing identity authentication on the third terminal device based on the first public key and the pre-stored public key; and when the first public key is the same as the pre-stored public key, determining that the identity of the third terminal device is valid.

### Claim 10 (depends on 1)

The information sharing method according to claim 1, wherein the 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 comprises:
searching, by the first terminal device, an identity database for a device identifier that matches the first device identifier; and
when the matched device identifier is found and the first version number is less than or equal to the pre-stored second version number of the public key attribute credential, obtaining the public key of the third terminal device from the identity database, or
when the matched device identifier is not found and the first version number is greater than the pre-stored second version number of the public key attribute credential, requesting to obtain the first public key from the third terminal device.

### Claim 11 (depends on 10)

The information sharing method according to claim 10, wherein after the searching, by the first terminal device, an identity database for a device identifier that matches the first device identifier, the method further comprises:
when the matched device identifier is not found and the first version number is less than the pre-stored second version number of the public key attribute credential, determining that the identity of the third terminal device is invalid.

### Claim 12 (depends on 1)

The information sharing method according to claim 1, wherein the sending, by the first terminal device, 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 comprises:
generating, by the first terminal device, a session key when determining that the identity of the third terminal device is valid, and sending the session key to the third terminal device by using the short-range wireless communication technology; and
encrypting, by the first terminal device, the communication link information by using the session key, and sending encrypted data to the third terminal device by using the short-range wireless communication technology.

### Claim 13

A first terminal device, comprising:
a processor; and
a storage medium containing computer-executable instructions;
wherein the processor is configured to execute the computer-executable instructions to enable the terminal device to perform operations comprising:
establishing 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 identity authentication on a third terminal device through NFC when detecting the third terminal device;
determining, by the terminal device, whether to send communication link information to the third terminal device based on the performed identity authentication; and
sending 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.

### Claim 14 (depends on 13)

The first terminal device according to claim 13, wherein both a cellular mobile network and a wireless local area network of the third terminal device are in a disabled state.

### Claim 15 (depends on 13)

The first terminal device according to claim 13, wherein the short-range wireless communication technology is NFC.

### Claim 16 (depends on 13)

The first terminal device according to claim 13, wherein the short-range wireless communication technology is Bluetooth communication.

### Claim 17 (depends on 13)

The first terminal device according to claim 13, wherein the second terminal device is a terminal device that completes pairing with the terminal device in advance, and the communication link information comprises Bluetooth pairing information used for pairing with the second terminal device.

### Claim 18

A non-transitory computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program, when executed by a processor, enables a first terminal device to perform operations comprising:
establishing 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 identity authentication on a third terminal device through NFC 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 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.
