Method and device for determining or assisting in determining secret key, equipment and storage medium
Patent Information
- Application Number
- CN202380008209.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-10
- Publication Date
- 2024-10-15
AI Technical Summary
The OSCORE protocol lacks an effective key management mechanism, resulting in challenges in establishing secure connections in AKMA and GBA scenarios.
By receiving the key identification information sent by the user device, the corresponding key is determined and obtained, and the master key related to OSCORE is determined based on the key, which improves the security and application scenarios of the OSCORE protocol.
It achieves more secure and reliable key management in the OSCORE protocol, broadens its application scenarios, and improves the success rate of secure connections with user equipment and network equipment.
Smart Images

Figure CN118786647A_ABST
Abstract
Description
A method, device, equipment and storage medium for determining or assisting in determining a key Technical Field
[0001] The present disclosure relates to the field of wireless communication technologies, and in particular to a method, apparatus, device, and readable storage medium for determining or assisting in determining a key. Background Art
[0002] The OSCORE protocol is expected to be used to establish security between user equipment (UE) and network devices. However, the OSCORE protocol lacks an effective key management mechanism, and establishing secure connections based on OSCORE in AKMA and GBA scenarios remains an unresolved issue.
[0003] Summary of the Invention
[0004] The present disclosure provides a method, apparatus, device, and readable storage medium for determining or assisting in determining a key.
[0005] In a first aspect, a method for determining a key is provided, the method being performed by a first entity, the method comprising:
[0006] receiving a first message sent by a user equipment, where the first message includes first key identification information;
[0007] determining a first key according to the first key identification information, where the first key is obtained from the second entity according to the first key identification information; the first key is a key corresponding to the first key identification information;
[0008] An OSCORE-related master key is determined based on the first key.
[0009] In some possible implementations, the first message is an OSCORE message.
[0010] In some possible implementations, the first message transmits the first key identification information using an OSCORE parameter, where the OSCORE protocol parameter includes at least one of the following:
[0011] kid context, kid, id context.
[0012] In some possible implementations, the method further includes:
[0013] receiving a second message sent by the user equipment, where the second message includes at least one second key identification information;
[0014] Selecting the first key identification information from the at least one second key identification information;
[0015] Send the first key identification information to the user equipment.
[0016] In some possible implementations, the method further includes:
[0017] The first key is obtained from a second entity according to the first key identification information.
[0018] In some possible implementations, the second key identification information is key identification information determined by the user equipment according to the first interface of the user equipment and conforms to the first protocol corresponding to the first interface.
[0019] In some possible implementations, the first key identification information is key identification information determined by the first entity according to the second interface of the first entity and complies with a second protocol corresponding to the second interface.
[0020] In some possible implementations, the first key identification information is GBA-related key identification information or AKMA-related key identification information.
[0021] In some possible implementations, the second key identification information includes at least one of the following: at least one piece of GBA-related key identification information and at least one piece of AKMA-related key identification information.
[0022] In some possible implementations, the GBA-related key identification information includes at least one of the following: 3GPP-bootstrapping, 3gpp-gba, 3GPP-bootstrapping-uicc, 3gpp-gba-uicc, 3GPP-bootstrapping-digest, 3gpp-gba-digest, B-TID; and / or
[0023] The AKMA-related key identification information includes at least one of the following: 3GPP-AKMA, A-KID.
[0024] In some possible implementations, the first message includes a token, and the token includes the first key identification information.
[0025] In some possible implementations, the token is a token generated by an authentication server according to the first key identification information.
[0026] In some possible implementations, the first key identification information is key identification information determined by the user equipment according to a first interface of the user equipment and conforms to a first protocol corresponding to the first interface.
[0027] In a second aspect, a method for determining a key is provided, the method being performed by a user device, the method comprising:
[0028] A first message is sent to a first entity, wherein the first message includes first key identification information; the first key identification information is used by the first entity to determine a first key based on the first key identification information, and to determine an OSCORE-related master key based on the first key; the first key is obtained from the second entity based on the first key identification information; the first key is the key corresponding to the first key identification information.
[0029] In some possible implementations, the first message is an OSCORE message.
[0030] In some possible implementations, the first message transmits the first key identification information using an OSCORE parameter, where the OSCORE protocol parameter includes at least one of the following:
[0031] kid context, kid, id context.
[0032] In some possible implementations, the method further includes:
[0033] Determining, according to the first interface of the user equipment, a first protocol corresponding to the first interface;
[0034] Determine the first key identification information that complies with the first protocol according to the first protocol.
[0035] In some possible implementations, the method further includes:
[0036] Sending a second message to the first entity, where the second message includes at least one second key identification information;
[0037] Receive the first key identification information sent by the first entity.
[0038] In some possible implementations, the second key identification information is key identification information determined by the user equipment according to the first interface of the user equipment and conforms to the first protocol corresponding to the first interface.
[0039] In some possible implementations, the first key identification information is key identification information determined by the first entity according to the second interface of the first entity and complies with a second protocol corresponding to the second interface.
[0040] In some possible implementations, the first key identification information is GBA-related key identification information or AKMA-related key identification information.
[0041] In some possible implementations, the second key identification information includes at least one of the following: at least one GBA protocol key identification information and at least one AKMA protocol key identification information.
[0042] In some possible implementations, the GBA-related key identification information includes at least one of the following: 3GPP-bootstrapping, 3gpp-gba, 3GPP-bootstrapping-uicc, 3gpp-gba-uicc, 3GPP-bootstrapping-digest, 3gpp-gba-digest, B-TID; and / or
[0043] The AKMA-related key identification information includes at least one of the following: 3GPP-AKMA, A-KID.
[0044] In some possible implementations, the method further includes:
[0045] Sending the first key identification information to the authentication server;
[0046] Receive the token sent by the authentication server, where the token includes the first key identification information.
[0047] In some possible implementations, the first message includes the token, and the token includes the first key identification information.
[0048] In some possible implementations, the method further includes:
[0049] A first protocol corresponding to the first interface is determined according to the first interface of the user equipment, and the first key identification information that complies with the first protocol is determined according to the first protocol.
[0050] According to a third aspect, a device for determining a key is provided, the device comprising:
[0051] a transceiver module configured to receive a first message sent by a user equipment, the first message including first key identification information; determine a first key based on the first key identification information, the first key being obtained from a second entity based on the first key identification information; the first key being a key corresponding to the first key identification information;
[0052] The processing module is configured to determine an OSCORE-related master key based on the first key.
[0053] In a fourth aspect, a device for determining a key is provided, the device comprising:
[0054] The transceiver module is configured to send a first message to a first entity, wherein the first message includes first key identification information; the first key identification information is used by the first entity to determine a first key based on the first key identification information, and to determine an OSCORE-related master key based on the first key; the first key is obtained from the second entity based on the first key identification information; the first key is the key corresponding to the first key identification information.
[0055] In a fifth aspect, an electronic device is provided, comprising a processor and a memory, wherein:
[0056] The memory is used to store computer programs;
[0057] The processor is configured to execute the computer program to implement the first aspect or any possible design of the first aspect.
[0058] In a sixth aspect, an electronic device is provided, comprising a processor and a memory, wherein:
[0059] The memory is used to store computer programs;
[0060] The processor is configured to execute the computer program to implement the second aspect or any possible design of the second aspect.
[0061] In the seventh aspect, a computer-readable storage medium is provided, in which instructions are stored. When the instructions are called and executed on a computer, the computer executes the above-mentioned first aspect or any possible design of the first aspect.
[0062] In an eighth aspect, a computer-readable storage medium stores instructions, which, when called and executed on a computer, enable the computer to execute the above-mentioned second aspect or any possible design of the second aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] The drawings described herein are used to provide a further understanding of the embodiments of the present disclosure and constitute a part of this application. The illustrative embodiments of the embodiments of the present disclosure and their descriptions are used to explain the embodiments of the present disclosure and do not constitute an improper limitation of the embodiments of the present disclosure. In the drawings:
[0064] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0065] FIG1 is a schematic diagram of a wireless communication system architecture provided by an embodiment of the present disclosure;
[0066] FIG2 is an interaction diagram of a method for determining a key provided by an embodiment of the present disclosure;
[0067] FIG3 is an interaction diagram of another method for determining a key provided by an embodiment of the present disclosure;
[0068] FIG4 is an interaction diagram of another method for determining a key provided by an embodiment of the present disclosure;
[0069] FIG5 is an interaction diagram of another method for determining a key provided by an embodiment of the present disclosure;
[0070] FIG6 is an interaction diagram of another method for determining a key provided by an embodiment of the present disclosure;
[0071] FIG7 is a schematic diagram of another wireless communication system architecture provided by an embodiment of the present disclosure;
[0072] FIG8 is an interaction diagram of a method for determining a key provided by an embodiment of the present disclosure;
[0073] FIG9 is an interaction diagram of another method for determining a key provided by an embodiment of the present disclosure;
[0074] FIG10 is a flowchart of a method for determining a key provided by an embodiment of the present disclosure;
[0075] FIG11 is a flowchart of another method for determining a key provided by an embodiment of the present disclosure;
[0076] FIG12 is a flowchart of a method for determining a key provided by an embodiment of the present disclosure;
[0077] FIG13 is a flowchart of another method for determining a key provided by an embodiment of the present disclosure;
[0078] FIG14 is a flowchart of another method for determining a key provided by an embodiment of the present disclosure;
[0079] FIG15 is a flowchart of another method for determining a key provided by an embodiment of the present disclosure;
[0080] FIG16 is a flowchart of another method for determining a key provided by an embodiment of the present disclosure;
[0081] FIG17 is a structural diagram of a device for determining a key provided by an embodiment of the present disclosure;
[0082] FIG18 is a structural diagram of an electronic device provided by an embodiment of the present disclosure;
[0083] FIG19 is a structural diagram of a device for determining a key provided by an embodiment of the present disclosure;
[0084] FIG20 is a structural diagram of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0085] The embodiments of the present disclosure are now further described with reference to the accompanying drawings and specific implementation methods.
[0086] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all possible implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
[0087] The terms used in the embodiments of the present disclosure are for the purpose of describing specific embodiments only and are not intended to limit the embodiments of the present disclosure. The singular forms "a," "an," and "the" used in the embodiments of the present disclosure and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" as used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0088] It should be understood that although the terms first, second, third, etc. may be used to describe various information in the embodiments of the present disclosure, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from each other. For example, without departing from the scope of the embodiments of the present disclosure, the first indication information may also be referred to as the second indication information, and similarly, the second indication information may also be referred to as the first indication information. Depending on the context, the words "if" and "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0089] The embodiments of the present disclosure are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present disclosure, and should not be understood as limiting the present disclosure.
[0090] The embodiments of the present disclosure may be applied to a wireless communication system as shown in FIG1 , which may include a user equipment (UE), a first entity, and a second entity.
[0091] The UE may also be a client or terminal device.
[0092] For example, the first entity may be a resource server (RS) or an application function (AF).
[0093] Exemplarily, the second entity may be a core network device, such as an Akma Anchor Function (AANF) and a BSF Bootstrapping Server Functionality.
[0094] The Generic Bootstrapping Architecture (GBA) protocol and the Authentication and Key management for Applications based on 3GPP credentials (AKMA) protocol may allow the UE and the application function of the first entity to share the same public key, which is used in the application session establishment process.
[0095] The Internet of Things (IoT) friendly protocol for the GBA AKMA scenario can be implemented based on the Object Security for Constrained RESTful Environments (OSCORE) protocol in the Internet Engineering Task Force (IETF).
[0096] It should be noted that the devices in the wireless communication system shown in FIG1 are merely examples, and may also include other network devices, such as access network devices, etc. This embodiment of the present application does not limit this.
[0097] The present disclosure provides a method for determining a key. FIG2 is an interactive diagram illustrating a method for determining a key according to an exemplary embodiment. As shown in FIG2 , the method includes S201-S203:
[0098] S201. A UE sends a first message to a first entity, where the first message includes first key identification information.
[0099] In one example, the first entity is a RS.
[0100] In some possible implementations, the first message is an OSCORE message.
[0101] In some possible implementations, the first message transmits the first key identification information using an OSCORE parameter, where the OSCORE protocol parameter includes at least one of the following:
[0102] kid context, kid, id context.
[0103] In some possible implementations, the first key identification information is GBA-related key identification information.
[0104] In one example, the GBA-related key identification information is at least one of the following:
[0105] 3GPP-bootstrapping, 3gpp-gba, 3GPP-bootstrapping-uicc, 3gpp-gba-uicc, 3GPP-bootstrapping-digest, 3gpp-gba-digest, B-TID.
[0106] In some possible implementations, the first key identification information is AKMA-related key identification information.
[0107] In an example, the AKMA-related key identification information is at least one of the following: 3GPP-AKMA, A-KID.
[0108] S202: The first entity determines a first key according to the first key identification information, where the first key is obtained from the second entity according to the first key identification information; the first key is a key corresponding to the first key identification information.
[0109] S203: The first entity determines an OSCORE-related master secret based on the first key.
[0110] The exemplary embodiments of the present disclosure construct a method for determining or assisting in determining a key for an OSCORE scenario. The first entity can determine the first key based on the first key identification information sent by the user equipment, and the first key is obtained from the second entity based on the first key identification information, so as to use the first key as the OSCORE master key, thereby improving the security of the OSCORE protocol and broadening the application scenarios of OSCORE. At the same time, when the first entity obtains the first key based on the first key identification information sent by the user equipment, the identity information of the UE authenticated by the second entity can be used to make the acquisition process of the first key more secure.
[0111] An embodiment of the present disclosure provides a method for determining a key, the method comprising:
[0112] S300: The UE determines, according to a first interface of the user equipment, a first protocol corresponding to the first interface, and determines, according to the first protocol, the first key identification information that complies with the first protocol.
[0113] In one example, S301 to S303 may be further executed after S300 .
[0114] The contents of S301-S303 are the same as those of S201-S203, see S201-S203, and will not be repeated here.
[0115] According to the method for determining a key provided by the exemplary embodiment of the present disclosure, the user equipment can determine the first key identification information that complies with the first protocol according to the first protocol corresponding to its own first interface, and provide it to the first entity. When the first entity obtains the first key according to the first key identification information sent by the user equipment, it can use the identity information of the UE authenticated by the second entity, so that the process of obtaining the first key is more secure.
[0116] The present disclosure provides a method for determining a key. FIG4 is an interactive diagram illustrating a method for determining a key according to an exemplary embodiment. As shown in FIG4 , the method includes:
[0117] S401, negotiation process between user equipment UE and a first entity.
[0118] In one example, the negotiation process includes:
[0119] S401-1. The UE sends a second message to the first entity, where the second message includes at least one second key identification information.
[0120] In some possible implementations, the second key identification information includes at least one of the following: at least one piece of GBA-related key identification information and at least one piece of AKMA-related key identification information.
[0121] In one example, the GBA-related key identification information is at least one of the following:
[0122] 3GPP-bootstrapping, 3gpp-gba, 3GPP-bootstrapping-uicc, 3gpp-gba-uicc, 3GPP-bootstrapping-digest, 3gpp-gba-digest, B-TID.
[0123] In an example, the AKMA-related key identification information is at least one of the following: 3GPP-AKMA, A-KID.
[0124] In some possible implementations, the second key identification information is key identification information determined by the user equipment according to the first interface of the user equipment and conforms to the first protocol corresponding to the first interface.
[0125] In one example, when the user equipment determines that the first protocol supported by the first interface of the user equipment only includes the GBA protocol, the user equipment selects at least one second key identification information from the GBA-related key identification information and sends it to the first entity through a second message.
[0126] In one example, when the user equipment determines that the first protocol supported by the first interface of the user equipment only includes the AKMA protocol, the user equipment selects at least one second key identification information from the AKMA-related key identification information and sends it to the first entity through a second message.
[0127] In one example, when the user equipment determines that the first protocol supported by the first interface of the user equipment includes the GBA protocol and the AKMA protocol, the user equipment can select at least one second key identification information from the GBA-related key identification information and / or the AKMA-related key identification information, and send it to the first entity through a second message.
[0128] S401-2: The first entity selects the first key identification information from the at least one second key identification information.
[0129] In some possible implementations, the first key identification information is key identification information determined by the first entity according to the second interface of the first entity and complies with a second protocol corresponding to the second interface.
[0130] In one example, upon receiving at least one second key identification information sent by a user equipment, the first entity determines whether the second key identification information is GBA-related key identification information, AKMA-related key identification information, or both. The first entity selects one of the at least one second key identification information as the first key identification information based on a second protocol supported by its second interface.
[0131] In one example, when the second protocol supported by the second interface of the first entity does not match the first protocol corresponding to the at least one second key identification information sent by the user equipment, the negotiation fails.
[0132] S401-3. The first entity sends the first key identification information to the user equipment.
[0133] In some possible implementations, the first entity sends indication information to the user equipment, where the indication information includes the first key identification information.
[0134] S401-4: The first entity obtains a first key from the second entity according to the first key identification information, where the first key is a key corresponding to the first key identification information.
[0135] In one example, the second entity is a core network device.
[0136] In some possible implementations, S401 - 4 further includes recording a mapping relationship, where the mapping relationship is a correspondence between the first key identification information and the first key.
[0137] In some possible implementations, the execution order of S401 - 3 and S401 - 4 may be interchanged.
[0138] In some possible implementations, the order of the steps in S401 can be arbitrarily combined based on the rationality of the process.
[0139] S402: The UE sends a first message to a first entity, where the first message includes first key identification information.
[0140] In some possible implementations, the first message is an OSCORE message.
[0141] In some possible implementations, the first message transmits the first key identification information using an OSCORE parameter, where the OSCORE protocol parameter includes at least one of the following:
[0142] kid context, kid, id context.
[0143] In some possible implementations, the first key identification information is GBA-related key identification information.
[0144] In one example, the GBA-related key identification information is at least one of the following:
[0145] 3GPP-bootstrapping, 3gpp-gba, 3GPP-bootstrapping-uicc, 3gpp-gba-uicc, 3GPP-bootstrapping-digest, 3gpp-gba-digest, B-TID. In some possible implementations, the first key identification information is AKMA-related key identification information.
[0146] In an example, the AKMA-related key identification information is at least one of the following: 3GPP-AKMA, A-KID.
[0147] S403: The first entity determines a first key corresponding to the first key identification information.
[0148] In some possible implementations, a first key corresponding to the first key identification information is determined according to the mapping relationship.
[0149] S404: The first entity determines an OSCORE-related master key based on the first key.
[0150] In the method for determining a key provided by an exemplary embodiment of the present disclosure, a user device may send corresponding second key identification information to a first entity based on a first protocol supported by its interface, such as at least one of the GBA protocol and the AKMA protocol. The first entity selects one of the received second key identification information as the first key identification information, which allows the first entity to have more key identification information to select from for obtaining the first key, thereby increasing the possibility of successfully determining the master key associated with the OSCORE.
[0151] The present disclosure provides a method for determining a key. FIG5 is an interactive diagram illustrating a method for determining a key according to an exemplary embodiment. As shown in FIG5 , the method includes:
[0152] S501: Negotiation process between user equipment UE and a first entity.
[0153] The negotiation process includes:
[0154] S501-1. The UE sends a second message to the first entity, where the second message includes at least one second key identification information.
[0155] In some possible implementations, the second key identification information includes at least one of the following: at least one piece of GBA-related key identification information and at least one piece of AKMA-related key identification information.
[0156] In one example, the GBA-related key identification information is at least one of the following:
[0157] 3GPP-bootstrapping, 3gpp-gba, 3GPP-bootstrapping-uicc, 3gpp-gba-uicc, 3GPP-bootstrapping-digest, 3gpp-gba-digest, B-TID.
[0158] In an example, the AKMA-related key identification information is at least one of the following: 3GPP-AKMA, A-KID.
[0159] In some possible implementations, the second key identification information is key identification information determined by the user equipment according to the first interface of the user equipment and conforms to the first protocol corresponding to the first interface.
[0160] In one example, when the user equipment determines that the first protocol supported by the first interface of the user equipment only includes the GBA protocol, the user equipment selects at least one second key identification information from the GBA-related key identification information and sends it to the first entity through a second message.
[0161] In one example, when the user equipment determines that the first protocol supported by the first interface of the user equipment only includes the AKMA protocol, the user equipment selects at least one second key identification information from the AKMA-related key identification information and sends it to the first entity through a second message.
[0162] In one example, when the user equipment determines that the first protocol supported by the first interface of the user equipment includes the GBA protocol and the AKMA protocol, the user equipment can select at least one second key identification information from the GBA-related key identification information and / or the AKMA-related key identification information, and send it to the first entity through a second message.
[0163] S501-2: The first entity selects the first key identification information from the at least one second key identification information.
[0164] In some possible implementations, the first key identification information is key identification information determined by the first entity according to the second interface of the first entity and complies with a second protocol corresponding to the second interface.
[0165] In one example, upon receiving at least one second key identification information sent by a user equipment, the first entity determines whether the second key identification information is GBA-related key identification information, AKMA-related key identification information, or both. The first entity selects one of the at least one second key identification information as the first key identification information based on a second protocol supported by its second interface.
[0166] In one example, when the second protocol supported by the second interface of the first entity does not match the first protocol corresponding to the at least one second key identification information sent by the user equipment, the negotiation fails.
[0167] S501-3. The first entity sends the first key identification information to the user equipment.
[0168] In some possible implementations, the first entity sends indication information to the user equipment, where the indication information includes the first key identification information.
[0169] S501-4: The first entity obtains a first key from the second entity according to the first key identification information, where the first key is a key corresponding to the first key identification information.
[0170] In some possible implementations, S501 - 4 further includes recording a mapping relationship, where the mapping relationship is a correspondence between the first key identification information and the first key.
[0171] In some possible implementations, the execution order of S501 - 3 and S501 - 4 may be interchanged.
[0172] In some possible implementations, the order of the steps in S501 can be arbitrarily combined based on the rationality of the process.
[0173] S502: The UE sends a first message to a first entity, where the first message includes first key identification information.
[0174] In some possible implementations, the first message is an OSCORE message.
[0175] In some possible implementations, the first message transmits the first key identification information using an OSCORE parameter, where the OSCORE protocol parameter includes at least one of the following:
[0176] kid context, kid, id context.
[0177] In some possible implementations, the first key identification information is GBA-related key identification information.
[0178] In one example, the GBA-related key identification information is at least one of the following:
[0179] 3GPP-bootstrapping, 3gpp-gba, 3GPP-bootstrapping-uicc, 3gpp-gba-uicc, 3GPP-bootstrapping-digest, 3gpp-gba-digest, B-TID.
[0180] In some possible implementations, the first key identification information is AKMA-related key identification information.
[0181] In an example, the AKMA-related key identification information is at least one of the following: 3GPP-AKMA, A-KID.
[0182] S503: The first entity determines a first key corresponding to the first key identification information.
[0183] In some possible implementations, a first key corresponding to the first key identification information is determined according to the mapping relationship.
[0184] S504: The first entity determines an OSCORE-related master key based on the first key.
[0185] S505: The first entity sends the first key to the user equipment.
[0186] In some possible implementations, the execution order of S504 and S505 may be interchanged.
[0187] S506: The user equipment determines an OSCORE-related master key based on the first key.
[0188] The present disclosure provides a method for determining a key. FIG6 is an interactive diagram illustrating a method for determining a key according to an exemplary embodiment. As shown in FIG6 , the method includes:
[0189] S601, negotiation process between user equipment UE and the first entity. The content of the negotiation process S601 is the same as that of S401, see S401, and will not be repeated here.
[0190] S602: The first entity determines an OSCORE-related master key based on the first key.
[0191] S603: The first entity sends the first key identifier to the user equipment.
[0192] In some possible implementations, the execution order of S602 and S603 may be interchanged.
[0193] S604: The user equipment determines an OSCORE-related master key based on the first key.
[0194] The embodiments of the present disclosure may be applied to a wireless communication system as shown in FIG7 , which may include a user equipment (UE), a first entity, a second entity, and an authentication server.
[0195] The UE may also be a client or terminal device.
[0196] Exemplarily, the first entity may be a resource server (RS) or an application function (AF).
[0197] Exemplarily, the second entity may be a core network device of a 5G network, such as an Akma Anchor Function (AANF) and a BSF Bootstrapping Server Functionality.
[0198] The authentication server is used to generate a token.
[0199] It should be noted that the devices in the wireless communication system shown in FIG7 are merely examples, and may also include other network devices, such as access network devices, etc. This embodiment of the present application does not limit this.
[0200] The present disclosure provides a method for determining a key. FIG8 is an interactive diagram illustrating a method for determining a key according to an exemplary embodiment. As shown in FIG8 , the method includes:
[0201] S800, authentication process.
[0202] The authentication process includes:
[0203] S800-1. The UE sends first key identification information to the authentication server.
[0204] S800-2: The authentication server generates a token according to the first key identification information, where the token includes the first key identification information.
[0205] S800-3: The authentication server sends the token to the UE.
[0206] S801. The UE sends a first message to a first entity, where the first message includes the token, and the token includes first key identification information.
[0207] In one example, the first entity is a RS.
[0208] S802: The first entity obtains the first key from the second entity according to the first key identification information, where the first key is the key corresponding to the first key identification information.
[0209] In one example, the second entity is a core network device.
[0210] S803: The first entity determines an OSCORE-related master secret based on the first key.
[0211] In the method for determining the key provided in the exemplary embodiment of the present disclosure, the user device generates a token including first key identification information through the authentication server, and sends a first message to the first entity based on the token, which can further improve the security in the process of determining the master key related to OSCORE.
[0212] The present disclosure provides a method for determining a key. FIG9 is an interactive diagram illustrating a method for determining a key according to an exemplary embodiment. As shown in FIG9 , the method includes S901-S905:
[0213] S901: Negotiation process between user equipment UE and a first entity.
[0214] The negotiation process includes:
[0215] S901-1. The UE sends a second message to the first entity, where the second message includes at least one second key identification information.
[0216] In some possible implementations, the second key identification information includes at least one of the following: at least one piece of GBA-related key identification information and at least one piece of AKMA-related key identification information.
[0217] In one example, the GBA-related key identification information is at least one of the following:
[0218] 3GPP-bootstrapping, 3gpp-gba, 3GPP-bootstrapping-uicc, 3gpp-gba-uicc, 3GPP-bootstrapping-digest, 3gpp-gba-digest, B-TID.
[0219] In an example, the AKMA-related key identification information is at least one of the following: 3GPP-AKMA, A-KID.
[0220] In some possible implementations, the second key identification information is key identification information determined by the user equipment according to the first interface of the user equipment and conforms to the first protocol corresponding to the first interface.
[0221] In one example, when the user equipment determines that the first protocol supported by the first interface of the user equipment only includes the GBA protocol, the user equipment selects at least one second key identification information from the GBA-related key identification information and sends it to the first entity through a second message.
[0222] In one example, when the user equipment determines that the first protocol supported by the first interface of the user equipment only includes the AKMA protocol, the user equipment selects at least one second key identification information from the AKMA-related key identification information and sends it to the first entity through a second message.
[0223] In one example, when the user equipment determines that the first protocol supported by the first interface of the user equipment includes the GBA protocol and the AKMA protocol, the user equipment may select at least one second key identification information from the GBA-related key identification information and / or the AKMA-related key identification information, and send the second message to the first entity. S901-2: The first entity selects the first key identification information from the at least one second key identification information.
[0224] In some possible implementations, the first key identification information is key identification information determined by the first entity according to the second interface of the first entity and complies with a second protocol corresponding to the second interface.
[0225] In one example, upon receiving at least one second key identification information sent by a user equipment, the first entity determines whether the second key identification information is GBA-related key identification information, AKMA-related key identification information, or both. The first entity selects one of the at least one second key identification information as the first key identification information based on a second protocol supported by its second interface.
[0226] In one example, when the second protocol supported by the second interface of the first entity does not match the protocol corresponding to the at least one second key identification information sent by the user equipment, the negotiation fails.
[0227] S901-3. The first entity sends the first key identification information to the user equipment.
[0228] In some possible implementations, the first entity sends indication information to the user equipment, where the indication information includes the first key identification information.
[0229] S901-4. The first entity obtains a first key from the second entity according to the first key identification information, where the first key is a key corresponding to the first key identification information.
[0230] In some possible implementations, S901 - 4 further includes recording a mapping relationship, where the mapping relationship is a correspondence between the first key identification information and the first key.
[0231] In some possible implementations, the execution order of S901 - 3 and S901 - 4 may be interchanged.
[0232] In some possible implementations, the order of the steps in S901 can be arbitrarily combined based on the rationality of the process.
[0233] S902, authentication process.
[0234] The authentication process in S902 is the same as that in S800 , refer to S800 , and will not be repeated here.
[0235] S903: The UE sends a first message to the first entity, where the first message includes the token, and the token includes first key identification information. S904: The first entity determines the first key.
[0236] In some possible implementations, the first entity determines the key associated with the first key identification information as the first key.
[0237] S905: The first entity determines an OSCORE-related master secret based on the first key.
[0238] In the method for determining a key provided by the exemplary embodiments of the present disclosure, a first entity receives information indicating that a user equipment can determine at least one second key identification information based on a first protocol supported by its interface. The first entity selects one of the received second key identification information as the first key identification information based on the second protocol supported by its interface. This allows the first entity to have more key identification information to choose from for obtaining the first key, thereby increasing the likelihood of successful negotiation. Furthermore, when the first entity obtains the first key based on the first key identification information sent by the user equipment, it can utilize the identity information of the UE authenticated by the second entity, making the process of obtaining the first key more secure.
[0239] The present disclosure provides a method for determining a key, which is performed by a first entity. FIG10 is a flow chart of a method for determining a key according to an exemplary embodiment. As shown in FIG10 , the method includes S1001-S1003:
[0240] S1001: Receive a first message sent by a UE, where the first message includes first key identification information.
[0241] In some possible implementations, the first message is an OSCORE message.
[0242] In some possible implementations, the first message transmits the first key identification information using an OSCORE parameter, where the OSCORE protocol parameter includes at least one of the following:
[0243] kid context, kid, id context.
[0244] In some possible implementations, the first key identification information is GBA-related key identification information.
[0245] In one example, the GBA-related key identification information is at least one of the following:
[0246] 3GPP-bootstrapping, 3gpp-gba, 3GPP-bootstrapping-uicc, 3gpp-gba-uicc, 3GPP-bootstrapping-digest, 3gpp-gba-digest, B-TID.
[0247] In some possible implementations, the first key identification information is AKMA-related key identification information.
[0248] In an example, the AKMA-related key identification information is at least one of the following: 3GPP-AKMA, A-KID.
[0249] In some possible implementations, the first key identification information is key identification information determined by the user equipment according to a first interface of the user equipment and conforms to a first protocol corresponding to the first interface.
[0250] S1002: Obtain the first key from a second entity according to the first key identification information, where the first key is the key corresponding to the first key identification information.
[0251] S1003: The first entity determines an OSCORE-related master secret based on the first key.
[0252] In some possible implementations, the first key identification information is determined based on a first protocol supported by a first interface of a user device. The first entity determines a corresponding first key based on the first key identification information. When the first entity includes the first key, the first key is determined as a master secret associated with an OSCORE. When the first entity does not include the first key, the first key is obtained from a second entity, and the first key is used to determine a master secret associated with an OSCORE.
[0253] The exemplary embodiments of the present disclosure construct a method for determining keys for AKMA and GBA scenarios, where a first entity can determine a first key based on first key identification information sent by a user device, and the first key is obtained from a second entity based on the first key identification information, so as to use the first key as an OSCORE master key, thereby improving the security of the OSCORE protocol and broadening the application scenarios of OSCORE.
[0254] The present disclosure provides a method for determining a key, which is performed by a first entity. FIG11 is a flow chart of a method for determining a key according to an exemplary embodiment. As shown in FIG8 , the method includes S1101-S1107:
[0255] S1101: Receive a second message sent by a UE, where the second message includes at least one second key identification information.
[0256] In some possible implementations, the second key identification information includes at least one of the following: at least one piece of GBA-related key identification information and at least one piece of AKMA-related key identification information.
[0257] In one example, the GBA-related key identification information is at least one of the following:
[0258] 3GPP-bootstrapping, 3gpp-gba, 3GPP-bootstrapping-uicc, 3gpp-gba-uicc, 3GPP-bootstrapping-digest, 3gpp-gba-digest, B-TID.
[0259] In an example, the AKMA-related key identification information is at least one of the following: 3GPP-AKMA, A-KID.
[0260] In some possible implementations, the second key identification information is key identification information determined by the user equipment according to the first interface of the user equipment and conforms to the first protocol corresponding to the first interface.
[0261] In one example, when the user equipment determines that the first protocol supported by the first interface of the user equipment only includes the GBA protocol, the user equipment selects at least one second key identification information from the GBA-related key identification information and sends it to the first entity through a second message.
[0262] In one example, when the user equipment determines that the first protocol supported by the first interface of the user equipment only includes the AKMA protocol, the user equipment selects at least one second key identification information from the AKMA-related key identification information and sends it to the first entity through a second message.
[0263] In one example, when the user equipment determines that the first protocol supported by the first interface of the user equipment includes supporting the GBA protocol and the AKMA protocol, the user equipment can select at least one second key identification information from the GBA-related key identification information and / or the AKMA-related key identification information, and send it to the first entity through a second message.
[0264] S1102: Select the first key identification information from the at least one second key identification information.
[0265] In some possible implementations, the first key identification information is key identification information determined by the first entity according to the second interface of the first entity and complies with a second protocol corresponding to the second interface.
[0266] In one example, upon receiving at least one second key identification information sent by a user equipment, the first entity determines a type of the second identification information, for example, whether it is GBA-related key identification information, AKMA-related key identification information, or both. The first entity selects one of the at least one second key identification information as the first key identification information based on a second protocol supported by its second interface.
[0267] In one example, when the second protocol supported by the second interface of the first entity does not match the first protocol corresponding to the at least one second key identification information sent by the user equipment, the negotiation fails.
[0268] S1103: Obtain a first key from a second entity according to the first key identification information, where the first key is a key corresponding to the first key identification information.
[0269] In some possible implementations, S1004 further includes recording a mapping relationship, where the mapping relationship is a correspondence between the first key identification information and the first key.
[0270] S1104: Send the first key identification information to the user equipment.
[0271] In some possible implementations, indication information is sent to the user equipment, where the indication information includes the first key identification information.
[0272] In some possible implementations, the execution order of S1103 and S1104 may be interchanged.
[0273] In some possible implementations, the order of steps S1101 to S1104 can be arbitrarily combined based on the rationality of the process.
[0274] S1105: Receive a first message sent by the UE, where the first message includes first key identification information.
[0275] In some possible implementations, the first message is an OSCORE message.
[0276] In some possible implementations, the first message transmits the first key identification information using an OSCORE parameter, where the OSCORE protocol parameter includes at least one of the following:
[0277] kid context, kid, id context.
[0278] In some possible implementations, the first key identification information is GBA-related key identification information.
[0279] In one example, the GBA-related key identification information is at least one of the following:
[0280] 3GPP-bootstrapping, 3gpp-gba, 3GPP-bootstrapping-uicc, 3gpp-gba-uicc, 3GPP-bootstrapping-digest, 3gpp-gba-digest, B-TID. In some possible implementations, the first key identification information is AKMA-related key identification information.
[0281] In an example, the AKMA-related key identification information is at least one of the following: 3GPP-AKMA, A-KID.
[0282] S1106: Determine the first key.
[0283] In some possible implementations, a first key corresponding to the first key identification information is determined according to the mapping relationship.
[0284] S1107: The first entity determines an OSCORE-related master key based on the first key.
[0285] In the method for determining a key provided by the exemplary embodiments of the present disclosure, a first entity receives information indicating that a user equipment can determine at least one second key identification information based on a first protocol supported by its interface. The first entity selects one of the received second key identification information as the first key identification information based on the second protocol supported by its interface. This allows the first entity to have more key identification information to choose from for obtaining the first key, thereby increasing the likelihood of successful negotiation. Furthermore, when the first entity obtains the first key based on the first key identification information sent by the user equipment, it can utilize the identity information of the UE authenticated by the second entity, making the process of obtaining the first key more secure.
[0286] The present disclosure provides a method for determining a key, which is executed by a user device. FIG12 is a flowchart of a method for determining a key according to an exemplary embodiment. As shown in FIG12 , the method includes S1201:
[0287] S1201: Send a first message to a first entity, where the first message includes first key identification information.
[0288] In some possible implementations, the first message is an OSCORE message.
[0289] In some possible implementations, the first message transmits the first key identification information using an OSCORE parameter, where the OSCORE protocol parameter includes at least one of the following:
[0290] kid context, kid, id context.
[0291] In some possible implementations, the first key identification information is GBA-related key identification information.
[0292] In one example, the GBA-related key identification information is at least one of the following:
[0293] 3GPP-bootstrapping, 3gpp-gba, 3GPP-bootstrapping-uicc, 3gpp-gba-uicc, 3GPP-bootstrapping-digest, 3gpp-gba-digest, B-TID.
[0294] In some possible implementations, the first key identification information is AKMA-related key identification information.
[0295] In an example, the AKMA-related key identification information is at least one of the following: 3GPP-AKMA, A-KID.
[0296] The exemplary embodiments of this disclosure provide a method for assisting key determination in AKMA and GBA scenarios. A user device provides first key identification information to a first entity, enabling the first entity to determine a first key based on the first key identification information. The first key is obtained from a second entity based on the first key identification information. This improves the security of the OSCORE protocol and broadens its application scenarios.
[0297] The present disclosure provides a method for determining a key, which is executed by a user device. FIG13 is a flowchart of a method for determining a key according to an exemplary embodiment. As shown in FIG13 , the method includes S1300-S1301:
[0298] S1300: Determine, according to a first interface of the user equipment, a first protocol corresponding to the first interface, and determine, according to the first protocol, first key identification information that complies with the first protocol.
[0299] S1301: Send a first message to a first entity, where the first message includes first key identification information.
[0300] The content in S1301 is the same as that in S1201. Please refer to S1201 and will not be repeated here.
[0301] The method for determining a key provided by an exemplary embodiment of the present disclosure determines, based on a first protocol supported by a first interface of a user device, first key identification information that complies with the first protocol, and provides the information to a first entity, so that the first entity can determine a first key based on the first key identification information, and the first key is obtained from a second entity based on the first key identification information. This improves the security of determining a master key related to OSCORE.
[0302] The present disclosure provides a method for determining a key, which is executed by a user device. FIG14 is a flowchart of a method for determining a key according to an exemplary embodiment. As shown in FIG14 , the method includes S1401-S1402:
[0303] S1401: Determine, according to a first interface of the user equipment, a first protocol corresponding to the first interface, and determine, according to the first protocol, first key identification information that complies with the first protocol.
[0304] S1402: Send first key identification information to the authentication server.
[0305] S1403: Receive a token sent by the authentication server, where the token includes the first key identification information.
[0306] S1404: Send a first message to a first entity, where the first message includes the token, and the token includes the first key identification information.
[0307] The content in S1404 is the same as that in S1201. Please refer to S1201 and will not be repeated here.
[0308] In the method for determining the key provided in the exemplary embodiment of the present disclosure, the user device generates a token including first key identification information through the authentication server, and sends a first message to the first entity based on the token, which can further improve the security in the process of determining the master key related to OSCORE.
[0309] The present disclosure provides a method for determining a key, which is executed by a user device. FIG15 is a flowchart of a method for determining a key according to an exemplary embodiment. As shown in FIG15 , the method includes S1501-S1503:
[0310] S1501: Send a second message to a first entity, where the second message includes at least one second key identification information.
[0311] In some possible implementations, the second key identification information includes at least one of the following: at least one piece of GBA-related key identification information and at least one piece of AKMA-related key identification information.
[0312] In one example, the GBA-related key identification information is at least one of the following:
[0313] 3GPP-bootstrapping, 3gpp-gba, 3GPP-bootstrapping-uicc, 3gpp-gba-uicc, 3GPP-bootstrapping-digest, 3gpp-gba-digest, B-TID.
[0314] In an example, the AKMA-related key identification information is at least one of the following: 3GPP-AKMA, A-KID.
[0315] In some possible implementations, the second key identification information is key identification information determined by the user equipment according to the first interface of the user equipment and conforms to the first protocol corresponding to the first interface.
[0316] In one example, when the user equipment determines that the first protocol supported by the first interface of the user equipment only includes the GBA protocol, the user equipment selects at least one second key identification information from the GBA-related key identification information and sends it to the first entity through a second message.
[0317] In one example, when the user equipment determines that the first protocol supported by the first interface of the user equipment only includes the AKMA protocol, the user equipment selects at least one second key identification information from the AKMA-related key identification information and sends it to the first entity through a second message.
[0318] In one example, when the user equipment determines that the first protocol supported by the first interface of the user equipment includes supporting the GBA protocol and the AKMA protocol, the user equipment can select at least one second key identification information from the GBA-related key identification information and / or the AKMA-related key identification information, and send it to the first entity through a second message.
[0319] S1502: Receive first key identification information sent by the first entity.
[0320] In some possible implementations, the first key identification information is key identification information determined by the first entity according to the second interface of the first entity and complies with a second protocol corresponding to the second interface.
[0321] S1503: Send a first message to the first entity, where the first message includes first key identification information.
[0322] The content in S1503 is the same as that in S1201. Please refer to S1201 and will not be repeated here.
[0323] In the key determination method provided in the exemplary embodiments of the present disclosure, a user device can determine at least one piece of second key identification information based on a first protocol supported by its interface and provide the information to a first entity. The first entity can increase the probability of selecting one of the received second key identification information as the first key identification information based on the second protocol supported by its interface, thereby increasing the likelihood of successful negotiation.
[0324] The present disclosure provides a method for determining a key, which is executed by a user device. FIG16 is a flowchart of a method for determining a key according to an exemplary embodiment. As shown in FIG16 , the method includes S1601-S1605:
[0325] S1601: Send a second message to a first entity, where the second message includes at least one second key identification information.
[0326] In some possible implementations, the second key identification information includes at least one of the following: at least one piece of GBA-related key identification information and at least one piece of AKMA-related key identification information.
[0327] In one example, the GBA-related key identification information is at least one of the following:
[0328] 3GPP-bootstrapping, 3gpp-gba, 3GPP-bootstrapping-uicc, 3gpp-gba-uicc, 3GPP-bootstrapping-digest, 3gpp-gba-digest, B-TID.
[0329] In an example, the AKMA-related key identification information is at least one of the following: 3GPP-AKMA, A-KID.
[0330] In some possible implementations, the second key identification information is key identification information determined by the user equipment according to the first interface of the user equipment and conforms to the first protocol corresponding to the first interface.
[0331] In one example, when the user equipment determines that the first protocol supported by the first interface of the user equipment only includes the GBA protocol, the user equipment selects at least one second key identification information from the GBA-related key identification information and sends it to the first entity through a second message.
[0332] In one example, when the user equipment determines that the first protocol supported by the first interface of the user equipment only includes the AKMA protocol, the user equipment selects at least one second key identification information from the AKMA-related key identification information and sends it to the first entity through a second message.
[0333] In one example, when the user equipment determines that the first protocol supported by the first interface of the user equipment includes supporting the GBA protocol and the AKMA protocol, the user equipment can select at least one second key identification information from the GBA-related key identification information and / or the AKMA-related key identification information, and send it to the first entity through a second message.
[0334] S1602: Receive first key identification information sent by the first entity.
[0335] In some possible implementations, the first key identification information is key identification information determined by the first entity according to the second interface of the first entity and complies with a second protocol corresponding to the second interface.
[0336] S1603: Send the first key identification information to the authentication server.
[0337] S1604: Receive a token sent by the authentication server, where the token includes the first key identification information.
[0338] S1605: Send a first message to a first entity, where the first message includes the token, and the token includes the first key identification information.
[0339] In the method for determining the key provided in the exemplary embodiment of the present disclosure, the user device generates a token including first key identification information through the authentication server, and sends a first message to the first entity based on the token, which can further improve the security in the process of determining the master key related to OSCORE.
[0340] Based on the same concept as the above method embodiment, the present disclosure also provides an electronic device that can have the functions of the first entity in the above method embodiment and is used to perform the steps performed by the first entity in the above embodiment. This function can be implemented in hardware, or in software or hardware executing corresponding software implementations. The hardware or software includes one or more modules corresponding to the above functions.
[0341] In a possible implementation, the electronic device 1700 shown in FIG17 may serve as the first entity involved in the above method embodiment and execute the steps performed by the first entity in the above method embodiment.
[0342] The first entity 1700 includes a transceiver module 1701 and a processing module 1702 .
[0343] The transceiver module 1701 is configured to receive a first message sent by a user equipment, the first message including first key identification information; determine a first key based on the first key identification information, the first key being obtained from a second entity based on the first key identification information; the first key being a key corresponding to the first key identification information;
[0344] The processing module 1702 is configured to determine an OSCORE-related master key based on the first key.
[0345] In some possible implementations, the first message is an OSCORE message.
[0346] In some possible implementations, the first message transmits the first key identification information using an OSCORE parameter, where the OSCORE protocol parameter includes at least one of the following:
[0347] kid context, kid, id context.
[0348] In some possible implementations, the transceiver module is further configured to:
[0349] receiving a second message sent by the user equipment, where the second message includes at least one second key identification information;
[0350] Select the first key identification information from the at least one second key identification information; and send the first key identification information to the user equipment.
[0351] In some possible implementations, the processing module is further configured to:
[0352] The first key is obtained from a second entity according to the first key identification information.
[0353] In some possible implementations, the second key identification information is key identification information determined by the user equipment according to the first interface of the user equipment and conforms to the first protocol corresponding to the first interface.
[0354] In some possible implementations, the first key identification information is key identification information determined by the first entity according to the second interface of the first entity and complies with a second protocol corresponding to the second interface.
[0355] In some possible implementations, the first key identification information is GBA-related key identification information or AKMA-related key identification information.
[0356] In some possible implementations, the second key identification information includes at least one of the following: at least one piece of GBA-related key identification information and at least one piece of AKMA-related key identification information.
[0357] In some possible implementations, the GBA-related key identification information includes at least one of the following: 3GPP-bootstrapping, 3gpp-gba, 3GPP-bootstrapping-uicc, 3gpp-gba-uicc, 3GPP-bootstrapping-digest, 3gpp-gba-digest, B-TID; and / or
[0358] The AKMA-related key identification information includes at least one of the following: 3GPP-AKMA, A-KID.
[0359] In some possible implementations, the first message includes a token, and the token includes the first key identification information.
[0360] In some possible implementations, the token is a token generated by an authentication server according to the first key identification information.
[0361] In some possible implementations, the first key identification information is key identification information determined by the user equipment according to a first interface of the user equipment and conforms to a first protocol corresponding to the first interface.
[0362] When the electronic device is a network device, its structure can also be as shown in Figure 18. As shown in Figure 18, the electronic device 1800 includes a memory 1801, a processor 1802, a transceiver component 1803, and a power supply component 1806. Among them, the memory 1801 is coupled to the processor 1802 and can be used to store the programs and data necessary for the electronic device 1800 to implement various functions. The processor 1802 is configured to support the electronic device 1800 to perform the corresponding functions in the above method, which can be implemented by calling the program stored in the memory 1801. The transceiver component 1803 can be a wireless transceiver, which can be used to support the electronic device 1800 to receive signaling and / or data through the wireless air interface, and to send signaling and / or data. The transceiver component 1803 may also be referred to as a transceiver unit or a communication unit. The transceiver component 1803 may include a radio frequency component 1804 and one or more antennas 1805, wherein the radio frequency component 1804 may be a remote radio unit (RRU), which may be specifically used for transmitting radio frequency signals and converting radio frequency signals into baseband signals, and the one or more antennas 1805 may be specifically used for radiating and receiving radio frequency signals.
[0363] When electronic device 1800 needs to send data, processor 1802 performs baseband processing on the data to be transmitted and outputs the baseband signal to the RF unit. The RF unit then performs RF processing on the baseband signal and transmits it via the antenna in the form of electromagnetic waves. When data is sent to electronic device 1800, the RF unit receives the RF signal via the antenna, converts the RF signal into a baseband signal, and outputs the baseband signal to processor 1802. Processor 1802 converts the baseband signal into data and processes the data.
[0364] An embodiment of the present disclosure provides a computer-readable storage medium having instructions stored therein. When the instructions are called and executed on a computer, the computer executes the above-mentioned method for sending a report or the method for receiving a report.
[0365] Based on the same concept as the above method embodiments, embodiments of the present disclosure also provide an electronic device that can have the functions of the user equipment in the above method embodiments and is used to perform the steps performed by the user equipment in the above embodiments. This function can be implemented in hardware, or in software, or in hardware executing corresponding software implementations. The hardware or software includes one or more modules corresponding to the above functions.
[0366] In a possible implementation, the electronic device 1900 shown in FIG19 may serve as the user equipment involved in the above method embodiment and execute the steps executed by the user equipment in the above method embodiment.
[0367] The electronic device 1900 includes a transceiver module 1901 and a processing module 1902 .
[0368] The transceiver module 1901 is configured to send a first message to a first entity, wherein the first message includes first key identification information; the first key identification information is used by the first entity to determine a first key based on the first key identification information, and to determine an OSCORE-related master key based on the first key; the first key is obtained from the second entity based on the first key identification information; the first key is a key corresponding to the first key identification information.
[0369] In some possible implementations, the first message is an OSCORE message.
[0370] In some possible implementations, the first message transmits the first key identification information using an OSCORE parameter, where the OSCORE protocol parameter includes at least one of the following:
[0371] kid context, kid, id context.
[0372] In some possible implementations, the processing module 1902 is configured to include:
[0373] Determine a first protocol corresponding to the first interface according to the first interface of the user equipment; and determine the first key identification information that complies with the first protocol according to the first protocol.
[0374] In some possible implementations, the transceiver module is further configured to:
[0375] Sending a second message to the first entity, where the second message includes at least one second key identification information; and receiving the first key identification information sent by the first entity.
[0376] In some possible implementations, the second key identification information is key identification information determined by the user equipment according to the first interface of the user equipment and conforms to the first protocol corresponding to the first interface.
[0377] In some possible implementations, the first key identification information is key identification information determined by the first entity according to the second interface of the first entity and complies with a second protocol corresponding to the second interface.
[0378] In some possible implementations, the first key identification information is GBA-related key identification information or AKMA-related key identification information.
[0379] In some possible implementations, the second key identification information includes at least one of the following: at least one GBA protocol key identification information and at least one AKMA protocol key identification information.
[0380] In some possible implementations, the GBA-related key identification information includes at least one of the following: 3GPP-bootstrapping, 3gpp-gba, 3GPP-bootstrapping-uicc, 3gpp-gba-uicc, 3GPP-bootstrapping-digest, 3gpp-gba-digest, B-TID; and / or
[0381] The AKMA-related key identification information includes at least one of the following: 3GPP-AKMA, A-KID.
[0382] In some possible implementations, the transceiver module is further configured to:
[0383] Sending the first key identification information to an authentication server; and receiving the token sent by the authentication server, where the token includes the first key identification information.
[0384] In some possible implementations, the first message includes the token, and the token includes the first key identification information.
[0385] In some possible implementations, the processing module 1902 is further configured to determine, based on the first interface of the user equipment, a first protocol corresponding to the first interface, and determine, based on the first protocol, the first key identification information that complies with the first protocol.
[0386] When the electronic device is a user device, its structure may also be as shown in Figure 20. The electronic device 2000 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0387] 20 , electronic device 2000 may include one or more of the following components: a processing component 2002 , a memory 2004 , a power component 2006 , a multimedia component 2008 , an audio component 2010 , an input / output (I / O) interface 2012 , a sensor component 2014 , and a communication component 2016 .
[0388] The processing component 2002 generally controls the overall operation of the electronic device 2000, such as operations associated with display, phone calls, data communications, camera operation, and recording operations. The processing component 2002 may include one or more processors 2020 to execute instructions to perform all or part of the steps of the above-described method. In addition, the processing component 2002 may include one or more modules to facilitate interaction between the processing component 2002 and other components. For example, the processing component 2002 may include a multimedia module to facilitate interaction between the multimedia component 2008 and the processing component 2002.
[0389] The memory 2004 is configured to store various types of data to support operations on the device 2000. Examples of such data include instructions for any application or method operating on the electronic device 2000, contact data, phone book data, messages, pictures, videos, etc. The memory 2004 can be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.
[0390] The power component 2006 provides power to the various components of the electronic device 2000. The power component 2006 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 2000.
[0391] The multimedia component 2008 includes a screen that provides an output interface between the electronic device 2000 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor can not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 2008 includes a front camera and / or a rear camera. When the device 2000 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have a focal length and optical zoom capability.
[0392] The audio component 2010 is configured to output and / or input audio signals. For example, the audio component 2010 includes a microphone (MIC), which is configured to receive external audio signals when the electronic device 2000 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal can be further stored in the memory 2004 or transmitted via the communication component 2016. In some embodiments, the audio component 2010 also includes a speaker for outputting audio signals.
[0393] I / O interface 2012 provides an interface between processing component 2002 and peripheral interface modules, such as a keyboard, click wheel, buttons, etc. These buttons may include but are not limited to: a home button, volume buttons, a start button, and a lock button.
[0394] The sensor assembly 2014 includes one or more sensors for providing various aspects of the status assessment of the electronic device 2000. For example, the sensor assembly 2014 can detect the open / closed state of the device 2000, the relative positioning of components, such as the display and keypad of the electronic device 2000. The sensor assembly 2014 can also detect changes in the position of the electronic device 2000 or a component of the electronic device 2000, the presence or absence of user contact with the electronic device 2000, the orientation or acceleration / deceleration of the electronic device 2000, and changes in the temperature of the electronic device 2000. The sensor assembly 2014 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 2014 can also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 2014 can also include an accelerometer, a gyroscope, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0395] The communication component 2016 is configured to facilitate wired or wireless communication between the electronic device 2000 and other devices. The electronic device 2000 can access a wireless network based on a communication standard, such as WiFi, 4G or 5G, or a combination thereof. In an exemplary embodiment, the communication component 2016 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 2016 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0396] In an exemplary embodiment, the electronic device 2000 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above-described methods.
[0397] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 2004 including instructions, and the instructions can be executed by the processor 2020 of the electronic device 2000 to perform the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0398] Other embodiments of the presently disclosed embodiments will readily occur to those skilled in the art after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the presently disclosed embodiments that follow the general principles of the presently disclosed embodiments and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered as exemplary only, with the true scope and spirit of the presently disclosed embodiments being indicated by the following claims.
[0399] It should be understood that the embodiments of the present disclosure are not limited to the precise structures described above and shown in the drawings, and various modifications and changes can be made without departing from the scope thereof. The scope of the embodiments of the present disclosure is limited only by the appended claims. Industrial Applicability
[0400] The exemplary embodiments of the present disclosure construct a method for determining or assisting in determining a key for an OSCORE scenario, wherein a first entity can determine a first key based on first key identification information sent by a user device, and the first key is obtained from a second entity based on the first key identification information, so as to use the first key as an OSCORE master key, thereby improving the security of the OSCORE protocol and broadening the application scenarios of OSCORE.
Claims
1. A method for determining a key, performed by a first entity, the method comprising: Receiving a first message sent by a user equipment, where the first message includes first key identification information; determining a first key according to the first key identification information, where the first key is obtained from a second entity according to the first key identification information; the first key is a key corresponding to the first key identification information; An OSCORE-related master key is determined based on the first key.
2. The method according to claim 1, wherein: The first message is an OSCORE message.
3. The method according to claim 2, wherein: The first message transmits the first key identification information using an OSCORE parameter, and the OSCORE protocol parameter includes at least one of the following: kid context, kid, id context.
4. The method according to any one of claims 1 to 3, wherein: The method further comprises: receiving a second message sent by the user equipment, where the second message includes at least one second key identification information; Selecting the first key identification information from the at least one second key identification information; Send the first key identification information to the user equipment.
5. The method according to any one of claims 1 to 3, wherein: The method further comprises: The first key is obtained from a second entity according to the first key identification information.
6. The method according to claim 4, wherein: The second key identification information is key identification information determined by the user equipment according to the first interface of the user equipment and conforms to the first protocol corresponding to the first interface.
7. The method according to claim 4, wherein: The first key identification information is key identification information determined by the first entity according to the second interface of the first entity and complies with the second protocol corresponding to the second interface.
8. The method according to any one of claims 1 to 7, wherein: The first key identification information is GBA-related key identification information or AKMA-related key identification information.
9. The method according to any one of claims 3 to 7, wherein: The second key identification information includes at least one of the following: at least one GBA-related key identification information and at least one AKMA-related key identification information.
10. The method according to claim 8 or 9, wherein: The GBA-related key identification information includes at least one of the following: 3GPP-bootstrapping, 3gpp-gba, 3GPP-bootstrapping-uicc, 3gpp-gba-uicc, 3GPP-bootstrapping-digest, 3gpp-gba-digest, B-TID; and / or The AKMA-related key identification information includes at least one of the following: 3GPP-AKMA, A-KID.
11. The method according to any one of claims 1 to 10, wherein: The first message includes a token, and the token includes the first key identification information.
12. The method according to claim 11, wherein: The token is a token generated by the authentication server according to the first key identification information.
13. The method according to claim 1, wherein: The first key identification information is key identification information determined by the user equipment according to the first interface of the user equipment and conforms to the first protocol corresponding to the first interface.
14. A method for determining a key, performed by a user device, the method comprising: Sending a first message to a first entity, wherein the first message includes first key identification information; The first key identification information is used by the first entity to determine the first key according to the first key identification information, and based on the first key The key determines the master key associated with OSCORE; The first key is obtained from the second entity according to the first key identification information; the first key is the key corresponding to the first key identification information.
15. The method according to claim 14, wherein: The first message is an OSCORE message.
16. The method according to claim 15, wherein: The first message transmits the first key identification information using an OSCORE parameter, and the OSCORE protocol parameter includes at least one of the following: kid context, kid, id context.
17. The method according to any one of claims 14 to 16, wherein: The method further comprises: Determine, according to the first interface of the user equipment, a first protocol corresponding to the first interface; The first key identification information that complies with the first protocol is determined according to the first protocol.
18. The method according to any one of claims 14 to 17, further comprising: Sending a second message to the first entity, where the second message includes at least one second key identification information; Receive the first key identification information sent by the first entity.
19. The method according to claim 18, wherein: The second key identification information is key identification information determined by the user equipment according to the first interface of the user equipment and conforms to the first protocol corresponding to the first interface.
20. The method according to claim 18, wherein: The first key identification information is key identification information determined by the first entity according to the second interface of the first entity and complies with the second protocol corresponding to the second interface.
21. The method according to any one of claims 14 to 20, wherein: The first key identification information is GBA-related key identification information or AKMA-related key identification information.
22. The method according to any one of claims 18 to 21, wherein: The second key identification information includes at least one of the following: at least one GBA protocol key identification information and at least one AKMA protocol key identification information.
23. The method according to claim 21 or 22, wherein: The GBA-related key identification information includes at least one of the following: 3GPP-bootstrapping, 3gpp-gba, 3GPP-bootstrapping-uicc, 3gpp-gba-uicc, 3GPP-bootstrapping-digest, 3gpp-gba-digest, B-TID; and / or The AKMA-related key identification information includes at least one of the following: 3GPP-AKMA, A-KID.
24. The method according to any one of claims 14 to 23, wherein: The method further comprises: Sending the first key identification information to an authentication server; The token sent by the authentication server is received, where the token includes the first key identification information.
25. The method according to claim 24, wherein: The first message includes the token, and the token includes the first key identification information.
26. The method according to claim 15, further comprising: A first protocol corresponding to the first interface is determined according to the first interface of the user equipment, and the first key identification information that complies with the first protocol is determined according to the first protocol.
27. An apparatus for determining a key, the apparatus comprising: A transceiver module, configured to receive a first message sent by a user equipment, wherein the first message includes first key identification information; determining a first key according to the first key identification information, where the first key is obtained from a second entity according to the first key identification information; the first key is a key corresponding to the first key identification information; The processing module is configured to determine an OSCORE-related master key based on the first key.
28. An apparatus for determining a key, the apparatus comprising: A transceiver module, configured to send a first message to a first entity, wherein the first message includes first key identification information; The first key identification information is used by the first entity to determine a first key according to the first key identification information, and to determine a master key related to OSCORE based on the first key; The first key is obtained from the second entity according to the first key identification information; the first key is the key corresponding to the first key identification information.
29. An electronic device comprising a processor and a memory, wherein: The memory is used to store computer programs; The processor is configured to execute the computer program to implement the method according to any one of claims 1 to 13.
30. An electronic device comprising a processor and a memory, wherein: The memory is used to store computer programs; The processor is configured to execute the computer program to implement the method according to any one of claims 14 to 26.
31. A computer-readable storage medium, wherein instructions are stored in the computer-readable storage medium, and when the instructions are called and executed on a computer, the computer is caused to execute the method according to any one of claims 1 to 13.
32. A computer-readable storage medium, wherein instructions are stored in the computer-readable storage medium, and when the instructions are called and executed on a computer, the computer is caused to execute the method according to any one of claims 14 to 26.
