Authorization verification method and device
By generating token information of multiple cryptographic algorithm types in network storage function network elements, the problem of inconsistent algorithm types supported by network elements in the network is solved, and the stability of token verification and the overall reliability of the network are improved.
Patent Information
- Application Number
- CN202310319842.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-22
- Publication Date
- 2024-09-24
AI Technical Summary
In the existing technology, inconsistent cryptographic algorithm types supported by network elements in the network cause token verification to fail and reduce network stability.
By including tokens of multiple cryptographic algorithm types in the token information generated by the network storage function network element, the token information is generated according to the cryptographic algorithm type supported by each network element, ensuring that the same token is used for token verification as when generating the token. Algorithm type to avoid verification failure.
It effectively avoids verification failures caused by inconsistent password algorithm types and improves the stability and reliability of the network.
Smart Images

Figure CN118694531A
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to an authorization verification method and device. Background Art
[0002] In the core network, the network storage function network element is the authorization server, the network function service consumption network element is the service client, and the network function service providing network element is the resource server. There are three processes for service access authorization, which are: process one, the network function service providing network element registers with the network storage function network element; process two, the network function service consumption network element requests a token from the network storage function network element, and the network storage function network element generates a token, which contains a digital signature generated based on a cryptographic algorithm. The digital signature is usually used to protect the integrity of the token. The network storage function network element sends the generated token to the network function service consumption network element; process three, the network function service consumption network element sends a service request to the network function service providing network element, carrying the token obtained from the network storage function network element, and then the network function service providing network element verifies the integrity of the token through the digital signature in the token. When verifying the integrity of the token, it is necessary to use the same type of cryptographic algorithm as the cryptographic algorithm used to generate the token for verification.
[0003] However, with the evolution of cryptographic algorithms, new types of cryptographic algorithms will continue to emerge, and there may be network elements in the network that do not support new types of cryptographic algorithms. For example, for a new type of cryptographic algorithm, some network elements in the network do not support the new type of cryptographic algorithm, while some network elements support the new type of cryptographic algorithm, which may cause the token verification to fail. For example, the network storage function network element supports the new type of cryptographic algorithm, so the digital signature in the generated token is generated using the new type of cryptographic algorithm. When the token is verified for integrity, the network function service provider network element does not support the new type of cryptographic algorithm, which will cause verification failure and reduce the stability of the network. Summary of the invention
[0004] The present application provides an authorization verification method and device, which can avoid the verification failure problem caused by inconsistent cryptographic algorithm types supported by various network elements in the network and improve the stability of the network.
[0005] In a first aspect, an embodiment of the present application provides an authorization verification method, wherein the method can be performed by a first network storage function network element, or can be performed by a component of the first network storage function network element (such as a processor, a chip, or a chip system, etc.). The authorization verification method may include:
[0006] The first network storage function network element receives a token request, where the token request is used to request a token of at least one network function service providing network element;
[0007] The first network storage function network element generates token information according to the security capability of the network function service providing network element and the security capability of the first network storage function network element, the token information includes at least one of a first token or a second token, the first token is generated based on a first type of cryptographic algorithm, the second token is generated based on a second type of cryptographic algorithm, and the security capability is used to indicate a type of cryptographic algorithm supported by the corresponding network element;
[0008] The first network storage function network element sends a response message, and the response message includes the token information.
[0009] By implementing the method described in the first aspect, the network storage function network element will generate token information based on the security capabilities of the network storage function network element and the security capabilities of the requested network function service provider network element. The security capabilities indicate the types of cryptographic algorithms supported by the corresponding network elements. In other words, the generated token information refers to the types of cryptographic algorithms supported by the network elements in the network. Therefore, it can avoid verification failures caused by inconsistent types of cryptographic algorithms supported by various network elements in the network, thereby improving network stability.
[0010] In a possible implementation, the first type of cryptographic algorithm is a non-post-quantum cryptographic algorithm, and the second type of cryptographic algorithm is a post-quantum cryptographic algorithm.
[0011] In a possible implementation manner, the first network storage function network element receiving the token request includes:
[0012] The first network storage function network element receives a token request from a service communication agent.
[0013] By implementing this method, the token request can come from the service communication agent. In other words, the token request can be initiated by the service communication agent, which can satisfy the service communication agent's token acquisition in the scenario where the proxy network function service consumption network element initiates the token request.
[0014] In a possible implementation, the number of the network function service providing network elements is at least one; the first network storage function network element supports the second type of cryptographic algorithm, and the network function service providing network elements all support the second type of cryptographic algorithm, then the token information includes a token and the token is the second token; or
[0015] The first network storage function network element supports the second type of cryptographic algorithm, and some of the network function service providing network elements support the second type of cryptographic algorithm, then the token information includes the first token and the second token; or
[0016] The first network storage function network element does not support the second type of cryptographic algorithm; and / or the network function service providing network elements do not support the second type of cryptographic algorithm, then the token information includes a token and the token is the first token;
[0017] Among them, the first network storage function network element and the network function service providing network element both support the first type of cryptographic algorithm.
[0018] By implementing this method, the first network storage function network element can determine whether the generated token information includes one token or two tokens and the cryptographic algorithm type corresponding to the token based on the cryptographic algorithm types supported by each network element, thereby avoiding verification failures caused by inconsistent cryptographic algorithm types supported by each network element in the network and improving network stability.
[0019] In a possible implementation manner, the first network storage function network element receiving the token request includes:
[0020] The first network storage function network element receives a token request from a network function service consumption network element;
[0021] The first network storage function network element generates token information according to the security capability of the network function service providing network element and the security capability of the first network storage function network element, including:
[0022] The first network storage function network element generates token information according to the security capability of the network function service providing network element, the security capability of the network function service consuming network element and the security capability of the first network storage function network element.
[0023] By implementing this method, the token request may come from a network function service consuming network element, that is, the token request is initiated by the network function service consuming network element. When the token request is initiated by the network function service consuming network element, token information may be generated based on the security capabilities of the network function service providing network element, the security capabilities of the network function consuming network element, and the security capabilities of the first network storage function network element, thereby satisfying the acquisition of token information in the scenario where the token request is initiated by the network function service consuming network element.
[0024] In a possible implementation, the network function service consumption network element supports the second type of cryptographic algorithm, the first network storage function network element supports the second type of cryptographic algorithm, and the network function service providing network elements all support the second type of cryptographic algorithm, then the token information includes a token and the token is the second token; or
[0025] The network function service consumption network element supports the second type of cryptographic algorithm, the first network storage function network element supports the second type of cryptographic algorithm, and some of the network function service providing network elements support the second type of cryptographic algorithm, then the token information includes the first token and the second token; or
[0026] The network function service consumption network element does not support the second type of cryptographic algorithm, and / or the first network storage function network element does not support the second type of cryptographic algorithm; and / or the network function service providing network elements do not support the second type of cryptographic algorithm, then the token information includes a token and the token is the first token;
[0027] Among them, the network function service providing network element, the network function service consuming network element, and the first network storage function network element all support the first type of cryptographic algorithm.
[0028] By implementing this method, the first network storage function network element can determine, in a scenario where a network function service consumption network element initiates a token request, whether the generated token information includes one token or two tokens and the cryptographic algorithm type corresponding to the token based on the cryptographic algorithm types supported by each network element, thereby avoiding verification failures caused by inconsistent cryptographic algorithm types supported by each network element in the network and improving network stability.
[0029] In a possible implementation manner, the first network storage function network element obtains the security capability of the network function service providing network element through a first registration request of the network function service providing network element, and the first registration request includes the security capability of the network function service providing network element; or,
[0030] The first network storage function network element obtains the security capability of the network function service providing network element through a transport layer security protocol between the first network storage function network element and the network function service providing network element; or,
[0031] The first network storage function network element obtains the security capability of the network function service providing network element according to local configuration information, and the local configuration information includes the security capability of the network function service providing network element.
[0032] By implementing this method, the first network storage function network element can obtain the security capabilities of the network function service providing network element, thereby facilitating the decision-making of the generated token information including one token or two tokens, and the cryptographic algorithm type corresponding to the token, avoiding verification failures caused by inconsistent cryptographic algorithm types supported by various network elements in the network, and improving network stability.
[0033] In a possible implementation, the method further includes:
[0034] The first network storage function network element obtains the security capability of the network function service consumption network element through a second registration request of the network function service consumption network element, wherein the second registration request includes the security capability of the network function service consumption network element; or
[0035] The first network storage function network element obtains the security capability of the network function service consumption network element through a transport layer security protocol between the first network storage function network element and the network function service consumption network element; or,
[0036] The first network storage function network element obtains the security capability of the network function service consumption network element according to local configuration information, wherein the local configuration information includes the security capability of the network function service consumption network element; or
[0037] The first network storage function network element obtains the security capability of the network function service consumption network element according to the token request, and the token request includes the security capability of the network function service consumption network element; or
[0038] The first network storage function network element obtains the security capability of the network function service consumption network element according to the declaration information sent by the network function service consumption network element.
[0039] By implementing this method, the first network storage function network element can obtain the security capabilities of the network function service consumption network element, thereby facilitating the decision-making of the generated token information including one token or two tokens, and the cryptographic algorithm type corresponding to the token, avoiding verification failures caused by inconsistent cryptographic algorithm types supported by various network elements in the network, and improving network stability.
[0040] In a possible implementation manner, the first network storage function network element is a network storage function network element of a home network of the network function service consumption network element;
[0041] The first network storage function network element receives a token request from a network function service consumption network element, including:
[0042] The first network storage function network element receives a token request from a network function service consumption network element through a second network storage function network element, where the second network storage function network element is a network storage function network element of a network accessed by the network function service consumption network element;
[0043] The first network storage function network element generates token information according to the security capability of the network function service providing network element, the security capability of the network function service consuming network element and the security capability of the first network storage function network element, including:
[0044] The network storage function network element generates token information according to the security capabilities of the network function service providing network element, the security capabilities of the network function service consuming network element, the security capabilities of the first network storage function network element and the security capabilities of the second network storage function network element.
[0045] By implementing this method, in a roaming scenario, the first network storage function network element can generate token information based on the security capabilities of the network function service providing network element, the security capabilities of the network function service consuming network element, the security capabilities of the first network storage function network element, and the security capabilities of the second network storage function network element, thereby avoiding verification failure problems caused by inconsistent cryptographic algorithm types supported by various network elements in the network in roaming scenarios and improving network stability.
[0046] In a possible implementation, the number of the network function service providing network elements includes at least one, the network function service consuming network element supports the second type of cryptographic algorithm, the first network storage function network element supports the second type of cryptographic algorithm, the second network storage function network element supports the second type of cryptographic algorithm, and the network function service providing network elements all support the second type of cryptographic algorithm, then the token information includes the second token; or
[0047] The network function service consumption network element supports the second type of cryptographic algorithm, the first network storage function network element supports the second type of cryptographic algorithm, the second network storage function network element supports the second type of cryptographic algorithm, and some of the network function service providing network elements support the second type of cryptographic algorithm, then the token information includes the first token and the second token; or
[0048] The network function service consumption network element does not support the second type of cryptographic algorithm; and / or, the first network storage function network element does not support the second type of cryptographic algorithm; and / or, the network function service providing network elements do not support the second type of cryptographic algorithm; and / or, the second network storage function network element does not support the second type of cryptographic algorithm, then the token information includes the first token;
[0049] Among them, the network function service providing network element, the network function service consuming network element, the first network storage function network element, and the second network storage function network element all support the first type of cryptographic algorithm.
[0050] By implementing this method, in a roaming scenario, the token information generated can include one token or two tokens, as well as the cryptographic algorithm type corresponding to the token, thereby avoiding verification failures caused by inconsistent cryptographic algorithm types supported by various network elements in the network and improving network stability.
[0051] In a possible implementation manner, the first network storage function network element receives a token request from a network function service consumption network element, including:
[0052] The first network storage function network element receives a token request from a network function service consumption network element through a service communication agent, wherein the token request includes a first statement, and the first statement is used by the first network storage function network element to authenticate the identity of the network function service consumption network element;
[0053] The first network storage function network element generates token information according to the security capability of the network function service providing network element, the security capability of the network function service consuming network element and the security capability of the first network storage function network element, including:
[0054] When the network storage function network element verifies the first declaration successfully, the network storage function network element generates the token information according to the security capabilities of the network function service providing network element, the security capabilities of the network function service consuming network element and the security capabilities of the first network storage function network element.
[0055] In implementing this method, the first network storage function network element may receive a token request from the network function service consumption network element through a service communication agent. In this scenario, since no TLS connection is established between the first network storage function network element and the network function service consumption network element, mutual authentication is not performed at the transport layer. Therefore, in this implementation, the first network storage function network element may authenticate the network function service consumption network element through a first declaration.
[0056] In a second aspect, an embodiment of the present application provides an authorization verification method, wherein the method can be performed by a first network element, or by a component of the first network element (such as a processor, a chip, or a chip system, etc.). The authorization verification method may include:
[0057] The first network element determines a first statement according to the security capability of the first network function service providing network element, where the first statement is generated based on the first type of cryptographic algorithm or the second type of cryptographic algorithm, the security capability is used to indicate the type of cryptographic algorithm supported by the corresponding network element, and the first statement is used by the first network function service providing network element to perform identity authentication on the first network element;
[0058] The first network element sends a first service request to the first network function service providing network element, where the first service request is used to request the first network function service providing network element to provide a service, where the first service request includes token information and the first statement, where the token information includes at least one of a first token or a second token, where the first token is generated based on the first type of cryptographic algorithm, and where the second token is generated based on the second type of cryptographic algorithm.
[0059] By implementing the method described in the second aspect, the first network element will determine the first statement used for the first network function service providing network element to authenticate the first network element based on the security capability of the first network function service providing network element. The security capability indicates the type of cryptographic algorithm supported by the corresponding network element. In other words, the generated first statement refers to the type of cryptographic algorithm supported by the first network function service providing network element in the network. Therefore, the identity authentication failure problem caused by the inconsistency between the cryptographic algorithm type of the first statement sent and the cryptographic algorithm type supported by the first network function service providing network element can be avoided.
[0060] In a possible implementation manner, the first network element obtains the security capability of the first network function service providing network element from a first network storage function network element; or,
[0061] The first network element obtains the security capability of the first network function service providing network element according to local configuration information, and the local configuration information includes the security capability of the first network function service providing network element.
[0062] By implementing this method, the first network element can obtain the security capabilities of the first network function service providing network element, and thus generate a first statement using the cryptographic algorithm type supported by the first network function service providing network element.
[0063] In a possible implementation, the first network element determines the second statement according to the security capability of the first network storage function network element, where the second statement is generated based on the first type of cryptographic algorithm or the second type of cryptographic algorithm;
[0064] The first network element sends a token request to the first network storage function network element, where the token request is used to request a token of a network function service providing network element, and the token request includes the second statement;
[0065] The first network element receives a response message, where the response message includes the token information.
[0066] By implementing this method, the first network element can generate a second statement for the first network storage function network element to authenticate the first network element based on the security capability of the first network storage function network element. The security capability indicates the type of cryptographic algorithm supported by the corresponding network element. In other words, the generated second statement refers to the type of cryptographic algorithm supported by the first network storage function network element in the network. Therefore, the identity authentication failure caused by the cryptographic algorithm type of the sent second statement being inconsistent with the cryptographic algorithm type supported by the first network storage function network element can be avoided.
[0067] In a possible implementation manner, the first network element obtains the security capability of the first network storage function network element according to local configuration information; or,
[0068] The first network element obtains the security capability of the first network storage function network element through a transport layer security protocol; or,
[0069] The first network element obtains the security capability of the first network storage function network element from the first network storage function network element through a network function service providing network element discovery process.
[0070] By implementing this method, the first network element can obtain the security capability of the first network storage function network element, and thus generate the second statement using the cryptographic algorithm type supported by the first network storage function network element.
[0071] In a possible implementation manner, the first network element is a network function service consuming network element; the first network element determines the first statement according to the security capability of the first network function service providing network element, including:
[0072] The first network element determines a first cryptographic algorithm according to the security capability of the network element provided by the first network function and the security capability of the first network element, where the first cryptographic algorithm is a cryptographic algorithm of the first type or a cryptographic algorithm of the second type;
[0073] The first network element generates the first statement based on the first cryptographic algorithm;
[0074] The first network element sending a first service request to the first network function service providing network element includes:
[0075] The first network element sends the first service request to the first network function service providing network element through a service communication agent.
[0076] When implementing this method, if the first network element is a network function service consuming network element, then the network function service consuming network element shall, when generating the first declaration, determine the first cryptographic algorithm for generating the first declaration based on the security capabilities of the first network function providing network element and the security capabilities of the network function service consuming network element, thereby avoiding the problem of declaration verification failure caused by inconsistent cryptographic algorithm types supported by various network elements in the network, and improving the stability of the network.
[0077] In a possible implementation manner, if the first network element is a network function service consumption network element; the first network element determines the second statement according to the security capability of the first network storage function network element, including:
[0078] The first network element determines a second cryptographic algorithm according to the security capability of the first network storage function network element and the security capability of the first network element, where the second cryptographic algorithm is the cryptographic algorithm of the first type or the cryptographic algorithm of the second type;
[0079] The first network element generates a second statement based on the second cryptographic algorithm;
[0080] The first network element sends a token request to the first network storage function network element, including:
[0081] The first network element sends the token request to the first network storage function network element through the service communication agent, and the token request includes the second statement.
[0082] When implementing this method, if the first network element is a network function service consuming network element, then the network function service consuming network element needs to determine the second cryptographic algorithm for generating the second declaration based on the security capabilities of the first network storage function network element and the security capabilities of the network function service consuming network element when generating the second declaration, thereby avoiding the problem of declaration verification failure caused by inconsistent cryptographic algorithm types supported by various network elements in the network, and improving network stability.
[0083] In a possible implementation manner, the first network element is a service communication agent;
[0084] Before the first network element determines the first statement according to the security capability of the first network function service providing network element, the first network element further includes:
[0085] The first network element receives a second service request from a network function service consuming network element, where the second service request includes declaration information, where the declaration information includes at least one of a first alternative declaration or a second alternative declaration, where the first alternative declaration is generated based on the first type of cryptographic algorithm, and the second alternative declaration is generated based on the second type of cryptographic algorithm;
[0086] The first network element determines a first statement according to the security capability of the first network function service providing network element, including:
[0087] The first network element determines the first statement according to the security capability of the first network function service providing network element and the declaration information, and the first statement is the first alternative statement or the second alternative statement.
[0088] When implementing this method, if the first network element is a service communication agent, the service communication agent determines the first declaration based on the alternative declaration included in the second service request from the network function service consuming network element, and the second service request includes at least one of the first alternative declaration or the second alternative declaration, thereby avoiding the problem of declaration verification failure caused by inconsistent cryptographic algorithm types supported by various network elements in the network, thereby improving the stability of the network.
[0089] In a possible implementation manner, the first network element determines the second statement according to the security capability of the first network storage function network element, including:
[0090] The first network element determines the second statement based on the security capability of the first network storage function network element and the statement information, and the first statement is the first alternative statement or the second alternative statement.
[0091] When implementing this method, if the first network element is a service communication agent, the service communication agent determines the second declaration based on the alternative declaration included in the second service request from the network function service consuming network element and the security capabilities of the first network storage function network element, thereby avoiding the problem of declaration verification failure caused by inconsistent cryptographic algorithm types supported by various network elements in the network and improving network stability.
[0092] In a third aspect, an embodiment of the present application provides an authorization verification method, wherein the method can be performed by a first network element, or by a component of the first network element (such as a processor, a chip, or a chip system, etc.). The authorization verification method may include:
[0093] The first network element determines a second statement according to the security capability of the first network storage function network element, where the second statement is generated based on the first type of cryptographic algorithm or the second type of cryptographic algorithm;
[0094] The first network element sends a token request to the first network storage function network element, where the token request is used to request a token of a network function service providing network element, and the token request includes the second statement;
[0095] The first network element receives a response message, where the response message includes the token information.
[0096] In a possible implementation, the method further includes:
[0097] The first network element determines a first statement according to the security capability of the first network function service providing network element, where the first statement is generated based on the first type of cryptographic algorithm or the second type of cryptographic algorithm, the security capability is used to indicate the type of cryptographic algorithm supported by the corresponding network element, and the first statement is used by the first network function service providing network element to perform identity authentication on the first network element;
[0098] The first network element sends a first service request to the first network function service providing network element, where the first service request is used to request the first network function service providing network element to provide a service, where the first service request includes the token information and the first statement, where the token information includes at least one of a first token or a second token, where the first token is generated based on the first type of cryptographic algorithm, and where the second token is generated based on the second type of cryptographic algorithm.
[0099] Among them, other possible implementations of the third aspect can refer to the various possible implementations of the second aspect, which will not be repeated here.
[0100] In a fourth aspect, an embodiment of the present application provides an authorization verification method, wherein the method can be performed by a network function service providing network element, or can be performed by a component (such as a processor, chip, or chip system, etc.) of the network function service providing network element. The authorization verification method may include:
[0101] The network function service providing network element receives a service request, where the service request is used to request the network function service providing network element to provide a service, where the service request includes token information, where the token information includes at least one of a first token or a second token, where the first token is generated based on a first type of cryptographic algorithm, and where the second token is generated based on a second type of cryptographic algorithm;
[0102] The network function service providing network element verifies the token information;
[0103] When the token information is verified successfully, the network function service providing network element provides the service requested by the service request to the network function service consuming network element.
[0104] By implementing this method, the network function service providing network element can provide token verification when the token information includes at least one of the first token or the second token, thereby avoiding the problem of declared verification failure caused by inconsistent cryptographic algorithm types supported by various network elements in the network, and improving the stability of the network.
[0105] In a possible implementation manner, the network function service providing network element verifies the token information, including:
[0106] The token information includes the first token and the second token, and the network function service providing network element supports the second type of cryptographic algorithm, then verifying the second token based on the second type of cryptographic algorithm; or
[0107] The token information includes the first token and the second token, and the network function service providing network element does not support the second type of cryptographic algorithm, then verifying the first token based on the first type of cryptographic algorithm;
[0108] Among them, the network function service providing network element supports the first type of cryptographic algorithm.
[0109] When this method is implemented, the token information includes the first token and the second token, and the network function service providing network element verifies the corresponding token based on the cryptographic algorithm type supported by the network function service providing network element, thereby avoiding the verification failure problem caused by different supported algorithm types when there are network elements supporting different cryptographic algorithm types in the network.
[0110] In a possible implementation manner, the network function service providing network element receiving a service request includes:
[0111] The network function service providing network element receives a service request from a service communication agent;
[0112] The network function service providing network element verifies the token information, including:
[0113] The token information includes a token, and the network function service providing network element verifies the token in the token information based on a cryptographic algorithm corresponding to the token contained in the token information.
[0114] When implementing this method, if the service request is initiated by a service communication agent, since the service communication agent is a trusted network element, when a token is included in the token information, the network function service providing network element can verify the token based on the cryptographic algorithm corresponding to the token contained in the token information, thereby improving verification efficiency.
[0115] In a possible implementation manner, the network function service providing network element receiving a service request includes:
[0116] The network function service providing network element receives a service request from a network function service consuming network element;
[0117] The network function service providing network element verifies the token information, including:
[0118] The token information includes a token and the token is the second token, and the network function service providing network element verifies the token information based on the second type of cryptographic algorithm;
[0119] The token information includes a token and the token is the first token, the network function service providing network element performs a first verification on the token information according to the security capability of the first network storage function network element, the security capability of the network function service providing network element, and the security capability of the network function service consuming network element, wherein the security capability is used to indicate the type of cryptographic algorithm supported by the corresponding network element;
[0120] When the first verification passes, the network function service providing network element performs a second verification on the token information based on the first type of cryptographic algorithm.
[0121] When implementing this method, when the token information includes a token and the token is a second token, the network function service providing network element only needs to verify the token based on the second type of cryptographic algorithm. When the token information includes a token and the token is a first token, it is necessary to perform a first verification based on the security capabilities of the first network storage function network element, the security capabilities of the network function service providing network element, and the security capabilities of the network function service consuming network element in the network, and then use the first type of cryptographic algorithm to perform a second verification after the first verification passes. This can reduce the probability of the network function service consuming network element maliciously retaining the token and passing the verification, thereby improving the security of token verification.
[0122] In a possible implementation manner, the network function service providing network element performs a first verification on the token information according to the security capability of the first network storage function network element, the security capability of the network function service providing network element, and the security capability of the network function service consuming network element, including:
[0123] The security capability of the first network storage function network element indicates that the first network storage function network element supports the second type of cryptographic algorithm, the security capability of the network function service providing network element indicates that the network function service providing network element supports the second type of cryptographic algorithm, and the security capability of the network function service consuming network element indicates that the network function service consuming network element supports the second type of cryptographic algorithm, then it is determined that the token information does not pass the first verification; or
[0124] If the security capability of the first network storage function network element indicates that the first network storage function network element does not support the second type of cryptographic algorithm, and / or the security capability of the network function service providing network element indicates that the network function service providing network element does not support the second type of cryptographic algorithm, and / or the security capability of the network function service consumption network element indicates that the network function service consumption network element does not support the second type of cryptographic algorithm, it is determined that the token information passes the first verification.
[0125] When this method is implemented, when the first network storage function network element, the network function service providing network element and the network function service consuming network element all support the second type of cryptographic algorithm, and the token information includes a token and the token is the first token, it means that the network function service consuming network element has maliciously retained a token, and therefore the token information does not pass the first verification. If one of the first network storage function network element, the network function service providing network element and the network function service consuming network element does not support the second type of cryptographic algorithm, it is determined that the token information has passed the first verification, and thus the second verification can be performed. By adopting this method, the probability of the network function service consuming network element maliciously retaining the token and passing the verification can be reduced, thereby improving the security of token verification.
[0126] In a possible implementation manner, the first network storage function network element is a network storage function network element of a home network of the network function service consumption network element;
[0127] The network function service providing network element performs a first verification on the token information according to the security capability of the first network storage function network element, the security capability of the network function service providing network element, and the security capability of the network function service consuming network element, including:
[0128] The network function service providing network element performs a first verification on the token information according to the security capability of the first network storage function network element, the security capability of the second network storage function network element, the security capability of the network function service providing network element, and the security capability of the network function service consuming network element;
[0129] Among them, the second network storage function network element is a network storage function network element of the access network of the network function service consumption network element.
[0130] By implementing this method, in a roaming scenario, the network function service providing network element can perform a first verification on the token information based on the security capabilities of the network storage function network element of the home network of the network function service consuming network element, the security capabilities of the network storage function network element of the access network, the security capabilities of the network function service providing network element, and the security capabilities of the network function service consuming network element, thereby also being able to perform a first verification on the token information in a roaming scenario.
[0131] In a possible implementation manner, the network function service providing network element performs a first verification on the token information according to the security capability of the first network storage function network element, the security capability of the second network storage function network element, the security capability of the network function service providing network element, and the security capability of the network function service consuming network element, including:
[0132] The security capability of the first network storage function network element indicates that the first network storage function network element supports the second type of cryptographic algorithm, the security capability of the second network storage function network element indicates that the second network storage function network element supports the second type of cryptographic algorithm, the security capability of the network function service providing network element indicates that the network function service providing network element supports the second type of cryptographic algorithm, and the security capability of the network function service consuming network element indicates that the network function service consuming network element supports the second type of cryptographic algorithm, then it is determined that the token information does not pass the first verification; or
[0133] The security capability of the first network storage function network element indicates that the first network storage function network element does not support the second type of cryptographic algorithm, and / or the security capability of the network function service providing network element indicates that the network function service providing network element does not support the second type of cryptographic algorithm, and / or the security capability of the network function service consuming network element indicates that the network function service consuming network element does not support the second type of cryptographic algorithm, and / or the second network storage function network element does not support the second type of cryptographic algorithm, then it is determined that the token information passes the first verification.
[0134] By implementing this method, in a roaming scenario, if all network elements in the network support the second type of cryptographic algorithm, and the token information includes a token and the token is a first token, it means that the network function service consuming network element maliciously retains a token, and therefore fails the first verification, thereby improving the security of token verification.
[0135] In a possible implementation manner, the network function service providing network element receives a service request from a network function service consuming network element, including:
[0136] The network function service providing network element receives a service request from a network function service consuming network element through a service communication agent;
[0137] The network function service providing network element performs a first verification on the token information according to the security capability of the first network storage function network element, the security capability of the network function service providing network element, and the security capability of the network function service consuming network element, including:
[0138] The network function service providing network element performs a first verification on the token information based on the security capabilities of the first network storage function network element, the security capabilities of the network function service providing network element, the security capabilities of the service communication agent, and the security capabilities of the network function service consuming network element, where the security capabilities are used to indicate the types of cryptographic algorithms supported by the corresponding network element.
[0139] When implementing this method, the network function service providing network element receives the service request from the network function service consuming network element through the service communication agent. In this scenario, when the network function service providing network element performs the first verification of the token information, it needs to consider the security capabilities of the service communication agent to facilitate detection of whether the network function service consuming network element maliciously retains a token.
[0140] In a possible implementation manner, the network function service providing network element performs a first verification on the token information according to the security capability of the first network storage function network element, the security capability of the network function service providing network element, the security capability of the service communication agent, and the security capability of the network function service consuming network element, including:
[0141] The security capability of the first network storage function network element indicates that the first network storage function network element supports the second type of cryptographic algorithm, the security capability of the network function service providing network element indicates that the network function service providing network element supports the second type of cryptographic algorithm, the security capability of the network function service consuming network element indicates that the network function service consuming network element supports the second type of cryptographic algorithm, and the security capability of the service communication agent indicates that the service communication agent supports the second type of cryptographic algorithm, then it is determined that the token information does not pass the first verification; or
[0142] The security capability of the first network storage function network element indicates that the first network storage function network element does not support the second type of cryptographic algorithm, and / or the security capability of the network function service providing network element indicates that the network function service providing network element does not support the second type of cryptographic algorithm, and / or the security capability of the network function service consuming network element indicates that the network function service consuming network element does not support the second type of cryptographic algorithm, and / or the security capability of the service communication agent indicates that the service communication agent does not support the second type of cryptographic algorithm, then it is determined that the token information passes the first verification.
[0143] When this method is implemented, if all network elements in the network support the second type of cryptographic algorithm, and the token information includes a token and the token is the first token, it means that the network function service consuming network element maliciously retains a token, and therefore fails the first verification, thereby improving the security of token verification.
[0144] In a fifth aspect, an embodiment of the present application provides an authorization verification method, wherein the method can be performed by a network function service consumption network element, or can be performed by a component of the network function service consumption network element (such as a processor, a chip, or a chip system, etc.). The authorization verification method may include:
[0145] The network function service consuming network element generates declaration information according to the security capability of the network function service consuming network element, the declaration information including at least one of a first alternative declaration or a second alternative declaration, the first alternative declaration is generated based on a first type of cryptographic algorithm, the second alternative declaration is generated based on a second type of cryptographic algorithm, and the security capability is used to indicate a type of cryptographic algorithm supported by the corresponding network element;
[0146] The network function service consuming network element sends a service request, and the service request includes the declaration information.
[0147] By implementing the method described in the fifth aspect, the network function service consuming network element can generate declaration information based on its own security capabilities, so as to avoid the failure of declaration verification caused by inconsistent supported algorithm types when there are network elements supporting different types of cryptographic algorithms in the network.
[0148] In a possible implementation manner, the security capability of the network function service consuming network element indicates that the network function service consuming network element supports the second type of cryptographic algorithm, and the declaration information includes the first alternative declaration and the second alternative declaration; or
[0149] The network function service consuming network element does not support the second type of cryptographic algorithm, and the declaration information includes the first alternative declaration;
[0150] Among them, the network function service consumption network element supports the first type of cryptographic algorithm.
[0151] By implementing this method, when the cryptographic algorithm types supported by the network function service consuming network element are different, the alternative declarations included in the declaration information are different, thereby avoiding the situation where the declaration verification fails due to inconsistent supported algorithm types.
[0152] In a sixth aspect, the present application provides a communication device, applied to a first network storage function network element, including:
[0153] A transceiver unit, configured to receive a token request, wherein the token request is used to request a token of a network function service providing network element;
[0154] a processing unit, configured to generate token information according to the security capability of the network function service providing network element and the security capability of the first network storage function network element, the token information including a first token or a second token, the first token being generated based on a first type of cryptographic algorithm, the second token being generated based on a second type of cryptographic algorithm, and the security capability being used to indicate a type of cryptographic algorithm supported by the corresponding network element;
[0155] The transceiver unit is further used to send a response message, where the response message includes the token information.
[0156] In one possible implementation, the transceiver unit is used to perform the receiving or sending operation of the first network storage function network element in various possible implementations of the first aspect, and the processing unit is used to perform all operations except the transceiver operation.
[0157] In a seventh aspect, the present application provides a communication device, applied to a first network element, including:
[0158] a processing unit, configured to determine a first statement according to a security capability of a first network function service providing network element, wherein the first statement is generated based on a first type of cryptographic algorithm or a second type of cryptographic algorithm, the security capability is used to indicate a type of cryptographic algorithm supported by a corresponding network element, and the first statement is used by the first network function service providing network element to authenticate the first network element;
[0159] A transceiver unit is used to send a first service request to the first network function service providing network element, wherein the first service request is used to request the first network function service providing network element to provide a service, the first service request includes token information and the first statement, the token information includes at least one of a first token or a second token, the first token is generated based on the first type of cryptographic algorithm, and the second token is generated based on the second type of cryptographic algorithm.
[0160] In a possible implementation manner, the transceiver unit is used to perform the receiving or sending operation of the first network element in various possible implementation manners of the second aspect, and the processing unit is used to perform all operations except the transceiver operation.
[0161] In an eighth aspect, the present application provides a communication device, applied to a first network element, including:
[0162] A processing unit, configured to determine a second statement according to the security capability of the first network storage function network element, wherein the second statement is generated based on the first type of cryptographic algorithm or the second type of cryptographic algorithm;
[0163] a transceiver unit, configured to send a token request to the first network storage function network element, wherein the token request is used to request a token of a network function service providing network element, and the token request includes the second statement;
[0164] The transceiver unit is further configured to receive a response message, wherein the response message includes the token information.
[0165] In a possible implementation, the transceiver unit is used to perform the receiving or sending operation of the first network element in various possible implementations of the third aspect, and the processing unit is used to perform all operations except the transceiver operation.
[0166] In a ninth aspect, the present application provides a communication device, which is applied to a network function service providing network element, including:
[0167] a transceiver unit, configured to receive a service request, the service request being used to request the network function service providing network element to provide a service, the service request comprising token information, the token information comprising at least one of a first token or a second token, the first token being generated based on a first type of cryptographic algorithm, and the second token being generated based on a second type of cryptographic algorithm;
[0168] A processing unit is used to verify the token information; when the token information is verified successfully, the network function service providing network element provides the service requested by the service request to the network function service consuming network element.
[0169] In one possible implementation, the transceiver unit is used to perform the receiving or sending operation of the network function service providing network element in various possible implementations of the fourth aspect, and the processing unit is used to perform all operations except the transceiver operation.
[0170] In a tenth aspect, the present application provides a communication device, applied to a network function service consumption network element, including:
[0171] a processing unit, configured to generate declaration information according to the security capability of the network function service consuming network element, the declaration information including at least one of a first alternative declaration or a second alternative declaration, the first alternative declaration being generated based on a first type of cryptographic algorithm, the second alternative declaration being generated based on a second type of cryptographic algorithm, the security capability being used to indicate a type of cryptographic algorithm supported by the corresponding network element;
[0172] The transceiver unit is used to send a service request, where the service request includes the declaration information.
[0173] In one possible implementation, the transceiver unit is used to perform the receiving or sending operation of the network function service consuming network element in various possible implementations of the fifth aspect, and the processing unit is used to perform all operations except the transceiver operation.
[0174] In an eleventh aspect, an embodiment of the present application provides a communication device, the communication device comprising a processor, configured to execute a method in any possible implementation of the first aspect to the fifth aspect. Alternatively, the processor is configured to execute a program stored in a memory, and when the program is executed, the method in any possible implementation of the first aspect to the fifth aspect is executed.
[0175] In a possible implementation manner, the memory is located outside the above communication device.
[0176] In a possible implementation manner, the memory is located within the above-mentioned communication device.
[0177] In the embodiment of the present application, the processor and the memory may also be integrated into one device, that is, the processor and the memory may also be integrated together.
[0178] In a possible implementation manner, the communication device further includes a transceiver, where the transceiver is used to receive a signal or send a signal.
[0179] In a twelfth aspect, an embodiment of the present application provides a communication device, which includes a logic circuit and an interface, and the logic circuit and the interface are coupled; the interface is used to receive information, and the logic circuit is used to perform processing operations.
[0180] In the thirteenth aspect, an embodiment of the present application provides a computer-readable storage medium, which is used to store a computer program. When the computer-readable storage medium is run on a computer, the method shown in any possible implementation of the first to fifth aspects above is executed.
[0181] In a fourteenth aspect, an embodiment of the present application provides a computer program product, which includes a computer program or a computer code, and when the computer program product is run on a computer, the method shown in any possible implementation of the first to fifth aspects above is executed.
[0182] In a fifteenth aspect, an embodiment of the present application provides a computer program. When the computer program is run on a computer, the method shown in any possible implementation of the first to fifth aspects above is executed.
[0183] In the sixteenth aspect, an embodiment of the present application provides a wireless communication system, which includes at least two of a network storage function network element, a network function service consumption network element, a network function service providing network element or a communication agent.
[0184] The technical effects achieved in the above-mentioned sixth to sixteenth aspects can refer to the technical effects of the first to fifth aspects or the beneficial effects in the method embodiments shown below, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0185] Figure 1 It is a schematic diagram of a system architecture provided by an embodiment of the present application;
[0186] Figure 2a This is a schematic diagram of a pNF registration process provided by an embodiment of the present application;
[0187] Figure 2b This is a schematic diagram of a token acquisition process provided by an embodiment of the present application;
[0188] Figure 2c This is a token verification process diagram provided by an embodiment of the present application;
[0189] Figure 3a to Figure 3f This is a scenario example provided by the embodiment of the present application;
[0190] Figure 4 It is a flowchart of an authorization verification method provided in an embodiment of the present application;
[0191] Figure 5a It is a flowchart of an authorization verification method provided in an embodiment of the present application;
[0192] Figure 5b It is a flowchart of an authorization verification method provided in an embodiment of the present application;
[0193] Figure 5c It is a flowchart of an authorization verification method provided in an embodiment of the present application;
[0194] Figure 5d It is a flowchart of an authorization verification method provided in an embodiment of the present application;
[0195] Figure 5e It is a flowchart of an authorization verification method provided in an embodiment of the present application;
[0196] Figures 6 to 8 It is a structural diagram of a communication device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0197] In order to make the objectives, technical solutions and advantages of the present application clearer, the present application will be further described below in conjunction with the accompanying drawings.
[0198] The terms "first" and "second" in the specification, claims and drawings of this application are only used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.
[0199] The "embodiment" mentioned in this article means that the specific features, structures or characteristics described in conjunction with the embodiment can be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It can be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0200] In the present application, "at least one (item)" means one or more, "more than one" means two or more, "at least two (items)" means two or three and more than three, and "and / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c".
[0201] Before introducing the method of the present application in detail, some concepts involved in the present application are briefly introduced first.
[0202] 1. Network function service consumer (cNF) network element
[0203] The cNF network element can also be called a cNF entity. Specifically, the cNF network element can be a NF that can call functional services in the service-oriented architecture, such as: session management function (SMF) network element, access and mobility management function (AMF) network element, authentication server function (AUSF) network element, etc.
[0204] 2. Network function service provider (pNF) network element
[0205] The pNF network element can also be called a pNF entity. The pNF network element can be specifically a NF in the service-oriented architecture where functional services can be called, such as an SMF network element, an AUSF network element, a unified data management (UDM) network element, etc.
[0206] 3. Network repository function (NRF) network element
[0207] NRF network element can also be called NRF entity. NRF network element is responsible for NF automation management, selection and expansion, including NF service registration, discovery, status monitoring, service authorization, etc., to achieve on-demand configuration of network functions and services and interconnection between NFs. For example, NRF has functions such as generating tokens.
[0208] 4. Service communication proxy (SCP)
[0209] SCP can be used for indirect communication between NFs, and can also be used to implement load balancing and NF selection. It can also have functions such as NF registration, discovery, and service authorization.
[0210] In some possible embodiments, the term "network element" in the embodiments of the present application can be replaced with "entity" or "device". For example, "NRF network element" can also be written as "NRF entity" or "NRF device", and "cNF network element" can also be written as "cNF entity" or "cNF device".
[0211] For the convenience of description below, the network function service consumption network element is uniformly abbreviated as cNF, the network function service provision network element is uniformly abbreviated as pNF, the network storage function network element is uniformly abbreviated as NRF, and the service communication proxy is uniformly abbreviated as SCP.
[0212] It should be understood that the various network elements shown in the terminology of the present application may be physical concepts, for example, a physically single device, or at least two network elements may be integrated on the same physical device, or the network elements shown in this document may also be logical concepts, such as software modules or network functions corresponding to the services provided by each network element. The network function may be understood as a virtualization function under virtualization implementation, and may also be understood as a network function that provides services under a service-oriented architecture.
[0213] The technical solution of the embodiment of the present application can be applied to various communication systems, such as: the fourth generation (4G) communication system, the fifth generation (5G) communication system or other future evolution systems, or other various wireless communication systems using wireless access technology. As long as there is a communication system with service authentication or authorization requirements, the technical solution of the embodiment of the present application can be adopted. In addition, the names of the various network elements used in the embodiment of the present application may be different in future communication systems.
[0214] For example, Figure 1 A communication system applicable to an embodiment of the present application includes a first network element, an NRF and a pNF.
[0215] In one implementation, the first network element may be a cNF, and the cNF may request the NRF for service authorization of the pNF, for example, requesting a token corresponding to the pNF, and after the cNF obtains authorization from the NRF, for example, after obtaining the token corresponding to the pNF fed back by the NRF, the cNF initiates a service request to the pNF. It is understandable that the pNF may be registered with the NRF in advance.
[0216] In one implementation, the first network element may also be an SCP that is in communication with the cNF, and the SCP may act as an agent for some functions of the cNF. For example, the SCP may act as an agent for the cNF to request the NRF for service authorization of the pNF, or may act as an agent for the cNF to initiate a service request to the pNF.
[0217] It should be understood that in practical applications, Figure 1 The communication system shown may also include more network elements.
[0218] The following takes the first network element as cNF as an example to illustrate service access authorization:
[0219] There are three processes for service access authorization: process one, pNF registers with NRF; process two, cNF requests a token from NRF; and process three, pNF verifies the token of cNF. Figure 2a-2c The following are examples of process one to process three:
[0220] like Figure 2a The process shown includes but is not limited to the following steps:
[0221] 1. pNF sends a registration request to NRF.
[0222] The registration request includes configuration data of the pNF, for example, NF profile configuration data of the pNF, and the configuration data may include but is not limited to: an identifier of the pNF, a service type that the pNF can provide, and the like.
[0223] 2. NRF saves the configuration data of pNF.
[0224] 3. NRF sends a registration response message to pNF.
[0225] like Figure 2b The process 2 shown includes but is not limited to the following steps:
[0226] 1. cNF sends a token acquisition request to NRF.
[0227] The token acquisition request can be used to request the NRF to obtain the service of a certain pNF, or to obtain the service of a certain type of pNF.
[0228] 2. NRF generates token.
[0229] The NRF receives the token acquisition request and verifies whether the cNF has the right to access the requested pNF service. If the cNF is authorized, the NRF generates a token including a digital signature, which may be generated based on a cryptographic algorithm.
[0230] 3. NRF sends a token response message to cNF, which includes the token.
[0231] Correspondingly, the cNF receives the token response message and obtains the token included in the token response message.
[0232] like Figure 2c The process three shown includes but is not limited to the following steps:
[0233] 1. The cNF sends a service request to the pNF, which includes a token.
[0234] The token is what the cNF receives from the NRF in process 2.
[0235] 2. The pNF verifies the integrity of the token.
[0236] When the pNF verifies the integrity of the token, it actually verifies the integrity of the digital signature in the token. When verifying, it still needs to verify based on the cryptographic algorithm that generates the digital signature. If the token verification passes, the service requested by the cNF will be run.
[0237] 3. The pNF sends a service response message to the cNF.
[0238] If the token verification passes, the pNF sends a service response message to the cNF. If the token verification fails, the pNF sends a rejection message to the cNF.
[0239] The cryptographic algorithm based on which the token is generated in the above process 2 should be the same type as the cryptographic algorithm based on which the token is verified in process 3. If they are inconsistent, token verification may fail. With the evolution of cryptographic algorithms, new types of cryptographic algorithms will continue to emerge. Some network elements in the network may support new types of cryptographic algorithms, while some network elements may not support new types of cryptographic algorithms, which may cause token verification failure.
[0240] In an embodiment of the present application, in order to avoid the problem of verification failure caused by different types of cryptographic algorithms supported by network elements in the network, a solution is proposed. When generating a token, the NRF determines the cryptographic algorithm for generating the token based on the security capabilities of the requested pNF, the security capabilities of the NRF, and the security capabilities of the cNF. The security capabilities are used to indicate the types of cryptographic algorithms supported by the corresponding network elements.
[0241] The embodiments of the present application can be applied to a scenario in which a cNF obtains a token from an NRF in a service-oriented architecture, and then requests a service from a corresponding pNF based on the obtained token. Figures 3a to 3e Several possible specific application scenarios are provided for the embodiments of this application. Figures 3a to 3e The various application scenarios shown are illustrated as examples:
[0242] like Figure 3a As shown, an example of an application scenario applicable to an embodiment of the present application, cNF sends a token request to NRF, NRF generates a corresponding token, and sends a token response to cNF, and the token response includes the generated token. cNF sends a service request to pNF, and the service request includes the token obtained from NRF. pNF receives the service request, verifies the token, and sends a service response to cNF. In this application scenario, cNF and NRF communicate directly, for example, a Transport Layer Security (TLS) connection can be established, and mutual authentication can be performed at the transport layer. cNF and pNF communicate directly, for example, a TLS connection can be established, and mutual authentication can be performed at the transport layer.
[0243] like Figure 3bAs shown, another example of an application scenario applicable to the embodiment of the present application, in which the cNF sends a token request to the NRF through the SCP agent to request a token for requesting a service from the pNF; the NRF generates a corresponding token and returns the token to the cNF through the SCP, and the token is carried in the token response. The cNF sends a service request to the pNF through the SCP agent, and the service request includes the token obtained from the NRF; the pNF receives the service request, verifies the token in the service request, and returns a service response to the cNF through the SCP agent. In this application scenario, the cNF and the NRF do not communicate directly, and the SCP and the pNF communicate directly, and a TLS connection is established.
[0244] like Figure 3c As shown, it is another example of an application scenario applicable to the embodiment of the present application. In this application scenario, the cNF sends a service request to the SCP, so that the SCP acts as an agent for the cNF to send a token request to the NRF to request a token for requesting a service from the pNF; the NRF generates a corresponding token and returns the token to the SCP, and the token is carried in the token response. The SCP acts as an agent for the cNF to send a service request to the pNF, and the service request includes the token obtained from the NRF; the pNF receives the service request, verifies the token in the service request, and returns a service response to the cNF through the SCP. In this application scenario, the SCP acts as an agent for the cNF to make token requests and service requests. There is indirect communication between the cNF and the NRF, and there is indirect communication between the cNF and the pNF.
[0245] like Figure 3d As shown, another example of an application scenario applicable to the embodiment of the present application, in which the cNF sends a token request to the NRF to request a token for requesting a service from the pNF; the NRF generates a corresponding token and sends a token response to the cNF, and the token response includes the generated token. The cNF sends a service request to the pNF through the SCP, and the service request includes the token obtained from the NRF; the pNF receives the service request, verifies the token in the service request, and returns a service response to the cNF through the SCP. In this application scenario, the cNF communicates directly with the NRF, and the cNF communicates indirectly with the pNF.
[0246] like Figure 3eAs shown, it is another example of an application scenario applicable to the embodiment of the present application. In this application scenario, the cNF requests a token from the home network (Home Network Repository Function, hNRF) through the visited network's network storage function (Visited Network Repository Function, vNRF). The hNRF generates a corresponding token and sends a token response to the cNF through the vNRF. The token response includes the generated token. The cNF sends a service request to the pNF, and the service request includes the token obtained from the NRF. The pNF receives the service request and verifies the token. If the verification is successful, the pNF sends a service response to the cNF. In this application scenario, the hNRF is the NRF of the cNF's home network, and the vNRF is the NRF of the cNF's visited network. This application scenario is a roaming scenario.
[0247] It should be noted that the above-mentioned "direct communication" means that a TLS connection is established between two network elements, and communication can be carried out through the established TLS connection, and identity authentication is performed at the transport layer. The above-mentioned "indirect communication" means that no TLS connection is established between the two network elements, but communication is carried out through other network elements, such as SCP. Identity authentication is not performed at the transport layer between the two network elements in "indirect communication".
[0248] It should be understood that the above scenarios are only examples and not limitations.
[0249] The following examples describe the embodiments of the authorization verification method of the present application. It should be noted that the various technical solutions (or embodiments) of the present application can be implemented independently or in combination based on certain internal connections. The present application is not limited thereto. And the various terms and definitions between the various embodiments can be referenced to each other. In each embodiment of the present application, different implementations can also be implemented in combination or independently.
[0250] Before introducing the process embodiment of the authorization verification method of the present application, the first type of cryptographic algorithm and the second type of cryptographic algorithm mentioned in each embodiment of the present application are described:
[0251] The first type of cryptographic algorithm and the second type of cryptographic algorithm may be divided according to the birth time of the cryptographic algorithm, for example, the existing cryptographic algorithm is regarded as the first type of cryptographic algorithm, and the newly emerged cryptographic algorithm is regarded as the second type of cryptographic algorithm. Exemplarily, all network elements in the network support the first type of cryptographic algorithm, while the second type of cryptographic algorithm may be supported by some network elements.
[0252] As an example, a network element supporting a cryptographic algorithm of the second type must support a cryptographic algorithm of the first type, and a network element supporting a cryptographic algorithm of the first type may support a cryptographic algorithm of the second type.
[0253] As an example, the second type of cryptographic algorithm may be a post-quantum cryptographic algorithm, and the first type of cryptographic algorithm may be a non-post-quantum cryptographic algorithm. The second type of cryptographic algorithm may be a cryptographic algorithm upgraded from the first type of cryptographic algorithm, for example, the non-post-quantum cryptographic algorithm is a common symmetric / asymmetric cryptographic algorithm, and the upgraded post-quantum cryptographic algorithm is a post-quantum symmetric / asymmetric cryptographic algorithm. For example, the post-quantum symmetric cryptographic algorithm needs to be upgraded from AES-128 (128-bit Advanced Encryption Standard, Advanced Encryption Standard-128bit), SNOW-3G to AES-256 (256-bit Advanced Encryption Standard, Advanced Encryption Standard-256bit), SNOW-V, etc., and the post-quantum asymmetric cryptographic algorithm needs to be upgraded from ECC (Elliptic Curves Cryptography) to CRYSTALS-Kyber, etc.
[0254] Please refer to Figure 4 , which is a flow chart of an authorization verification method provided in an embodiment of the present application. Figure 1 It can be a system architecture diagram applicable to the authorization verification method. Figure 4 As shown, the method may include: 101-106, wherein the execution order of each step is not limited in the embodiment of the present application. Figure 4 As shown, the authorization verification method of the embodiment of the present application includes but is not limited to the following steps:
[0255] 101. A first network element sends a token request to a first NRF, where the token request is used to request a token of a pNF. Correspondingly, the first NRF receives the token request.
[0256] In some embodiments, the first network element may be a cNF or an SCP.
[0257] As an example, if the first network element is a cNF, the cNF may communicate directly with the first NRF. For example, the cNF establishes a TLS connection with the first NRF and sends a token request to the first NRF through the established TLS connection. Figure 3a In some implementations, the cNF may also communicate indirectly with the first NRF, for example, the cNF sends a token request to the first NRF through the SCP. Figure 3b and Figure 3f This can be an example of this scenario.
[0258] As another example, if the first network element is an SCP, the SCP may establish a TLS connection with the first NRF and send a token request to the first NRF through the established TLS connection. The SCP may be a proxy cNF requesting a token from the first NRF. Figure 3c This can be an example of this scenario.
[0259] In some embodiments, the token request may be used to request a token of one pNF or multiple pNFs, for example, the token request includes an identifier of the requested pNF; for another example, the token request includes a requested service type, which may correspond to one or more pNFs, that is, the one or more pNFs may provide services of the service type. For the convenience of description below, the requested "one pNF or multiple pNFs" is referred to as "at least one pNF".
[0260] 102. The first NRF generates token information according to the security capability of the pNF and the security capability of the first NRF, wherein the token information includes at least one of a first token or a second token, wherein the first token is generated based on a first type of cryptographic algorithm, and the second token is generated based on a second type of cryptographic algorithm.
[0261] The above-mentioned security capabilities are used to indicate the types of cryptographic algorithms supported by the corresponding network element. In some implementations, the network elements in the embodiments of the present application may all support a first type of cryptographic algorithm, and the security capabilities may indicate whether the corresponding network element supports a second type of cryptographic algorithm. In some implementations, the security capabilities may also indicate the specific types of cryptographic algorithms supported by the corresponding network element. For example, if a network element supports a first type of cryptographic algorithm but does not support a second type of cryptographic algorithm, the security capabilities of the network element indicate that the network element supports the first type of cryptographic algorithm. For another example, if a network element supports a first type of cryptographic algorithm and a second type of cryptographic algorithm, the security capabilities of the network element indicate that the network element supports the first type of cryptographic algorithm and the second type of cryptographic algorithm. It is understandable that the description of security capabilities is also applicable to other embodiments of the present application.
[0262] In a first optional implementation, the first NRF may generate token information based on the security capabilities of the at least one pNF requested and the security capabilities of the first NRF. Exemplarily, the first network element may be an SCP, that is, the token request comes from the SCP, and the token information may be generated based on the security capabilities of the at least one pNF requested and the security capabilities of the first NRF. The following is an example of generating token information based on the security capabilities of the at least one pNF and the security capabilities of the first NRF. It should be noted that in the following example, the first NRF and the at least one pNF both support the first type of cryptographic algorithm.
[0263] Exemplarily, the first NRF supports a second type of cryptographic algorithm, and the at least one pNF supports the second type of cryptographic algorithm. Then, the token information includes a token and the token is a second token.
[0264] Exemplarily, the first NRF supports the second type of cryptographic algorithm, and some of the at least one pNF support the second type of cryptographic algorithm, then the token information includes the first token and the second token, that is, in this implementation, the first NRF is not sure to which pNF the SCP will send the service request, therefore, the token information includes the first token and the second token.
[0265] Exemplarily, the first NRF does not support the second type of cryptographic algorithm; and / or the at least one pNF does not support the second type of cryptographic algorithm, then the token information includes a token and the token is a first token.
[0266] In a second optional implementation, the first NRF may generate token information based on the security capabilities of at least one requested pNF, the security capabilities of the first NRF, and the security capabilities of the cNF. Exemplarily, the first network element may be a cNF, that is, the token request comes from the cNF, and the token information may be generated based on the security capabilities of at least one requested pNF, the security capabilities of the first NRF, and the security capabilities of the cNF. The following is an example of generating token information based on the security capabilities of at least one pNF, the security capabilities of the first NRF, and the security capabilities of the cNF. It should be noted that in the following example, the first NRF, the at least one pNF, and the cNF all support the first type of cryptographic algorithm.
[0267] Exemplarily, the cNF supports the second type of cryptographic algorithm, the first NRF supports the second type of cryptographic algorithm, and the at least one pNF supports the second type of cryptographic algorithm, then the token information includes a token and the token is the second token.
[0268] Exemplarily, the cNF supports the second type of cryptographic algorithm, the first NRF supports the second type of cryptographic algorithm, and some pNFs in the at least one pNF support the second type of cryptographic algorithm, then the token information includes the first token and the second token, that is, in this implementation, the first NRF is not sure to which pNF the cNF will send the service request, therefore, the token information includes the first token and the second token.
[0269] Exemplarily, the cNF does not support the second type of cryptographic algorithm, and / or the first NRF does not support the second type of cryptographic algorithm; and / or the at least one pNF does not support the second type of cryptographic algorithm, then the token information includes a token and the token is a first token.
[0270] In the first optional implementation and the second optional implementation, the first NRF needs to obtain the security capability of the network element. The following examples are given for obtaining the security capability of the pNF and obtaining the security capability of the cNF respectively:
[0271] In some embodiments, the first NRF may acquire the security capability of the pNF in the following three optional ways:
[0272] Method 1: When the pNF registers with the first NRF, the first NRF can obtain the security capability of the pNF through the registration request of the pNF, that is, the registration request includes the security capability of the pNF.
[0273] Method 2: The first NRF may obtain the security capability of the pNF through the transport layer security protocol between the first NRF and the pNF. For example, a TLS connection is established between the first NRF and the pNF. The first NRF may determine the security capability of the pNF by obtaining the certificate information of the pNF (such as the public key of the pNF, etc.) based on the established TLS connection, and determine whether the pNF supports the second type of cryptographic algorithm. The first NRF may also obtain the security capability of the pNF during the TLS handshake negotiation process.
[0274] Method three: The first NRF may obtain the security capability of the pNF according to the local configuration information, where the local configuration information includes the security capability of the pNF.
[0275] In some embodiments, the first NRF may obtain the security capability of the cNF in the following four optional ways:
[0276] Method 1: The first NRF may obtain the security capability of the cNF through the transport layer security protocol between the first NRF and the cNF. For example, a TLS connection is established between the first NRF and the cNF, and the first NRF may determine the security capability of the cNF through the certificate information of the cNF (such as the public key of the cNF, etc.) obtained based on the established TLS connection. The first NRF may also obtain the security capability of the cNF during the TLS handshake negotiation process.
[0277] In a second method, the first NRF may obtain the security capability of the cNF according to the local configuration information, where the local configuration information includes the security capability of the cNF.
[0278] Method three: The first NRF can obtain the security capabilities of the cNF through a token request, that is, the token request includes the security capabilities of the cNF.
[0279] Method 4: If the cNF is registered with the first NRF in advance, the first NRF can also obtain the security capability of the cNF through the registration request of the cNF, that is, the registration request of the cNF includes the security capability of the cNF.
[0280] Mode 5: The first NRF may obtain the security capability of the cNF based on the declaration information sent by the cNF. In one implementation, the cNF generates declaration information based on the type of cryptographic algorithm supported by itself. If the cNF does not support the second type of cryptographic algorithm, the cNF generates one declaration information based on the first type of cryptographic algorithm. If the cNF supports the second type of cryptographic algorithm, the cNF generates two declaration information based on the first type of cryptographic algorithm and the second type of cryptographic algorithm respectively. The first NRF may determine the security capability of the cNF based on the number of declaration information received. In one implementation, if the cNF does not support the second type of cryptographic algorithm, the cNF generates declaration information based on the first type of cryptographic algorithm. If the cNF supports the second type of cryptographic algorithm, the cNF generates declaration information based on the second type of cryptographic algorithm. The first NRF may determine the security capability of the cNF based on the type of cryptographic algorithm used in the received declaration information.
[0281] It should be noted that the above methods for acquiring the security capabilities of cNFs and pNFs are also applicable to subsequent embodiments.
[0282] 103. The first NRF sends a response message, where the response message includes token information. Correspondingly, the first network element receives the response message.
[0283] 104. The first network element sends a first service request to the first pNF, where the first service request is used to request the first pNF to provide a service, and the first service request includes token information. Correspondingly, the first pNF receives the first service request.
[0284] In some embodiments, the response message includes token information, and the token information includes at least one of the first token or the second token. Further optionally, the token information may also include an expiration time of the token.
[0285] In some embodiments, the first network element receives the response message and obtains token information from the response message. Further, the first network element sends a first service request to the first pNF, where the first pNF is a pNF in the at least one pNF requested above. The first service request is used to request the first pNF to provide a service. The first service request may include token information fed back by the first NRF.
[0286] In some embodiments, the first network element receives the response message and obtains token information from the response message. If the token information includes a first token and a second token, the first network element may select a token from the first token and the second token according to the security capability of the first pNF, and send a first service request including the selected token to the first pNF to reduce signaling overhead. Exemplarily, if the security capability of the first pNF indicates that the first pNF does not support the second type of cryptographic algorithm, the first token may be selected. If the security capability of the first pNF indicates that the first pNF supports the second type of cryptographic algorithm, the second token may be selected. If the token information includes a token, the first network element sends a first service request to the first pNF, and the first service request includes the token information fed back by the first NRF.
[0287] 105. The first pNF verifies the token information.
[0288] In some embodiments, if the token information includes a first token and a second token, the first pNF may select to verify the first token or the second token according to the security capability of the first pNF. Exemplarily, if the first pNF supports the second type of cryptographic algorithm, the first pNF may verify the second token based on the second type of cryptographic algorithm; or, if the first pNF does not support the second type of cryptographic algorithm, the first pNF may verify the first token based on the first type of cryptographic algorithm.
[0289] In some embodiments, if the token information includes a token, the first pNF may verify the token in the token information based on the cryptographic algorithm corresponding to the token contained in the token information. Exemplarily, the first network element is an SCP, that is, the first service request received by the first pNF comes from the SCP. If the token information received by the first pNF includes a token, the first pNF may verify the token in the token information based on the cryptographic algorithm corresponding to the token contained in the token information. It is understandable that if the first service request comes from the SCP, the SCP is a network element with relatively high reliability, and therefore the token in the token information may be verified based on the cryptographic algorithm corresponding to the token contained in the token information.
[0290] In some embodiments, if the token information includes a token, it may be because the first network element maliciously retains a token. For example, the first NRF feeds back two tokens to the first network element, but the first network element maliciously retains one token. In order to reduce the situation of maliciously retaining tokens and passing verification, if the first pNF receives a token information including a token and the token is a first token, the first pNF may perform a first verification on the token information based on the security capabilities of the first NRF, the security capabilities of the first pNF, and the security capabilities of the cNF. If the first verification passes, the first pNF performs a second verification on the first token included in the token information based on the first type of cryptographic algorithm. Exemplarily, the above-mentioned first network element is a cNF, that is, the first service request received by the first pNF comes from the cNF. If the token information received by the first pNF includes a token and it is a first token, the token information needs to be first verified and second verified.
[0291] Exemplarily, the security capability of the first NRF indicates that the first NRF supports the second type of cryptographic algorithm, the security capability of the pNF indicates that the pNF supports the second type of cryptographic algorithm, and the security capability of the cNF indicates that the cNF supports the second type of cryptographic algorithm. This means that the token information fed back by the first NRF contains two tokens or includes one token and is the second token, but the token information contains one token and is the first token. This may be because the cNF maliciously retains a token, and therefore it is determined that the token information does not pass the first verification.
[0292] Exemplarily, the security capability of the first NRF indicates that the first NRF does not support the second type of cryptographic algorithm, and / or the security capability of the pNF indicates that the pNF does not support the second type of cryptographic algorithm, and / or the security capability of the cNF indicates that the cNF does not support the second type of cryptographic algorithm, then it is determined that the token information passes the first verification.
[0293] If the first pNF receives token information including a token that is a second token, the first pNF may verify the second token included in the token information based on a second type of cryptographic algorithm.
[0294] It can be understood that in the embodiment of the present application, each network element in the network can support the first type of cryptographic algorithm.
[0295] 106. When the token information is verified successfully, the first pNF provides the service requested by the first service request to the cNF.
[0296] If the token information is verified, the first pNF can run the service requested by the first service request, thereby providing the corresponding service to the cNF. Exemplarily, if the token information is verified, the first pNF sends a service response, and if the token information is not verified, the first pNF sends a service rejection message.
[0297] In an embodiment of the present application, NRF generates token information based on the security capabilities of NRF and the security capabilities of at least one requested pNF. The security capabilities indicate the types of cryptographic algorithms supported by the corresponding network elements. In other words, the generated token information refers to the types of cryptographic algorithms supported by the network elements in the network. Therefore, it can avoid verification failures caused by inconsistent types of cryptographic algorithms supported by various network elements in the network, thereby improving the stability of the network.
[0298] As an example, Figure 4 In the embodiment shown, the first network element may be an SCP, that is, the SCP acts as an agent for the cNF to initiate a token request and a service request. Figure 5a , an example is given of the authorization verification method when the first network element is SCP:
[0299] Please refer to Figure 5a , is a flowchart of an authorization verification method provided in an embodiment of the present application, Figure 3c This may be an example of a scenario in which the authorization verification method of this embodiment is applicable. Figure 5a The authorization verification method shown includes but is not limited to the following steps:
[0300] 201, the cNF generates declaration information according to the security capability of the cNF.
[0301] Among them, the declaration information includes at least one of a first alternative declaration or a second alternative declaration, the first alternative declaration is generated based on a first type of cryptographic algorithm, and the second alternative declaration is generated based on a second type of cryptographic algorithm. The security capability is used to indicate the type of cryptographic algorithm supported by the corresponding network element. In an embodiment of the present application, each network element in the network can support the first type of cryptographic algorithm.
[0302] As one example, if the security capability of the cNF indicates that the cNF supports the second type of cryptographic algorithm, the declaration information may include the first alternative declaration and the second alternative declaration; as another example, if the security capability of the cNF indicates that the cNF does not support the second type of cryptographic algorithm, the declaration information includes the first alternative declaration but does not include the second alternative declaration.
[0303] The statement in the embodiment of the present application can be a client credential assertion CCA (Client Credentials Assertion), which is used for identity authentication. The statement contains the CNF ID, timestamp, expiration time, etc.
[0304] 202, the cNF sends a second service request to the SCP, where the second service request includes declaration information. Correspondingly, the SCP receives the second service request.
[0305] The second service request includes declaration information generated by the cNF.
[0306] 203. The SCP determines a second statement according to the security capability and the statement information of the first NRF, where the second statement is the first candidate statement or the second candidate statement.
[0307] In some embodiments, if the declaration information includes an alternative statement, and the alternative statement is a first alternative statement, the second statement is the first alternative statement in the declaration information. If the declaration information includes a first alternative statement and a second alternative statement, the second statement can be determined based on the security capabilities of the first NRF. For example, if the security capabilities of the first NRF indicate that the first NRF supports a second type of cryptographic algorithm, the second statement is the second alternative statement in the declaration information. If the security capabilities of the first NRF indicate that the first NRF does not support a second type of cryptographic algorithm, the second statement is the first alternative statement in the declaration information.
[0308] 204. The SCP sends a token request to the first NRF, where the token request includes the second statement and is used to request a token of the pNF. Correspondingly, the first NRF receives the token request.
[0309] In this embodiment, the cNF and the first NRF communicate via SCP, that is, the cNF and the first NRF do not communicate directly. Therefore, no TLS connection is established between the cNF and the first NRF, and no identity authentication is performed between the cNF and the first NRF. In this embodiment, when the SCP sends a token request to the first NRF, it needs to carry the second statement for the first NRF to authenticate the cNF.
[0310] 205. When the second statement is verified, the first NRF generates token information according to the security capability of the first NRF and the security capability of the pNF. The token information includes at least one of a first token or a second token, wherein the first token is generated based on a first type of cryptographic algorithm and the second token is generated based on a second type of cryptographic algorithm.
[0311] The first NRF verifies the second statement in the token request. If the second statement is verified, the first NRF may generate token information according to the security capability of the first NRF and the security capability of the at least one pNF requested. For a detailed description of generating token information according to the security capability of the first NRF and the security capability of the at least one pNF requested, please refer to Figure 4 The relevant description of step 102 in the embodiment will not be repeated here.
[0312] 206. The first NRF sends a response message to the SCP, where the response message includes token information. Correspondingly, the SCP receives the response message.
[0313] 207. The SCP determines a first statement according to the security capability and the statement information of the first pNF, where the first statement is the first candidate statement or the second candidate statement.
[0314] In one implementation, the SCP may obtain the security capability of the first pNF through a TLS connection with the first pNF. In another implementation, the SCP may obtain the security capability of the first pNF through a discovery process, wherein the discovery process refers to the SCP interacting with the first NRF to obtain information about the pNF, and the information about the pNF includes the security capability of the pNF.
[0315] In some embodiments, if the declaration information includes an alternative declaration, and the alternative declaration is a first alternative declaration, the first declaration is the first alternative declaration in the declaration information. If the declaration information includes a first alternative declaration and a second alternative declaration, the first declaration can be determined according to the security capabilities of the first pNF. For example, if the security capabilities of the first pNF indicate that the first pNF supports a second type of cryptographic algorithm, the first declaration is the second alternative declaration in the declaration information. If the security capabilities of the first pNF indicate that the first pNF does not support the second type of cryptographic algorithm, the first declaration is the first alternative declaration in the declaration information.
[0316] 208. The SCP sends a first service request to the first pNF, where the first service request includes token information and a first statement. The first service request is used to request the first pNF to provide a service.
[0317] In this embodiment, the cNF and the first pNF communicate indirectly through SCP. Therefore, no TLS connection is established between the cNF and the first pNF, and no mutual identity authentication is performed between the cNF and the first pNF. In this embodiment, when the SCP sends a service request to the first pNF, it needs to carry the first statement for the first pNF to authenticate the cNF.
[0318] 209 , the first pNF verifies the token information and the first claim.
[0319] The first pNF verifies the first statement and verifies the token information. If the token information includes the first token and the second token, the first pNF selects the first token or the second token for verification according to its own security capability. For example, if the first pNF supports the second type of cryptographic algorithm, the second token is verified based on the second type of cryptographic algorithm. For another example, if the first pNF does not support the second type of cryptographic algorithm, the first token is verified based on the first type of cryptographic algorithm.
[0320] 210. The first pNF sends a service response to the SCP.
[0321] 211. SCP sends a service response to the cNF.
[0322] If the first pNF passes the token information verification, the first pNF can run the service requested by the first service request, thereby providing the corresponding service to the cNF. Exemplarily, if the token information is verified, the first pNF sends a service response to the SCP, and the SCP sends a service response to the cNF. If the token information is not verified, the first pNF sends a service rejection message.
[0323] As another example, Figure 4 In the embodiment shown, the first network element may be a cNF, that is, the cNF initiates a token request and a service request. Figure 5b-Figure 5e , an example is given of the authorization verification method when the first network element is cNF:
[0324] Please refer to Figure 5b , is a flowchart of an authorization verification method provided in an embodiment of the present application, Figure 3d This may be an example of an applicable scenario of the authorization verification method of this embodiment, where the cNF communicates directly with the first NRF, while the cNF communicates non-directly with the first pNF but through an SCP. Figure 5b The authorization verification method shown includes but is not limited to the following steps:
[0325] 301, the cNF sends a token request to the first NRF, where the token request is used to request a token of the pNF. Correspondingly, the first NRF receives the token request.
[0326] In some embodiments, the cNF may communicate directly with the first NRF, for example, the cNF establishes a TLS connection with the first NRF, and sends a token request to the first NRF through the established TLS connection. The token request may be used to request a token for one or more pNFs, for example, the token request includes an identifier of the requested pNF; for another example, the token request includes a requested service type, which may correspond to one or more pNFs, that is, the one or more pNFs may provide services of the service type. For the convenience of description, the requested one or more pNFs are referred to as at least one pNF.
[0327] 302. The first NRF generates token information according to the security capability of the pNF, the security capability of the first NRF, and the security capability of the cNF. The token information includes at least one of a first token or a second token, wherein the first token is generated based on a first type of cryptographic algorithm, and the second token is generated based on a second type of cryptographic algorithm.
[0328] In some embodiments, the first NRF generates the token information according to the security capability of the requested at least one pNF, the security capability of the first NRF, and the security capability of the cNF. Figure 4 The relevant description of the second optional implementation manner in step 102 in the embodiment is not repeated here.
[0329] 303, the first NRF sends a response message to the cNF, where the response message includes token information. Correspondingly, the cNF receives the response message.
[0330] 304. The cNF determines a first statement according to the security capability of the first pNF.
[0331] Among them, the first statement is used for the first pNF to authenticate the cNF. Exemplarily, the cNF can determine the first cryptographic algorithm based on the security capability of the first pNF and the security capability of the cNF, and the first cryptographic algorithm is a first type of cryptographic algorithm or a second type of cryptographic algorithm. For example, if both the cNF and the first pNF support the second type of cryptographic algorithm, the first cryptographic algorithm is the second type of cryptographic algorithm; if the cNF and / or the first pNF do not support the second type of cryptographic algorithm, the first cryptographic algorithm is the first type of cryptographic algorithm. It should be noted that in the embodiment of the present application, each network element in the network supports the first type of cryptographic algorithm. The cNF generates a first statement based on the first cryptographic algorithm.
[0332] In some embodiments, the way in which the cNF obtains the security capability of the first pNF includes but is not limited to: the cNF obtains the security capability of the first pNF from the first NRF through a discovery process, wherein the discovery process is a process in which the cNF obtains information about the pNF from the first NRF; or, the cNF may obtain the security capability of the first pNF through a transport layer security protocol, for example, the cNF obtains the security capability of the first pNF through a TLS connection between the cNF and the first NRF; or, the cNF may obtain the security capability of the first pNF through local configuration information, and the local configuration information includes the security capability of the first pNF.
[0333] 305. The cNF sends a first service request to the SCP, where the first service request includes token information and a first statement.
[0334] In this embodiment, the cNF and the first pNF communicate via SCP, therefore, no TLS connection is established between the cNF and the first pNF, and no identity authentication is performed between the cNF and the first pNF. In this embodiment, when the cNF sends the first service request to the first pNF, it needs to carry the first statement for the first pNF to authenticate the cNF.
[0335] In some implementations, the first service request also includes security capabilities of the cNF.
[0336] 306. The SCP sends a first service request to the first pNF, where the first service request is used to request the first pNF to provide a service. Correspondingly, the first pNF receives the first service request.
[0337] Exemplarily, the cNF sends a first service request to the SCP, and the SCP then sends the first service request to the first pNF. In some embodiments, the first service request in step 306 may carry different contents from the first service request in step 305. For example, the first service request in step 306 includes not only the token information and the first statement, but also the security capabilities of the SCP and / or the security capabilities of the cNF. The SCP may obtain the security capabilities of the cNF through a TLS connection established with the cNF, or the SCP may obtain the security capabilities of the cNF from the first service request sent by the cNF to the SCP.
[0338] 307 , the first pNF verifies the token information and the first statement.
[0339] The first pNF verifies the first claim, and if the first claim passes the verification, further verifies the token information.
[0340] In some embodiments, if the token information includes a first token and a second token, the first pNF may select to verify the first token or the second token according to the security capability of the first pNF. Exemplarily, if the first pNF supports the second type of cryptographic algorithm, the first pNF may verify the second token based on the second type of cryptographic algorithm and discard the first token; or, if the first pNF does not support the second type of cryptographic algorithm, the first pNF may verify the first token based on the first type of cryptographic algorithm and discard the second token.
[0341] In some embodiments, if the token information includes a token, the first pNF may verify the token in the token information based on a cryptographic algorithm corresponding to the token contained in the token information.
[0342] In some embodiments, if the token information includes a token, it may be because the cNF maliciously retains a token. For example, the first NRF feeds back two tokens to the cNF, but the cNF maliciously retains one token. In order to reduce the situation where the token is maliciously retained and passed the verification, if the first pNF receives a token including a token in the token information and the token is the first token, the first pNF can perform a first verification on the token information based on the security capabilities of the first NRF, the security capabilities of the first pNF, the security capabilities of the SCP and the security capabilities of the cNF. If the first verification passes, the first pNF performs a second verification on the first token contained in the token information based on the first type of cryptographic algorithm.
[0343] In some implementations, the first pNF may obtain the security capability of the cNF through local configuration information, that is, the local configuration information includes the security capability of the cNF; or, the first pNF may also obtain the security capability of the cNF through the received first service request, that is, the first service request includes the security capability of the cNF.
[0344] In some implementations, the first pNF may obtain the security capabilities of the SCP through a transport layer security protocol, for example, obtaining the security capabilities of the SCP through a TLS connection between the first pNF and the SCP; or, the first pNF may obtain the security capabilities of the SCP through a received first service request, that is, the first service request includes the security capabilities of the SCP.
[0345] In some implementations, the first pNF may obtain the security capability of the first NRF through a transport layer security protocol, for example, obtaining the security capability of the first NRF through a TLS connection between the first pNF and the first NRF, or the first pNF may obtain the security capability of the first NRF through local configuration information.
[0346] Exemplarily, the security capability of the first NRF indicates that the first NRF supports the second type of cryptographic algorithm, the security capability of the first pNF indicates that the first pNF supports the second type of cryptographic algorithm, the security capability of the cNF indicates that the cNF supports the second type of cryptographic algorithm, and the security capability of the SCP indicates that the SCP supports the second type of cryptographic algorithm, which means that the token information fed back by the first NRF contains two tokens or includes one token and is the second token, but the token information contains one token and is the first token, which may be because the cNF maliciously retains a token, so it is determined that the token information does not pass the first verification. Exemplarily, the security capability of the first NRF indicates that the first NRF does not support the second type of cryptographic algorithm, and / or the security capability of the first pNF indicates that the first pNF does not support the second type of cryptographic algorithm, and / or the security capability of the cNF indicates that the cNF does not support the second type of cryptographic algorithm, and / or the security capability of the SCP indicates that the SCP does not support the second type of cryptographic algorithm, then it is determined that the token information passes the first verification.
[0347] In some implementations, if the first pNF receives token information including a token that is a second token, the first pNF may verify the second token included in the token information based on a second type of cryptographic algorithm.
[0348] It can be understood that in the embodiment of the present application, each network element in the network can support the first type of cryptographic algorithm.
[0349] 308. The first pNF sends a service response to the SCP.
[0350] 309. SCP sends a service response to the cNF.
[0351] Please refer to step 308-step 309 of this embodiment of the application Figure 5a Step 210 - step 211 in the embodiment will not be described in detail here.
[0352] Please refer to Figure 5c , is a flowchart of an authorization verification method provided in an embodiment of the present application, Figure 3f This may be an example of an applicable scenario of the authorization verification method of this embodiment, in which the cNF and the first NRF communicate indirectly, and the cNF and the first pNF communicate directly. Figure 5c The authorization verification method shown includes but is not limited to the following steps:
[0353] 401, the cNF determines a second statement according to the security capability of the first NRF.
[0354] Among them, the second statement is used by the first NRF to authenticate the cNF. Exemplarily, the cNF can determine the second cryptographic algorithm based on the security capabilities of the first NRF and the security capabilities of the cNF, and the second cryptographic algorithm is a cryptographic algorithm of the first type or a cryptographic algorithm of the second type. For example, if both the cNF and the first NRF support the second type of cryptographic algorithm, the second cryptographic algorithm is the second type of cryptographic algorithm; if the cNF and / or the first NRF do not support the second type of cryptographic algorithm, the second cryptographic algorithm is the first type of cryptographic algorithm. It should be noted that in the embodiment of the present application, each network element in the network supports the first type of cryptographic algorithm. The cNF generates a second statement based on the second cryptographic algorithm.
[0355] In some embodiments, the cNF obtains the security capability of the first NRF in a manner including but not limited to: the cNF obtains the security capability of the first NRF from the first NRF through a discovery process, wherein the discovery process is a process in which the cNF obtains information about the pNF from the first NRF; or, the cNF may obtain the security capability of the first NRF through local configuration information, wherein the local configuration information includes the security capability of the first NRF.
[0356] 402. The cNF sends a token request to the SCP. The token request includes a second statement. The token request is used to request a token of the pNF.
[0357] In this embodiment, the cNF and the first NRF communicate indirectly through SCP. Therefore, no TLS connection is established between the cNF and the first NRF, and no identity authentication is performed between the cNF and the first NRF. In this embodiment, when the cNF sends a token request to the first NRF, it needs to carry the second statement for the first NRF to authenticate the cNF.
[0358] In some implementations, the token request also includes the security capabilities of the cNF.
[0359] 403, the SCP sends a token request to the first NRF.
[0360] In some embodiments, the content carried in the token request in step 403 may be different from that carried in the token request in step 402. For example, the token request in step 403 may include not only the second statement but also the security capability of the cNF. The SCP may obtain the security capability of the cNF through a TLS connection established between the SCP and the cNF, or may obtain the security capability of the cNF from the token request sent by the cNF to the SCP.
[0361] 404. When the second declaration is verified successfully, the first NRF generates token information according to the security capability of the pNF, the security capability of the first NRF, and the security capability of the cNF.
[0362] When the second statement is verified, the first NRF generates token information. The method for generating the token information can refer to Figure 4 The relevant description of the second optional implementation manner in step 102 in the embodiment is not repeated here.
[0363] In some embodiments, the first NRF may obtain the security capability of the cNF by obtaining the security capability of the cNF from the received token request, that is, the token request includes the security capability of the cNF; or, the first NRF may obtain the security capability of the cNF through local configuration information; or, if the cNF is registered with the first NRF in advance, the security capability of the cNF may also be obtained through a registration request.
[0364] The manner in which the first NRF obtains the security capability of the pNF may refer to the description of the aforementioned embodiment and will not be repeated here.
[0365] 405. The first NRF sends a response message to the SCP, where the response message includes token information.
[0366] 406. SCP sends a response message to cNF.
[0367] 407. The cNF sends a first service request to the first pNF. The first service request includes token information. The first service request is used to request the first pNF to provide a service.
[0368] In some embodiments, the response message includes token information, and the token information includes at least one of the first token or the second token. Further optionally, the token information may also include an expiration time of the token.
[0369] In some embodiments, the cNF receives the response message and obtains the token information from the response message. Further, the cNF sends a first service request to the first pNF, where the first pNF is a pNF in the at least one pNF. The first service request is used to request the first pNF to provide a service. The first service request may include the token information fed back by the first NRF.
[0370] In some embodiments, the cNF receives the response message and obtains token information from the response message. If the token information includes a first token and a second token, the cNF may select a token from the first token and the second token according to the security capability of the first pNF, and send a first service request including the selected token to the first pNF to reduce signaling overhead. Exemplarily, if the security capability of the first pNF indicates that the first pNF does not support the second type of cryptographic algorithm, the first token may be selected. If the security capability of the first pNF indicates that the first pNF supports the second type of cryptographic algorithm, the second token may be selected. If the token information includes a token, the first network element sends a first service request to the first pNF, and the first service request includes the token information fed back by the first NRF.
[0371] 408. The first pNF verifies the token information.
[0372] Please refer to step 408 of this embodiment of the present application. Figure 5b Step 307 in will not be described again here.
[0373] 409. The first pNF sends a service response to the cNF.
[0374] If the first pNF passes the token information verification, the first pNF can run the service requested by the first service request, thereby providing the corresponding service to the cNF. Exemplarily, if the token information is verified, the first pNF sends a service response to the cNF. If the token information is not verified, the first pNF sends a service rejection message.
[0375] Please refer to Figure 5d , is a flowchart of an authorization verification method provided in an embodiment of the present application, Figure 3b This may be an example of an applicable scenario of the authorization verification method of this embodiment, in which the cNF and the first NRF communicate with each other indirectly, and the cNF and the first pNF also communicate with each other indirectly, but through SCP. Figure 5d The authorization verification method shown includes but is not limited to the following steps:
[0376] 501, the cNF determines a second statement according to the security capability of the first NRF.
[0377] 502. The cNF sends a token request to the SCP, where the token request includes a second statement.
[0378] 503. The SCP sends a token request to the first NRF, where the token request is used to request a token of the pNF.
[0379] 504. When the second statement is verified successfully, the first NRF generates token information according to the security capability of the pNF, the security capability of the first NRF, and the security capability of the cNF.
[0380] 505. The first NRF sends a response message to the SCP, where the response message includes token information.
[0381] 506. SCP sends a response message to cNF.
[0382] For steps 501 to 506 of this embodiment of the present application, please refer to Figure 5c Steps 401 to 406 of the illustrated embodiment will not be described in detail here.
[0383] 507 , the cNF determines a first statement according to the security capability of the first pNF.
[0384] Among them, the first statement is used for the first pNF to authenticate the cNF. Exemplarily, the cNF can determine the first cryptographic algorithm based on the security capability of the first pNF and the security capability of the cNF, and the first cryptographic algorithm is a first type of cryptographic algorithm or a second type of cryptographic algorithm. For example, if both the cNF and the first pNF support the second type of cryptographic algorithm, the first cryptographic algorithm is the second type of cryptographic algorithm; if the cNF and / or the first pNF do not support the second type of cryptographic algorithm, the first cryptographic algorithm is the first type of cryptographic algorithm. It should be noted that in the embodiment of the present application, each network element in the network supports the first type of cryptographic algorithm. The cNF generates a first statement based on the first cryptographic algorithm.
[0385] In some embodiments, the way in which the cNF obtains the security capability of the first pNF includes but is not limited to: the cNF obtains the security capability of the first pNF from the first NRF through a discovery process, wherein the discovery process is a process in which the cNF obtains information about the pNF from the first NRF; or, the cNF may obtain the security capability of the first pNF through local configuration information, and the local configuration information includes the security capability of the first pNF.
[0386] 508. The cNF sends a first service request to the SCP. The first service request includes token information and a first statement. The first service request is used to request the first pNF to provide a service.
[0387] 509. The SCP sends a first service request to the first pNF, where the first service request is used to request the first pNF to provide a service.
[0388] 510. The first pNF verifies the token information and the first claim.
[0389] 511. The first pNF sends a service response to the SCP.
[0390] 512. SCP sends a service response to cNF.
[0391] Please refer to step 508 to step 512 of this embodiment of the present application. Figure 5b Steps 305 to 309 of the illustrated embodiment will not be described in detail here.
[0392] Please refer to Figure 5e , is a flowchart of an authorization verification method provided in an embodiment of the present application, Figure 3e This may be an example of an applicable scenario for the authorization verification method of this embodiment, which is a roaming scenario, in which the first NRF is a network storage function network element of the cNF's home network, and the second NRF is a network storage function network element of the network accessed by the cNF. Figure 5e The authorization verification method shown includes but is not limited to the following steps:
[0393] 601, the cNF sends a token request to the second NRF, where the token request is used to request a token of the pNF. Correspondingly, the second NRF receives the token request of the cNF.
[0394] In some embodiments, the token request may include the security capabilities of the cNF.
[0395] 602, the second NRF sends a token request to the first NRF. Correspondingly, the first NRF receives the token request.
[0396] In some embodiments, the content carried in the token request of step 602 may be different from or the same as the content carried in the token request of step 601, and this application does not limit this. The token request may include the security capabilities of the cNF and the security capabilities of the second NRF.
[0397] Exemplarily, the second NRF can obtain the security capability of the cNF through the transport layer security protocol, for example, the second NRF obtains the security capability of the cNF through a TLS connection established between the second NRF and the cNF, or the second NRF can obtain the security capability of the cNF through a token request sent by the cNF, or the second NRF can obtain the security capability of the cNF through local configuration information; or, if the cNF is registered with the second NRF in advance, the second NRF can also obtain the security capability of the cNF during the cNF registration process.
[0398] 603, the first NRF generates token information according to the security capability of the pNF, the security capability of the first NRF, the security capability of the second NRF, and the security capability of the cNF.
[0399] Exemplarily, the cNF supports the second type of cryptographic algorithm, the first NRF supports the second type of cryptographic algorithm, the at least one pNF supports the second type of cryptographic algorithm, and the second NRF supports the second type of cryptographic algorithm, then the token information includes a token and the token is the second token. It can be understood that in the embodiment of the present application, each network element in the network supports the first type of cryptographic algorithm.
[0400] Exemplarily, the cNF supports the second type of cryptographic algorithm, the first NRF supports the second type of cryptographic algorithm, some pNFs in the at least one pNF support the second type of cryptographic algorithm, and the second NRF supports the second type of cryptographic algorithm, then the token information includes the first token and the second token, that is, in this implementation, the first NRF is not sure to which pNF the cNF will send the service request, therefore, the token information includes the first token and the second token.
[0401] Exemplarily, the cNF does not support the second type of cryptographic algorithm, and / or the first NRF does not support the second type of cryptographic algorithm; and / or at least one of the above pNFs does not support the second type of cryptographic algorithm, and / or the second NRF does not support the second type of cryptographic algorithm, then the token information includes a token and the token is a first token.
[0402] In some implementations, the first NRF may obtain the security capabilities of the second NRF through a transport layer security protocol, for example, the first NRF obtains the security capabilities of the second NRF through a TLS connection established between the first NRF and the second NRF; or, the first NRF may obtain the security capabilities of the second NRF through a received token request.
[0403] In some implementations, the first NRF may obtain the security capabilities of the cNF through the received token request.
[0404] 604. The first NRF sends a response message to the second NRF, where the response message includes token information.
[0405] 605. The second NRF sends a response message to the cNF. Correspondingly, the cNF receives the response message.
[0406] 606. The cNF sends a first service request to the first pNF. The first service request includes token information. The first service request is used to request the first pNF to provide a service.
[0407] 607, the first pNF verifies the token information.
[0408] In some embodiments, if the token information includes a first token and a second token, the first pNF may select to verify the first token or the second token according to the security capability of the first pNF. Exemplarily, if the first pNF supports the second type of cryptographic algorithm, the first pNF may verify the second token based on the second type of cryptographic algorithm and discard the first token; or, if the first pNF does not support the second type of cryptographic algorithm, the first pNF may verify the first token based on the first type of cryptographic algorithm and discard the second token.
[0409] In some embodiments, if the token information includes a token, the first pNF may verify the token in the token information based on a cryptographic algorithm corresponding to the token contained in the token information.
[0410] In some embodiments, if the token information includes a token, it may be because the cNF maliciously retains a token. For example, the first NRF feeds back two tokens to the cNF, but the cNF maliciously retains one token. In order to reduce the situation where the token is maliciously retained and passed the verification, if the first pNF receives a token including a token in the token information and the token is the first token, the first pNF can perform a first verification on the token information based on the security capabilities of the first NRF, the security capabilities of the first pNF, the security capabilities of the second NRF and the security capabilities of the cNF. If the first verification passes, the first pNF performs a second verification on the first token contained in the token information based on the first type of cryptographic algorithm.
[0411] In some implementations, the first pNF may obtain the security capabilities of the cNF and the second NRF through local configuration information, that is, the local configuration information includes the security capabilities of the cNF and the second NRF; or, the first pNF may also obtain the security capabilities of the cNF and the second NRF through the received first service request, that is, the first service request includes the security capabilities of the cNF and the second NRF, and the cNF may obtain the security capabilities of the second NRF through a TLS connection with the second NRF. In some implementations, the first pNF may obtain the security capabilities of the cNF and the second NRF through a transport layer security protocol, for example, obtaining the security capabilities of the second NRF through a TLS connection between the first pNF and the second NRF, and obtaining the security capabilities of the cNF through a TLS connection between the first pNF and the cNF.
[0412] In some implementations, the first pNF may request the second NRF to obtain the security capability of the first NRF. If the second NRF does not store the security capability of the first NRF, the second NRF may obtain the security capability of the first NRF from the first NRF.
[0413] Exemplarily, the security capability of the first NRF indicates that the first NRF supports the second type of cryptographic algorithm, the security capability of the first pNF indicates that the first pNF supports the second type of cryptographic algorithm, the security capability of the cNF indicates that the cNF supports the second type of cryptographic algorithm, and the security capability of the second NRF indicates that the second NRF supports the second type of cryptographic algorithm. This means that the token information fed back by the first NRF contains two tokens or includes one token and is the second token, but the token information contains one token and is the first token. This may be because the cNF maliciously retains a token, and therefore it is determined that the token information does not pass the first verification.
[0414] Exemplarily, the security capability of the first NRF indicates that the first NRF does not support the second type of cryptographic algorithm, and / or the security capability of the first pNF indicates that the first pNF does not support the second type of cryptographic algorithm, and / or the security capability of the cNF indicates that the cNF does not support the second type of cryptographic algorithm, and / or the security capability of the second NRF indicates that the second NRF does not support the second type of cryptographic algorithm, then it is determined that the token information passes the first verification.
[0415] In some implementations, if the first pNF receives token information including a token that is a second token, the first pNF may verify the second token included in the token information based on a second type of cryptographic algorithm.
[0416] It can be understood that in the embodiment of the present application, each network element in the network can support the first type of cryptographic algorithm.
[0417] 608. The first pNF sends a service response to the cNF.
[0418] Please refer to step 608 of this embodiment of the present application. Figure 5c Step 409 of the embodiment will not be described in detail here.
[0419] The following is an introduction to the communication device provided in the embodiments of the present application.
[0420] The present application divides the functional modules of the communication device according to the above method embodiment. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated modules can be implemented in the form of hardware or software functional modules. It should be noted that the division of modules in the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. Figures 6 to 8 The communication device according to the embodiment of the present application is described in detail.
[0421] Figure 6 is a schematic diagram of the structure of a communication device provided in an embodiment of the present application, such as Figure 6 As shown, the communication device 1000 can correspondingly implement the functions or steps implemented by the communication device (e.g., a network storage function network element or a network function service providing network element or a network function service consuming network element or a first network element) in the above-mentioned various method embodiments. The communication device may include a processing unit 1200 and a transceiver unit 1100. Optionally, a storage unit may also be included, which may be used to store instructions (codes or programs) and / or data. The processing unit 1200 and the transceiver unit 1100 may be coupled to the storage unit, for example, the processing unit 1200 may read the instructions (codes or programs) and / or data in the storage unit to implement the corresponding method. The above-mentioned units may be independently arranged or partially or fully integrated. For example, the transceiver unit 1100 may include a sending unit and a receiving unit. The sending unit may be a transmitter, and the receiving unit may be a receiver. The entity corresponding to the transceiver unit 1100 may be a transceiver.
[0422] In some possible implementations, the communication device 1000 can implement the behaviors and functions of the network storage function network element in the above method embodiments. For example, the communication device 1000 can be a network storage function network element, or a component (such as a chip or circuit) used in a network storage function network element. The transceiver unit 1100 can be used to perform Figures 4 to 5e In the embodiment of the present invention, all receiving or sending operations performed by the network storage function network element, such as Figure 4 Step 104 and step 106 in Figure 5a Step 204 and step 206, Figure 5b Step 301 and step 303 in Figure 5c Step 403 and step 405 in Figure 5d Step 503 and step 505 in Figure 5e The processing unit 1200 is used to execute steps 602, 604, and / or other processes used to support the technology described herein. Figures 4 to 5e In the embodiment of the present invention, all operations except the sending and receiving operations performed by the network storage function network element are as follows, for example Figure 4 In the illustrated embodiment, step 102, for example Figure 5a In step 205 of the embodiment shown, Figure 5b In step 302 of the embodiment shown, Figure 5c In step 404 of the described embodiment, Figure 5d In step 504 of the illustrated embodiment, Figure 5e Step 603 in the embodiment shown.
[0423] In some possible implementations, the communication device 1000 can implement the behavior and function of the first network element in the above method embodiment. For example, the communication device 1000 can be the first network element, or a component (such as a chip or circuit) used in the first network element. The transceiver unit 1100 can be used to perform Figures 4 to 5e In the embodiment of the present invention, the first network element (it should be noted that, in Figure 5a The first network element is a service communication agent SCP. Figure 5b to Figure 5e The first network element is all receiving or sending operations performed by the network function service consumption network element cNF, such as Figure 4 Step 101, step 103, step 104 in Figure 5a Step 202, step 204, step 206, step 208, step 210, step 211 in Figure 5b Step 301, step 303, step 305, step 309 in Figure 5c Step 402, step 406, step 407, step 409 in Figure 5d Step 502, step 506, step 508, step 512 in Figure 5e Step 601, step 605, step 606, step 608, and / or other processes for supporting the technology described herein. The processing unit 1200 is used to execute Figures 4 to 5e In the embodiment of the present invention, all operations except the sending and receiving operations performed by the first network element are as follows, for example Figure 5a In the embodiment shown, step 203 and step 207 are Figure 5b In step 304 of the embodiment shown, Figure 5c In step 401 of the embodiment described, Figure 5d Step 501 and step 507 in the embodiment shown.
[0424] In some possible implementations, the communication device 1000 can implement the behaviors and functions of the network function service providing network element in the above method embodiments. For example, the communication device 1000 can be a network function service providing network element, or a component (such as a chip or circuit) used in a network function service providing network element. The transceiver unit 1100 can be used to perform Figures 4 to 5e In the embodiment of the present invention, the network function service provides all receiving or sending operations performed by the network element, such as Figure 4 Step 104 of Figure 5a Step 208, step 210, Figure 5b Step 306 and step 308 in Figure 5c Step 407, step 409, Figure 5d Step 509, step 511, Figure 5eThe processing unit 1200 is used to execute steps 606, 608, and / or other processes used to support the technology described herein. Figures 4 to 5e In the embodiment of the present invention, the network function service provides all operations performed by the network element except the sending and receiving operations, such as Figure 4 Step 105 and step 106 in, for example Figure 5a In step 209 of the embodiment shown, Figure 5b In step 307 of the embodiment shown, Figure 5c In step 408 of the described embodiment, Figure 5d In step 510 of the illustrated embodiment, Figure 5e Step 607 in .
[0425] In some possible implementations, the communication device 1000 can implement the behaviors and functions of the network function service consumption network element in the above method embodiments. For example, the communication device 1000 can be a network function service consumption network element, or a component (such as a chip or circuit) used in a network function service consumption network element. The transceiver unit 1100 can be used to perform Figure 5a In the embodiment of the present invention, all receiving or sending operations performed by the network function service consuming network element, such as Figure 5a In step 202 and step 211, the processing unit 1200 is used to execute Figure 5a In the embodiment of the present invention, all operations except the sending and receiving operations performed by the network function service consuming network element are as follows, for example Figure 5a Step 201 in .
[0426] The above describes the network storage function network element, network function service providing network element, network function service consumption network element and the first network element of the embodiment of the present application. The following describes the possible product forms of the network storage function network element, network function service providing network element, network function service consumption network element and the first network element. It should be understood that any network element having the above Figure 6 Any form of product of the network storage function network element, network function service providing network element, network function service consumption network element and the first network element functions falls within the protection scope of the embodiments of the present application. It should also be understood that the following introduction is only an example and does not limit the product form of the network storage function network element, network function service providing network element, network function service consumption network element and the first network element of the embodiments of the present application to only this.
[0427] In one possible implementation, Figure 6In the communication device shown, the processing unit 1200 may be one or more processors, the transceiver unit 1100 may be a transceiver, or the transceiver unit 1100 may also be a sending unit and a receiving unit, the sending unit may be a transmitter, the receiving unit may be a receiver, and the sending unit and the receiving unit are integrated into one device, such as a transceiver. In the embodiment of the present application, the processor and the transceiver may be coupled, etc., and the embodiment of the present application does not limit the connection method between the processor and the transceiver.
[0428] Figure 7 A schematic diagram of the structure of another communication device 2000 provided in an embodiment of the present application. Figure 7 The communication device in may be the above-mentioned network storage function network element or the network function service providing network element or the network function service consuming network element or the first network element.
[0429] like Figure 7 As shown, the communication device 2000 includes one or more processors 2200 and a transceiver 2100. The transceiver 2100 can implement the function of the transceiver unit 1100, and the processor 2200 can implement the function of the processing unit 1200.
[0430] exist Figure 7 In various implementations of the communication device shown, the transceiver may include a receiver and a transmitter, wherein the receiver is used to perform a receiving function (or operation) and the transmitter is used to perform a transmitting function (or operation). The transceiver is used to communicate with other devices / devices through a transmission medium.
[0431] Optionally, the communication device 2000 may also include one or more memories 2300 for storing program instructions and / or data. The memory 2300 is coupled to the processor 2200. The coupling in the embodiment of the present application is an indirect coupling or communication connection between devices, units or modules, which may be electrical, mechanical or other forms, and is used for information exchange between devices, units or modules. The processor 2200 may operate in conjunction with the memory 2300. The processor 2200 may execute program instructions stored in the memory 2300.
[0432] The specific connection medium between the transceiver 2100, the processor 2200 and the memory 2300 is not limited in the embodiment of the present application. Figure 7 The transceiver 2100, the processor 2200 and the memory 2300 are connected via a bus 2400. Figure 7 The connections between the other components are shown in bold lines, which are only for illustration and are not intended to be limiting. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0433] In the embodiments of the present application, the processor may be a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, etc., and may implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application may be directly embodied as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor, etc.
[0434] In the embodiment of the present application, the memory may include, but is not limited to, non-volatile memory such as a hard disk drive (HDD) or a solid-state drive (SSD), a random access memory (RAM), an erasable programmable read-only memory (EPROM), a read-only memory (ROM) or a portable read-only memory (CD-ROM), etc. The memory is any storage medium that can be used to carry or store program codes in the form of instructions or data structures and can be read and / or written by a computer (such as a communication device shown in the present application), but is not limited thereto. The memory in the embodiment of the present application can also be a circuit or any other device that can realize a storage function, for storing program instructions and / or data.
[0435] The processor 2200 is mainly used to process the communication protocol and communication data, and to control the entire communication device, execute the software program, and process the data of the software program. The memory 2300 is mainly used to store the software program and data. The transceiver 2100 may include a control circuit and an antenna. The control circuit is mainly used to convert the baseband signal and the radio frequency signal and to process the radio frequency signal. The antenna is mainly used to send and receive radio frequency signals in the form of electromagnetic waves. The input and output devices, such as a touch screen, a display screen, a keyboard, etc., are mainly used to receive data input by the user and output data to the user.
[0436] When the communication device is turned on, the processor 2200 can read the software program in the memory 2300, interpret and execute the instructions of the software program, and process the data of the software program. When data needs to be sent wirelessly, the processor 2200 performs baseband processing on the data to be sent, and outputs the baseband signal to the RF circuit. The RF circuit performs RF processing on the baseband signal and then sends the RF signal outward in the form of electromagnetic waves through the antenna. When data is sent to the communication device, the RF circuit receives the RF signal through the antenna, converts the RF signal into a baseband signal, and outputs the baseband signal to the processor 2200. The processor 2200 converts the baseband signal into data and processes the data.
[0437] In another implementation, the RF circuit and antenna may be arranged independently of the processor performing baseband processing. For example, in a distributed scenario, the RF circuit and antenna may be arranged remotely from the communication device.
[0438] It is understandable that the communication device shown in the embodiment of the present application may also have Figure 7 The embodiments of the present application do not limit the number of components and the like. The methods executed by the processor and the transceiver shown above are only examples, and the specific steps executed by the processor and the transceiver can refer to the methods described above.
[0439] In another possible implementation, Figure 6 In the communication device shown, the processing unit 1200 may be one or more logic circuits, and the transceiver unit 1100 may be an input / output interface, or a communication interface, or an interface circuit, or an interface, etc. Alternatively, the transceiver unit 1100 may be a sending unit and a receiving unit, the sending unit may be an output interface, the receiving unit may be an input interface, and the sending unit and the receiving unit may be integrated into one unit, such as an input / output interface. Figure 8 As shown, Figure 8 The communication device shown includes a logic circuit 3001 and an interface 3002. That is, the processing unit 1200 can be implemented by the logic circuit 3001, and the transceiver unit 1100 can be implemented by the interface 3002. The logic circuit 3001 can be a chip, a processing circuit, an integrated circuit or a system on chip (SoC) chip, etc., and the interface 3002 can be a communication interface, an input / output interface, a pin, etc. For example, Figure 8 The above communication device is used as an example of a chip, and the chip includes a logic circuit 3001 and an interface 3002 .
[0440] In the embodiment of the present application, the logic circuit and the interface may also be coupled to each other. The embodiment of the present application does not limit the specific connection method between the logic circuit and the interface.
[0441] It can be understood that the communication device shown in the embodiment of the present application can implement the method provided in the embodiment of the present application in the form of hardware, or can implement the method provided in the embodiment of the present application in the form of software, etc., and the embodiment of the present application is not limited to this.
[0442] An embodiment of the present application also provides a wireless communication system, which includes any at least two of a network storage function network element, a network function service providing network element, a network function service consumption network element and a first network element. The network storage function network element, the network function service providing network element, the network function service consumption network element and the first network element can be used to execute the method in any of the aforementioned embodiments.
[0443] In addition, the present application also provides a computer-readable storage medium, which stores computer code. When the computer code runs on a computer, the computer executes the operations and / or processing performed by the network storage function network element, the network function service providing network element, the network function service consuming network element and the first network element in the method provided by the present application.
[0444] The present application also provides a computer program product, which includes a computer code or a computer program. When the computer code or the computer program runs on a computer, the operations and / or processing performed by the network storage function network element, the network function service providing network element, the network function service consuming network element and the first network element in the method provided by the present application are executed.
[0445] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, or it can be an electrical, mechanical or other form of connection.
[0446] The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the technical effects of the solutions provided in the embodiments of the present application.
[0447] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0448] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or partly contributed to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a readable storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or an access network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned readable storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program codes.
[0449] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. An authorization verification method, characterized in that: include: The first network storage function network element receives a token request, where the token request is used to request a token of a network function service providing network element; The first network storage function network element generates token information according to the security capability of the network function service providing network element and the security capability of the first network storage function network element, the token information includes at least one of a first token or a second token, the first token is generated based on a first type of cryptographic algorithm, the second token is generated based on a second type of cryptographic algorithm, and the security capability is used to indicate a type of cryptographic algorithm supported by the corresponding network element; The first network storage function network element sends a response message, and the response message includes the token information.
2. The method according to claim 1, characterized in that The first type of cryptographic algorithm is a non-post-quantum cryptographic algorithm, and the second type of cryptographic algorithm is a post-quantum cryptographic algorithm.
3. The method according to claim 1 or 2, characterized in that The number of the network function service providing network element is at least one; The first network storage function network element supports the second type of cryptographic algorithm, and the network function service providing network elements all support the second type of cryptographic algorithm, then the token information includes a token and the token is the second token; or The first network storage function network element supports the second type of cryptographic algorithm, and some of the network function service providing network elements support the second type of cryptographic algorithm, then the token information includes the first token and the second token; or The first network storage function network element does not support the second type of cryptographic algorithm; and / or the network function service providing network elements do not support the second type of cryptographic algorithm, then the token information includes a token and the token is the first token; Among them, the first network storage function network element and the network function service providing network element both support the first type of cryptographic algorithm.
4. The method according to claim 1 or 2, characterized in that: The first network storage function network element receives the token request, including: The first network storage function network element receives a token request from a network function service consumption network element; The first network storage function network element generates token information according to the security capability of the network function service providing network element and the security capability of the first network storage function network element, including: The first network storage function network element generates token information according to the security capability of the network function service providing network element, the security capability of the network function service consuming network element and the security capability of the first network storage function network element.
5. The method according to claim 4, characterized in that The number of the network function service providing network element is at least one; The network function service consumption network element supports the second type of cryptographic algorithm, the first network storage function network element supports the second type of cryptographic algorithm, and the network function service providing network elements all support the second type of cryptographic algorithm, then the token information includes one token and the token is the second token; or The network function service consumption network element supports the second type of cryptographic algorithm, the first network storage function network element supports the second type of cryptographic algorithm, and some network function service providing network elements in the network function service providing network element support the second type of cryptographic algorithm, then the token information includes the first token and the second token; or The network function service consumption network element does not support the second type of cryptographic algorithm, and / or the first network storage function network element does not support the second type of cryptographic algorithm; and / or the network function service providing network elements do not support the second type of cryptographic algorithm, then the token information includes a token and the token is the first token; Among them, the network function service providing network element, the network function service consuming network element, and the first network storage function network element all support the first type of cryptographic algorithm.
6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: The first network storage function network element obtains the security capability of the network function service providing network element through a first registration request of the network function service providing network element, wherein the first registration request includes the security capability of the network function service providing network element; or The first network storage function network element obtains the security capability of the network function service providing network element through a transport layer security protocol between the first network storage function network element and the network function service providing network element; or, The first network storage function network element obtains the security capability of the network function service providing network element according to local configuration information, and the local configuration information includes the security capability of the network function service providing network element.
7. The method according to claim 4 or 5, characterized in that The method further comprises: The first network storage function network element obtains the security capability of the network function service consumption network element through a second registration request of the network function service consumption network element, wherein the second registration request includes the security capability of the network function service consumption network element; or The first network storage function network element obtains the security capability of the network function service consumption network element through a transport layer security protocol between the first network storage function network element and the network function service consumption network element; or, The first network storage function network element obtains the security capability of the network function service consumption network element according to local configuration information, wherein the local configuration information includes the security capability of the network function service consumption network element; or The first network storage function network element obtains the security capability of the network function service consumption network element according to the token request, and the token request includes the security capability of the network function service consumption network element; or The first network storage function network element obtains the security capability of the network function service consumption network element according to the declaration information sent by the network function service consumption network element.
8. The method according to any one of claims 4 to 7, characterized in that: The first network storage function network element is a network storage function network element of a home network of the network function service consumption network element; The first network storage function network element receives a token request from a network function service consumption network element, including: The first network storage function network element receives a token request from a network function service consumption network element through a second network storage function network element, where the second network storage function network element is a network storage function network element of a network accessed by the network function service consumption network element; The first network storage function network element generates token information according to the security capability of the network function service providing network element, the security capability of the network function service consuming network element and the security capability of the first network storage function network element, including: The network storage function network element generates token information according to the security capabilities of the network function service providing network element, the security capabilities of the network function service consuming network element, the security capabilities of the first network storage function network element and the security capabilities of the second network storage function network element.
9. The method according to claim 8, characterized in that The number of the network function service providing network element is at least one; The network function service consumption network element supports the second type of cryptographic algorithm, the first network storage function network element supports the second type of cryptographic algorithm, the second network storage function network element supports the second type of cryptographic algorithm, and the network function service providing network elements all support the second type of cryptographic algorithm, then the token information includes the second token; or The network function service consumption network element supports the second type of cryptographic algorithm, the first network storage function network element supports the second type of cryptographic algorithm, the second network storage function network element supports the second type of cryptographic algorithm, and some of the network function service providing network elements support the second type of cryptographic algorithm, then the token information includes the first token and the second token; or The network function service consumption network element does not support the second type of cryptographic algorithm; and / or, the first network storage function network element does not support the second type of cryptographic algorithm; and / or, the network function service providing network elements do not support the second type of cryptographic algorithm; and / or, the second network storage function network element does not support the second type of cryptographic algorithm, then the token information includes the first token; Among them, the network function service providing network element, the network function service consuming network element, the first network storage function network element, and the second network storage function network element all support the first type of cryptographic algorithm.
10. An authorization verification method, characterized in that: include: The network function service providing network element receives a service request, where the service request is used to request the network function service providing network element to provide a service, where the service request includes token information, where the token information includes at least one of a first token or a second token, where the first token is generated based on a first type of cryptographic algorithm, and where the second token is generated based on a second type of cryptographic algorithm; The network function service providing network element verifies the token information; When the token information is verified successfully, the network function service providing network element provides the service requested by the service request to the network function service consuming network element.
11. The method according to claim 10, characterized in that The network function service providing network element verifies the token information, including: The token information includes the first token and the second token, and the network function service providing network element supports the second type of cryptographic algorithm, then verifying the second token based on the second type of cryptographic algorithm; or The token information includes the first token and the second token, and the network function service providing network element does not support the second type of cryptographic algorithm, then verifying the first token based on the first type of cryptographic algorithm; Among them, the network function service providing network element supports the first type of cryptographic algorithm.
12. The method according to claim 10 or 11, characterized in that The network function service providing network element receives a service request, including: The network function service providing network element receives a service request from a network function service consuming network element; The network function service providing network element verifies the token information, including: The token information includes a token and the token is the second token, and the network function service providing network element verifies the token information based on the second type of cryptographic algorithm; The token information includes a token and the token is the first token, the network function service providing network element performs a first verification on the token information according to the security capability of the first network storage function network element, the security capability of the network function service providing network element, and the security capability of the network function service consuming network element, wherein the security capability is used to indicate the type of cryptographic algorithm supported by the corresponding network element; When the first verification passes, the network function service providing network element performs a second verification on the token information based on the first type of cryptographic algorithm.
13. The method according to claim 12, characterized in that The network function service providing network element performs a first verification on the token information according to the security capability of the first network storage function network element, the security capability of the network function service providing network element, and the security capability of the network function service consuming network element, including: The security capability of the first network storage function network element indicates that the first network storage function network element supports the second type of cryptographic algorithm, the security capability of the network function service providing network element indicates that the network function service providing network element supports the second type of cryptographic algorithm, and the security capability of the network function service consuming network element indicates that the network function service consuming network element supports the second type of cryptographic algorithm, then it is determined that the token information does not pass the first verification; or If the security capability of the first network storage function network element indicates that the first network storage function network element does not support the second type of cryptographic algorithm, and / or the security capability of the network function service providing network element indicates that the network function service providing network element does not support the second type of cryptographic algorithm, and / or the security capability of the network function service consumption network element indicates that the network function service consumption network element does not support the second type of cryptographic algorithm, it is determined that the token information passes the first verification.
14. The method according to claim 12, characterized in that The first network storage function network element is a network storage function network element of a home network of the network function service consumption network element; The network function service providing network element performs a first verification on the token information according to the security capability of the first network storage function network element, the security capability of the network function service providing network element, and the security capability of the network function service consuming network element, including: The network function service providing network element performs a first verification on the token information according to the security capability of the first network storage function network element, the security capability of the second network storage function network element, the security capability of the network function service providing network element, and the security capability of the network function service consuming network element; Among them, the second network storage function network element is a network storage function network element of the access network of the network function service consumption network element.
15. The method according to claim 14, characterized in that The network function service providing network element performs a first verification on the token information according to the security capability of the first network storage function network element, the security capability of the second network storage function network element, the security capability of the network function service providing network element, and the security capability of the network function service consuming network element, including: The security capability of the first network storage function network element indicates that the first network storage function network element supports the second type of cryptographic algorithm, the security capability of the second network storage function network element indicates that the second network storage function network element supports the second type of cryptographic algorithm, the security capability of the network function service providing network element indicates that the network function service providing network element supports the second type of cryptographic algorithm, and the security capability of the network function service consuming network element indicates that the network function service consuming network element supports the second type of cryptographic algorithm, then it is determined that the token information does not pass the first verification; or The security capability of the first network storage function network element indicates that the first network storage function network element does not support the second type of cryptographic algorithm, and / or the security capability of the network function service providing network element indicates that the network function service providing network element does not support the second type of cryptographic algorithm, and / or the security capability of the network function service consuming network element indicates that the network function service consuming network element does not support the second type of cryptographic algorithm, and / or the second network storage function network element does not support the second type of cryptographic algorithm, then it is determined that the token information passes the first verification.
16. A communication device, applied to a first network storage function network element, characterized in that: include: A transceiver unit, configured to receive a token request, wherein the token request is used to request a token of a network function service providing network element; a processing unit, configured to generate token information according to the security capability of the network function service providing network element and the security capability of the first network storage function network element, the token information comprising at least one of a first token or a second token, the first token being generated based on a first type of cryptographic algorithm, the second token being generated based on a second type of cryptographic algorithm, and the security capability being used to indicate a type of cryptographic algorithm supported by the corresponding network element; The transceiver unit is further used to send a response message, where the response message includes the token information.
17. The device according to claim 16, characterized in that The number of the network function service providing network element is at least one; The first network storage function network element supports the second type of cryptographic algorithm, and the network function service providing network elements all support the second type of cryptographic algorithm, then the token information includes a token and the token is the second token; or The first network storage function network element supports the second type of cryptographic algorithm, and some of the network function service providing network elements support the second type of cryptographic algorithm, then the token information includes the first token and the second token; or The first network storage function network element does not support the second type of cryptographic algorithm; and / or the network function service providing network elements do not support the second type of cryptographic algorithm, then the token information includes a token and the token is the first token; Among them, the first network storage function network element and the network function service providing network element both support the first type of cryptographic algorithm.
18. The device according to claim 16 or 17, characterized in that The transceiver unit is specifically used to receive a token request from a network function service consumption network element; The processing unit is specifically used to generate token information according to the security capability of the network function service providing network element, the security capability of the network function service consuming network element and the security capability of the first network storage function network element.
19. The apparatus according to claim 18, wherein the number of the network function service providing network element is at least one; The network function service consumption network element supports the second type of cryptographic algorithm, the first network storage function network element supports the second type of cryptographic algorithm, and the network function service providing network elements all support the second type of cryptographic algorithm, then the token information includes one token and the token is the second token; or The network function service consumption network element supports the second type of cryptographic algorithm, the first network storage function network element supports the second type of cryptographic algorithm, and some network function service providing network elements in the network function service providing network element support the second type of cryptographic algorithm, then the token information includes the first token and the second token; or The network function service consumption network element does not support the second type of cryptographic algorithm, and / or the first network storage function network element does not support the second type of cryptographic algorithm; and / or the network function service providing network elements do not support the second type of cryptographic algorithm, then the token information includes a token and the token is the first token; Among them, the network function service providing network element, the network function service consuming network element, and the first network storage function network element all support the first type of cryptographic algorithm.
20. The device according to claim 18 or 19, characterized in that The first network storage function network element is a network storage function network element of a home network of the network function service consumption network element; The transceiver unit is specifically configured to receive a token request from a network function service consumption network element through a second network storage function network element, where the second network storage function network element is a network storage function network element of a network accessed by the network function service consumption network element; The processing unit is specifically used to generate token information according to the security capabilities of the network function service providing network element, the security capabilities of the network function service consuming network element, the security capabilities of the first network storage function network element, and the security capabilities of the second network storage function network element.
21. The device according to claim 20, characterized in that The number of the network function service providing network element is at least one; The network function service consumption network element supports the second type of cryptographic algorithm, the first network storage function network element supports the second type of cryptographic algorithm, the second network storage function network element supports the second type of cryptographic algorithm, and the network function service providing network elements all support the second type of cryptographic algorithm, then the token information includes the second token; or The network function service consumption network element supports the second type of cryptographic algorithm, the first network storage function network element supports the second type of cryptographic algorithm, the second network storage function network element supports the second type of cryptographic algorithm, and some of the network function service providing network elements support the second type of cryptographic algorithm, then the token information includes the first token and the second token; or The network function service consumption network element does not support the second type of cryptographic algorithm; and / or, the first network storage function network element does not support the second type of cryptographic algorithm; and / or, the network function service providing network elements do not support the second type of cryptographic algorithm; and / or, the second network storage function network element does not support the second type of cryptographic algorithm, then the token information includes the first token; Among them, the network function service providing network element, the network function service consuming network element, the first network storage function network element, and the second network storage function network element all support the first type of cryptographic algorithm.
22. A communication device, applied to a network function service providing network element, characterized in that: include: a transceiver unit, configured to receive a service request, the service request being used to request the network function service providing network element to provide a service, the service request comprising token information, the token information comprising at least one of a first token or a second token, the first token being generated based on a first type of cryptographic algorithm, and the second token being generated based on a second type of cryptographic algorithm; A processing unit, configured to verify the token information; The processing unit is further configured to provide the service requested by the service request to the network function service consuming network element when the token information is verified successfully.
23. The device according to claim 22, characterized in that The processing unit is specifically used for: The token information includes the first token and the second token, and the network function service providing network element supports the second type of cryptographic algorithm, then verifying the second token based on the second type of cryptographic algorithm; or The token information includes the first token and the second token, and the network function service providing network element does not support the second type of cryptographic algorithm, then verifying the first token based on the first type of cryptographic algorithm; Among them, the network function service providing network element supports the first type of cryptographic algorithm.
24. The device according to claim 22 or 23, characterized in that The transceiver unit is specifically used to receive a service request from a network function service consuming network element; The processing unit is specifically configured to verify the token information based on the second type of cryptographic algorithm, wherein the token information includes a token and the token is the second token; The token information includes a token and the token is the first token, and the token information is first verified according to the security capability of the first network storage function network element, the security capability of the network function service providing network element, and the security capability of the network function service consuming network element, wherein the security capability is used to indicate the type of cryptographic algorithm supported by the corresponding network element; When the first verification is passed, a second verification is performed on the token information based on the first type of cryptographic algorithm.
25. The device according to claim 24, characterized in that The processing unit is specifically used for: The security capability of the first network storage function network element indicates that the first network storage function network element supports the second type of cryptographic algorithm, the security capability of the network function service providing network element indicates that the network function service providing network element supports the second type of cryptographic algorithm, and the security capability of the network function service consuming network element indicates that the network function service consuming network element supports the second type of cryptographic algorithm, then it is determined that the token information does not pass the first verification; or If the security capability of the first network storage function network element indicates that the first network storage function network element does not support the second type of cryptographic algorithm, and / or the security capability of the network function service providing network element indicates that the network function service providing network element does not support the second type of cryptographic algorithm, and / or the security capability of the network function service consumption network element indicates that the network function service consumption network element does not support the second type of cryptographic algorithm, it is determined that the token information passes the first verification.
26. The device according to claim 24, characterized in that The first network storage function network element is a network storage function network element of a home network of the network function service consumption network element; The processing unit is specifically configured to perform a first verification on the token information according to the security capability of the first network storage function network element, the security capability of the second network storage function network element, the security capability of the network function service providing network element, and the security capability of the network function service consuming network element; Among them, the second network storage function network element is a network storage function network element of the access network of the network function service consumption network element.
27. The device according to claim 26, characterized in that The processing unit is specifically used for: The security capability of the first network storage function network element indicates that the first network storage function network element supports the second type of cryptographic algorithm, the security capability of the second network storage function network element indicates that the second network storage function network element supports the second type of cryptographic algorithm, the security capability of the network function service providing network element indicates that the network function service providing network element supports the second type of cryptographic algorithm, and the security capability of the network function service consuming network element indicates that the network function service consuming network element supports the second type of cryptographic algorithm, then it is determined that the token information does not pass the first verification; or The security capability of the first network storage function network element indicates that the first network storage function network element does not support the second type of cryptographic algorithm, and / or the security capability of the network function service providing network element indicates that the network function service providing network element does not support the second type of cryptographic algorithm, and / or the security capability of the network function service consuming network element indicates that the network function service consuming network element does not support the second type of cryptographic algorithm, and / or the second network storage function network element does not support the second type of cryptographic algorithm, then it is determined that the token information passes the first verification.
28. A communication device, characterized in that: Including processors; The processor is coupled to the memory; The memory is used to store instructions; The processor is used to execute the instruction so that the method according to any one of claims 1 to 9 is executed; or, The processor is configured to execute the instructions so that the method according to any one of claims 10 to 15 is performed.
29. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store a computer program. When the computer program is executed, the method described in any one of claims 1 to 9 is executed; or, when the computer program is executed, the method described in any one of claims 10 to 15 is executed.
