IP Library Granted Patent US 12,568,359
Granted Patent B2
US 12,568,359 · App. 18/342,497 · Granted Mar 3, 2026

Data transmission method and apparatus

Inventors: Kai Pan (Shanghai, CN); Jing Chen (Shanghai, CN)
Assignee: Shenzhen Yinwang Intelligent Technologies Co., Ltd.
H04W12/041H04W12/03H04W12/12
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,568,359
App. No.
18/342,497
Granted
Mar 3, 2026
Kind
B2
Abstract

A data transmission method and apparatus are provided. When the data transmission method is applied to a first device, the method includes: when a fresh value corresponding to a message to be sent by the first device is a first fresh value, updating an encryption key from a first key to a second key, and generating a first keystream based on the first fresh value and the second key; encrypting first data based on the first keystream, to obtain the encrypted first data; generating a first message based on the encrypted first data and the first fresh value; and sending the first message to a second device.

Claims (53)

1 . A data transmission apparatus applied to a first device, comprising at least one processor and at least one memory, wherein the at least one memory stores program instructions, and the at least one processor is coupled to the at least one memory to execute the instructions to:

update an encryption key from a first key to a second key, and generate a first keystream based on a first fresh value and the second key, based on a fresh value corresponding to a message to be sent by the first device being the first fresh value;

encrypt first data based on the first keystream, to obtain the encrypted first data;

generate a first message based on the encrypted first data and the first fresh value;

send the first message to a second device;

receive a third message sent by the second device, wherein the third message comprises indication information indicating that the second device updated the encryption key to the second key; and

update, based on the third message, a decryption key from a decryption key corresponding to the first key to a decryption key corresponding to the second key.

2 . The apparatus according to claim 1 , wherein the at least one processor coupled to the at least one memory further executes the instructions to:

delete the first key based on the third message.

3 . The apparatus according to claim 1 , wherein the third message comprises encrypted third data, a fresh value of the third message, and a first identifier, and wherein the indication information is the first identifier.

4 . The apparatus according to claim 1 , wherein the third message comprises encrypted third data and a fresh value of the third message, and the indication information is the fresh value of the third message that meets a specific condition.

5 . The apparatus according to claim 4 , wherein the specific condition comprises:

there is a preset value between the fresh value of the third message and a fresh value of a message that is last received by the first device from the second device.

6 . The apparatus according to claim 1 , wherein the third message comprises third data encrypted according to the second key and a freshness value of the third message, and that the third data is encrypted according to the second key indicates the second device updated the encryption key to the second key.

7 . The apparatus according to claim 1 , wherein the at least one processor coupled to the at least one memory further executes the instructions to:

set a switching identifier to a valid state;

update, based on the third message and a fact that the switching identifier is the valid state, the decryption key from the decryption key corresponding to the first key to the decryption key corresponding to the second key; and

set the switching identifier to an invalid state.

8 . The apparatus according to claim 1 , wherein the at least one processor coupled to the at least one memory further executes the instructions to:

start a timer; and

update a decryption key from a decryption key corresponding to the first key to a decryption key corresponding to the second key in response to an expiration of the timer.

9 . The apparatus according to claim 8 , wherein the at least one processor coupled to the at least one memory further executes the instructions to:

delete the first key in response to the expiration of the timer.

10 . The apparatus according to claim 8 , wherein the at least one processor coupled to the at least one memory further executes the instructions to:

decrypt, by using the decryption key corresponding to the first key, a message sent from the second device to the first device, in response to the timer having not expired.

11 . The apparatus according to claim 10 , wherein the at least one processor coupled to the at least one memory further executes the instructions to:

decrypt, by using the decryption key corresponding to the second key, the message sent from the second device to the first device, in response to the timer having not expired, based on the message sent from the second device to the first device not being successfully decrypted by using the decryption key corresponding to the first key.

12 . The apparatus according to claim 1 , wherein the at least one processor coupled to the at least one memory further executes the instructions to:

receive a fourth message sent by the second device;

update the encryption key from the second key to a third key based on the fourth message comprising a second fresh value;

generate a second keystream based on the third key and a fresh value of a fifth message that is to be sent by the second device and that carries second data;

encrypt the second data based on the second keystream, to obtain the encrypted second data;

generate the fifth message based on the encrypted second data and the fresh value of the fifth message; and

send the fifth message to the second device.

13 . The apparatus according to claim 12 , wherein the at least one processor coupled to the at least one memory further executes the instructions to:

decrypt, based on the fourth message comprising the second fresh value, the fourth message by using a decryption key that matches the third key.

14 . A data transmission apparatus applied to a second device, comprising at least one processor and at least one memory, wherein the at least one memory stores program instructions, and the at least one processor is coupled to the at least one memory to execute the instructions to:

receive a first message from a first device, wherein the first message comprises encrypted first data and a fresh value of the first message;

update, based on the fresh value of the first message being a first fresh value, a decryption key from a decryption key corresponding to a first key to a decryption key corresponding to a second key;

decrypt the first message based on the first fresh value and the decryption key corresponding to the second key, to obtain the first data;

update an encryption key from the first key to the second key based on the fresh value of the first message being the first fresh value; and

send a third message to the first device, wherein the third message comprises third data encrypted by using the second key.

15 . The apparatus according to claim 14 , wherein

the third message further comprises indication information indicating that the second device updated the encryption key to the second key.

16 . The apparatus according to claim 15 , wherein

the third message further comprises a first identifier, and the indication information is the first identifier.

17 . The apparatus according to claim 15 , wherein

the third message further comprises a fresh value of the third message, and the indication information is the fresh value of the third message that meets a specific condition.

18 . The apparatus according to claim 17 , wherein the specific condition comprises:

there is a preset value between the fresh value of the third message and a fresh value of a message that is last sent from the second device to the first device.

19 . The apparatus according to claim 14 , wherein the third message further comprises a freshness value of the third message, and that the third data is encrypted by using the second key indicates the second device updated the encryption key to the second key.

20 . The apparatus according to claim 14 , wherein the at least one processor coupled to the at least one memory further executes the instructions to:

based on the third message, delete the first key.

Assignments (4)
CHANGE OF NAME Recorded May 1, 2026
From: SHENZHEN YINWANG INTELLIGENT TECHNOLOGIES CO., LTD.
To: YINWANG INTELLIGENT TECHNOLOGIES CO., LTD.
Reel/Frame 075316/0074 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 9, 2025
From: CHEN, JING
To: HUAWEI TECHNOLOGIES CO., LTD.
Reel/Frame 070790/0720 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Nov 12, 2024
From: HUAWEI TECHNOLOGIES CO., LTD.
To: SHENZHEN YINWANG INTELLIGENT TECHNOLOGIES CO., LTD.
Reel/Frame 069336/0125 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Nov 28, 2023
From: PAN, KAI
To: HUAWEI TECHNOLOGIES CO., LTD.
Reel/Frame 065688/0180 →
Continuity (2)
Continuation PCTCN2020140012 · Dec 28, 2020
Related Publication 20230345239A1 · Oct 26, 2023
References Cited (33)
US 9769664B1 · Kavaler · 2017 [cited by applicant]
US 20050066175A1 · Perlman · 2005 [cited by examiner]
US 20070297610A1 · Chen · 2007 [cited by examiner]
US 20100054463A1 · Tsan · 2010 [cited by examiner]
US 20140270163A1 · Merchan et al. · 2014 [cited by applicant]
US 20170171178A1 · Reynders · 2017 [cited by applicant]
US 20170195875A1 · Miklós et al. · 2017 [cited by applicant]
US 20170302452A1 · Nanjundappa · 2017 [cited by applicant]
US 20180332471A1 · Zhu · 2018 [cited by examiner]
US 20190118767A1 · Britt · 2019 [cited by applicant]
US 20200005570A1 · Troia et al. · 2020 [cited by applicant]
US 20200213287A1 · Zhang et al. · 2020 [cited by applicant]
US 20200313873A1 · Mondello et al. · 2020 [cited by applicant]
US 20200369242A1 · Komedani · 2020 [cited by applicant]
US 20210119981A1 · Coppola · 2021 [cited by examiner]
US 20220131839A1 · Potter · 2022 [cited by examiner]
CN 109729056A · 2019 [cited by applicant]
CN 109936444A · 2019 [cited by applicant]
CN 110933110A · 2020 [cited by applicant]
CN 111629359A · 2020 [cited by applicant]
CN 111698086A · 2020 [cited by applicant]
CN 111740835A · 2020 [cited by applicant]
JP 2016100632A · 2016 [cited by applicant]
JP 2017038143A · 2017 [cited by applicant]
KR 101882694B1 · 2018 [cited by applicant]
WO 2012104978A1 · 2012 [cited by applicant]
WO 2020201010A1 · 2020 [cited by applicant]
Amendments received before examination dated Jun. 18, 2024 for EP 20967247 (Year: 2024). [cited by examiner]
Amended claims filed after receipt of (European) search report dated Jun. 18, 2024 for EP 20967247 (Year: 2024). [cited by examiner]
Supplementary European search report dated Dec. 22, 2023 for EP 20967247 (Year: 2023). [cited by examiner]
European search opinion dated Dec. 22, 2023 for EP 20967247 (Year: 2023). [cited by examiner]
UO “Research and Implementation of Defense Technology for In-vehicle Network of Connected Vehicle,” A Master Thesis Submitted to University of Electronic Science and Technology of China, Total 94 pages (2020). With an E… [cited by applicant]
Ericsson et al., “Use of FRESH in the enhanced UTRAN key hierarchy,” 3GPP TSG SA WG3 Security—S3#59, S3-100496, Total 2 pages, 3rd Generation Partnership Project, Valbonne, France (Apr. 26-30, 2010). [cited by applicant]