IP Library Granted Patent US 12,432,185
Granted Patent B2
US 12,432,185 · App. 17/840,806 · Granted Sep 30, 2025

Secure communications method and apparatus

Inventors: Yong Li (Darmstadt, DE); Feng Geng (Suzhou, CN); Li Duan (Darmstadt, DE); Pingping Yi (Beijing, CN); Min Li (Nanjing, CN)
Assignee: SHENZHEN YINWANG INTELLIGENT TECHNOLOGIES CO., LTD.
H04L63/0428H04L9/085H04L9/0861H04L9/30
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,432,185
App. No.
17/840,806
Granted
Sep 30, 2025
Kind
B2
Abstract

A secure communications method includes: receiving, by a first network device, a second ephemeral public key of a second network device; determining, by the first network device, an ephemeral session key based on a first shared key, a first ephemeral secret key of the first network device, and the second ephemeral public key, where the first shared key is shared between the first network device and the second network device; and performing, by the first network device, secure communication with the second network device based on the ephemeral session key.

Claims (40)

1. A method implemented by a first network device, wherein the method comprises:

receiving a second ephemeral public key of a second network device;

determining an ephemeral session key based on a shared key between the first network device and the second network device, an ephemeral secret key of the first network device, and the second ephemeral public key, wherein the shared key is preconfigured between the first network device and the second network device;

obtaining, based on the ephemeral secret key, a first ephemeral public key;

obtaining first verification information based on the first ephemeral public key, the shared key, and a key derivation function (KDF) algorithm, wherein the KDF algorithm comprises a keyed-hash MAC (HMAC) algorithm or a Hash-based Key Derivation Function (HKDF);

performing, based on the ephemeral session key, a secure communication with the second network device; and

sending, to the second network device and using the secure communication, a first message carrying the first ephemeral public key, the first verification information, and a first timestamp identifying a time at which the first network device has sent the first message.

2. The method of claim 1 , further comprising further obtaining, based on a public key cryptographic algorithm, the first ephemeral public key, wherein the public key cryptographic algorithm is pre-configured in the first network device and the second network device.

3. The method of claim 1 , wherein the first verification information verifies whether the first message is complete, and wherein the first message further carries first identification information indicating that the first network device has sent the first message.

4. The method of claim 1 , further comprising generating a message authentication code (MAC) by applying a message authentication algorithm to the first verification information, wherein the first message further carries the MAC.

5. The method of claim 1 , further comprising receiving, from the second network device, a second message carrying the second ephemeral public key.

6. The method of claim 5 , wherein the second message further carries either second verification information verifying whether the second message is complete or second identification information indicating that the second network device has sent the second message.

7. The method of claim 5 , wherein determining the ephemeral session key comprises encrypting, using a preset key derivation function, the shared key, the ephemeral secret key, the second ephemeral public key, first information carried in the first message, and second information carried in the second message, to generate the ephemeral session key, wherein the preset key derivation function is configured in the first network device and the second network device.

8. A first network device comprising:

a non-transitory computer-readable storage medium configured to store instructions; and

a processor coupled to the non-transitory computer-readable storage medium, wherein the instructions cause the processor to be configured to:

receive a second ephemeral public key of a second network device; and

determine an ephemeral session key based on a shared key between the first network device and the second network device, an ephemeral secret key of the first network device, and the second ephemeral public key, wherein the shared key is preconfigured between the first network device and the second network device;

obtain, based on the ephemeral secret key, a first ephemeral public key;

obtain first verification information based on the first ephemeral public key, the shared key, and a key derivation function (KDF) algorithm, wherein the KDF algorithm comprises a keyed-hash MAC (HMAC) algorithm or a Hash-based Key Derivation Function (HKDF);

perform, based on the ephemeral session key, a secure communication with the second network device; and

send, to the second network device and using the secure communication, a first message carrying the first ephemeral public key, the first verification information, and a first timestamp identifying a time at which the first network device has sent the first message.

9. The first network device of claim 8 , wherein the instructions further cause the processor to be configured to further obtain, based on a public key cryptographic algorithm, the first ephemeral public key, wherein the public key pre-cryptographic algorithm is configured in the first network device and the second network device.

10. The first network device of claim 8 , wherein the first verification information verifies whether the first message is complete, and wherein the first message further carries first identification information indicating that the first network device has sent the first message.

11. The first network device of claim 10 , wherein the instructions further cause the processor to be configured to further generate a message authentication code (MAC) by applying a message authentication algorithm to the first verification information, and wherein the first message further carries the MAC.

12. The first network device of claim 8 , wherein the programming instructions further cause the processor to receive, from the second network device, a second message carrying the second ephemeral public key.

13. The first network device of claim 12 , wherein the second message further carries second verification information verifying whether the second message is complete or second identification information indicating that the second network device has sent the second message.

14. The first network device of claim 12 , wherein the programming instructions further cause the processor to be configured to encrypt, using a preset key derivation function, the shared key, the ephemeral secret key, the second ephemeral public key, first information carried in the first message, and second information carried in the second message, to generate the ephemeral session key, and wherein the preset key derivation function is configured in the first network device and the second network device.

15. A computer program product comprising computer-executable instructions that are stored on a non-transitory computer-readable storage medium and that, when executed by a processor, cause a first network device to:

receive a second ephemeral public key of a second network device;

determine an ephemeral session key based on a shared key between the first network device and the second network device, an ephemeral secret key of the first network device, and the second ephemeral public key, wherein the shared key is preconfigured between the first network device and the second network device;

obtain, based on the ephemeral secret key, a first ephemeral public key;

obtain first verification information based on the first ephemeral public key, the shared key, and a key derivation function (KDF) algorithm, wherein the KDF algorithm comprises a keyed-hash MAC (HMAC) algorithm or a Hash-based Key Derivation Function (HKDF);

perform, based on the ephemeral session key, a secure communication with the second network device; and

send, to the second network device and using the secure communication, a first message carrying the first ephemeral public key, the first verification information, and a first timestamp identifying a time at which the first network device has sent the first message.

16. The computer program product of claim 15 , wherein the computer-executable instructions further cause the first network device to further obtain, based on a public key cryptographic algorithm, the first ephemeral public key, wherein the public key cryptographic algorithm is pre-configured in the first network device and the second network device.

17. The computer program product of claim 15 , wherein the first verification information verifies whether the first message is complete, and wherein the first message further carries first identification information indicating that the first network device has sent the first message.

18. The computer program product of claim 15 , wherein the computer-executable instructions further cause the first network device to receive, from the second network device, a second message carrying the second ephemeral public key.

19. The computer program product of claim 18 , wherein the second message further carries second verification information verifying whether the second message is complete or second identification information indicating that the second network device has sent the second message.

20. The computer program product of claim 18 , wherein the computer-executable instructions further cause the first network device to encrypt, using a preset key derivation function, the shared key, the ephemeral secret key, the second ephemeral public key, first information carried in the first message, and second information carried in the second message, to generate the ephemeral session key, and wherein the preset key derivation function is configured in the first network device and the second network device.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Nov 12, 2024
From: HUAWEI TECHNOLOGIES CO., LTD.
To: SHENZHEN YINWANG INTELLIGENT TECHNOLOGIES CO., LTD.
Reel/Frame 069336/0082 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Oct 28, 2024
From: LI, YONG; GENG, FENG; DUAN, LI; YI, PINGPING; LI, MIN
To: HUAWEI TECHNOLOGIES CO., LTD.
Reel/Frame 069039/0556 →