# US 2026/0095759 A1 · Non-access stratum message processing method and apparatus

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

- Number: US 2026/0095759 A1
- Document ID: US20260095759A1
- Status: Published application
- Kind: A1
- Application number: 19/411,749
- Filed: 2025-12-08
- Published: 2026-04-02
- Earliest claimed: 2023-06-14
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Jun Wang; Weijun Xing; Yan Xi; Wenhui Wang; Chenghui Peng; Shaoyun Wu
- Web page: https://patentgrep.com/patent/US20260095759A1

## CPC

- H04W 12/041: Key generation or derivation
- H04W 12/04: Key management, e.g. using generic bootstrapping architecture [GBA]
- H04W: WIRELESS COMMUNICATION NETWORKS (broadcast communication H04H; communication systems using wireless links for non-selective communication, e.g. wireless extensions H04M1/72)

## Abstract

A non-access stratum (NAS) message processing method and apparatus. The method includes: a terminal device generates a plurality of NAS keys, where at least two of the plurality of NAS keys are respectively associated with different NFs, and the plurality of NAS keys include a first NAS key for a first NF. The first NF generates a first NAS key, where the first NF is a non-anchor function. The terminal device processes a NAS message between the terminal device and the first NF based on the first NAS key generated by the terminal device. The first NF processes a NAS message between the first NF and the terminal device based on the first NAS key generated by the first NF.

## Claims

### Claim 1

A method, comprising:
generating, by a terminal device, a plurality of non-access stratum (NAS) keys, wherein at least two of the plurality of NAS keys are respectively associated with different network functions (NFs) in a plurality of NFs; and
processing, by the terminal device, a NAS message for communication with the plurality of NFs based on the plurality of NAS keys.

### Claim 2 (depends on 1)

The method according to claim 1, wherein generating, by the terminal device, the plurality of NAS keys comprises:
generating, by the terminal device, a first NAS key based on a type parameter of a first NF and/or an identifier of the first NF, an identifier of a security algorithm selected by the first NF, and a NAS count of the first NF, wherein the first NF is one of the plurality of NFs, and the first NAS key is one of the plurality of NAS keys.

### Claim 3 (depends on 1)

The method according to claim 1, wherein generating, by the terminal device, the plurality of NAS keys comprises:
generating, by the terminal device, a first NAS key based on a type parameter of a first NF and/or an identifier of the first NF, an identifier of a security algorithm selected by the first NF, a NAS count of the first NF, and a packet data unit (PDU) session identifier, wherein the first NF is one of the plurality of NFs, and the first NAS key is one of the plurality of NAS keys.

### Claim 4 (depends on 1)

The method according to claim 1, wherein generating, by the terminal device, the plurality of NAS keys comprises:
generating, by the terminal device, a first NAS key based on an identifier of a security algorithm selected by a first NF, a NAS count of the first NF, and a PDU session identifier, wherein the first NF is one of the plurality of NFs, and the first NAS key is one of the plurality of NAS keys.

### Claim 5 (depends on 2)

The method according to claim 2, wherein
the NAS count of the first NF starts from 0; or
the NAS count of the first NF starts from an initial NAS count of an anchor function.

### Claim 6 (depends on 1)

The method according to claim 1, wherein generating, by the terminal device, the plurality of NAS keys comprises:
generating, by the terminal device, the plurality of NAS keys based on a NAS root key.

### Claim 7 (depends on 1)

The method according to claim 1, further comprising:
activating, by the terminal device, the first NAS key when creating a NAS entity corresponding to the first NF; or
receiving, by the terminal device, a first message, and activating the first NAS key based on the first message, wherein
the first NF is one of the plurality of NFs, and the first NAS key is one of the plurality of NAS keys.

### Claim 8 (depends on 1)

The method according to claim 1, further comprising:
deactivating, by the terminal device, the first NAS key when suspending or deleting the NAS entity corresponding to the first NF; or
receiving, by the terminal device, a second message, and deactivating the first NAS key based on the second message, wherein
the first NF is one of the plurality of NFs, and the first NAS key is one of the plurality of NAS keys.

### Claim 9 (depends on 1)

The method according to claim 1, further comprising:
storing, by the terminal device, a security context of the first NF when transitioning from a connected state to an idle state or an inactive state, wherein the security context of the first NF comprises the identifier of the security algorithm selected by the first NF and the NAS count of the first NF; and
generating, by the terminal device, the first NAS key based on the security context of the first NF when transitioning from the idle state or the inactive state to the connected state, wherein
the first NF is one of the plurality of NFs, and the first NAS key is one of the plurality of NAS keys.

### Claim 10 (depends on 1)

The method according to claim 1, further comprising:
skipping storing, by the terminal device, a security context of the first NF when transitioning from a connected state to an idle state or an inactive state; and
when transitioning from the idle state or the inactive state to the connected state, obtaining, by the terminal device, the security context of the first NF from a second NF, and generating the first NAS key based on the security context of the first NF, wherein
the first NF is one of the plurality of NFs, and the first NAS key is one of the plurality of NAS keys.

### Claim 11 (depends on 1)

The method according to claim 1, further comprising:
skipping storing, by the terminal device, the NAS count of the first NF when transitioning from a connected state to an idle state or an inactive state; and
generating, by the terminal device, the first NAS key when transitioning from the idle state or the inactive state to the connected state, wherein
the NAS count corresponding to the first NF starts from 0, or the NAS count corresponding to the first NF starts from the initial NAS count of the anchor function; and
the first NF is one of the plurality of NFs, and the first NAS key is one of the plurality of NAS keys.

### Claim 12 (depends on 1)

The method according to claim 1, further comprising:
receiving, by the terminal device, a third message from the first NF, and updating the first NAS key based on the third message, wherein the first NF is one of the plurality of NFs, and the first NAS key is one of the plurality of NAS keys; or
receiving, by the terminal device, a fourth message from the anchor function, and updating the plurality of NAS keys based on the fourth message.

### Claim 13

A communication apparatus, comprising a processor, wherein the processor is configured to, when executing programming instructions, enable the communication apparatus to:
generate, by a terminal device, a plurality of non-access stratum (NAS) keys, wherein at least two of the plurality of NAS keys are respectively associated with different network functions (NFs) in a plurality of NFs; and
process, by the terminal device, a NAS message for communication with the plurality of NFs based on the plurality of NAS keys.

### Claim 14 (depends on 13)

The apparatus according to claim 13, wherein generating, by the terminal device, the plurality of NAS keys comprises:
generating, by the terminal device, a first NAS key based on a type parameter of a first NF and/or an identifier of the first NF, an identifier of a security algorithm selected by the first NF, and a NAS count of the first NF, wherein the first NF is one of the plurality of NFs, and the first NAS key is one of the plurality of NAS keys.

### Claim 15 (depends on 13)

The apparatus according to claim 13, wherein generating, by the terminal device, the plurality of NAS keys comprises:
generating, by the terminal device, a first NAS key based on a type parameter of a first NF and/or an identifier of the first NF, an identifier of a security algorithm selected by the first NF, a NAS count of the first NF, and a PDU session identifier, wherein the first NF is one of the plurality of NFs, and the first NAS key is one of the plurality of NAS keys.

### Claim 16 (depends on 13)

The apparatus according to claim 13, wherein generating, by the terminal device, the plurality of NAS keys comprises:
generating, by the terminal device, a first NAS key based on an identifier of a security algorithm selected by a first NF, a NAS count of the first NF, and a PDU session identifier, wherein the first NF is one of the plurality of NFs, and the first NAS key is one of the plurality of NAS keys.

### Claim 17 (depends on 14)

The apparatus according to claim 14, wherein
the NAS count of the first NF starts from 0; or
the NAS count of the first NF starts from an initial NAS count of an anchor function.

### Claim 18 (depends on 13)

The apparatus according to claim 13, wherein generating, by the terminal device, the plurality of NAS keys comprises:
generating, by the terminal device, the plurality of NAS keys based on a NAS root key.

### Claim 19 (depends on 13)

The apparatus according to claim 13, wherein the processor further enables the apparatus to:
activate, by the terminal device, the first NAS key when creating a NAS entity corresponding to the first NF; or
receive, by the terminal device, a first message, and activate the first NAS key based on the first message, wherein
the first NF is one of the plurality of NFs, and the first NAS key is one of the plurality of NAS keys.

### Claim 20

A non-transitory computer-readable storage medium, comprising a computer program or instructions, wherein when the computer program or the instructions are run on a computer, the computer is enabled to perform-: generating, by a terminal device, a plurality of non-access stratum (NAS) keys, wherein at least two of the plurality of NAS keys are respectively associated with different network functions (NFs) in a plurality of NFs; and
processing, by the terminal device, a NAS message for communication with the plurality of NFs based on the plurality of NAS keys.
