Communication decryption method, system and device
By introducing a session key update mechanism between the terminal device and the server, using random numbers and application function keys to derive the Session key, and encrypting and decrypting the data, the problem of untimely key update in the AKMA authentication method is solved and the efficiency is improved. Communication security reduces the risk of key leakage.
Patent Information
- Application Number
- CN202111589904.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-23
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2041-12-23
AI Technical Summary
The AKMA authentication method lacks a key update mechanism, causing the session key between the terminal device and the application server to be unable to be updated in time, increasing the risk of key leakage and cracking, and reducing communication security.
Introduce a session key update mechanism between the terminal device and the server. The session key is derived through the random number generated by the terminal and the application function key, the data is encrypted and decrypted, and the session key is updated synchronously after data transmission to ensure the key Level updates.
It effectively reduces the risk of key leakage and cracking, improves communication security, and enhances the security of data transmission between the terminal and the server through the key update mechanism.
Smart Images

Figure CN114285557B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of communication technology, and in particular to a communication decryption method, a communication decryption system, a communication decryption device, and a non-volatile computer-readable storage medium. Background Art
[0002] 3GPP (3rd Generation Partnership Project) proposed the AKMA (Authentication and Key Management for Applications) specification for use in the field of IoT. In 5G scenarios, the AKMA specification can provide fast and efficient authentication, key management, and data exchange for terminals and application servers.
[0003] In related technologies, in order to ensure the security of data transmission between terminal devices and application servers, the AKMA authentication method establishes a session and generates an application layer key, and uses a long-term fixed key to encrypt and decrypt the data in the communication. Summary of the invention
[0004] The inventors of the present disclosure have discovered that the above-mentioned related technologies have the following problems: there is a risk of key leakage or cracking, resulting in reduced communication security.
[0005] In view of this, the present disclosure proposes a communication decryption technology solution that can improve communication security.
[0006] According to some embodiments of the present disclosure, a communication decryption method is provided, including: receiving a ciphertext sent by a terminal and a random number generated by the terminal when establishing the current session, encrypting the ciphertext using a Session key, the Session key being generated by the terminal based on the random number and an AF (application function) key; generating a Session key based on the random number and a locally stored AF key; and decrypting the ciphertext using the Session key to obtain plaintext.
[0007] In some embodiments, the communication decryption method further includes: obtaining an AF key generated by the AKMA anchor function network element according to the AKMA key, the AKMA key being generated during the AKMA authentication process and stored in the terminal and the AKMA anchor function network element.
[0008] In some embodiments, the AKMA key is generated based on the AUSF (Authentication Server Function) key when the terminal successfully completes the primary authentication of network access, and the AUSF key is stored in the terminal and the AUSF network element.
[0009] In some embodiments, receiving the ciphertext sent by the terminal and the random number generated when establishing the current session includes: after obtaining the AF key, initiating a session establishment response to the terminal to establish a communication channel.
[0010] In some embodiments, generating a Session key based on a random number and a locally stored AF key includes: using the random number and the AF key as input parameters of a KDF (Key Derivation Function) to generate a Session key, wherein the random number is generated by the terminal using its random number generator after the communication channel is established.
[0011] In some embodiments, the input parameter of the KDF also includes an octet, an AF identifier, and the length of the AF identifier.
[0012] According to some other embodiments of the present disclosure, a communication decryption device is provided, including: a receiving unit, used to receive a ciphertext sent by a terminal and a random number generated by the terminal when establishing this session, the ciphertext is encrypted using a Session key, and the Session key is generated by the terminal based on the random number and the AF key; a generating unit, used to generate a Session key based on the random number and the locally stored AF key; a decryption unit, used to decrypt the ciphertext using the Session key to obtain plaintext.
[0013] In some embodiments, the receiving unit obtains the AF key generated by the AKMA anchor function network element according to the AKMA key, where the AKMA key is generated during the AKMA authentication process and is stored in the terminal and the AKMA anchor function network element.
[0014] In some embodiments, the AKMA key is generated based on the AUSF key when the terminal successfully completes the network access authentication, and the AUSF key is stored in the terminal and the AUSF network element.
[0015] In some embodiments, receiving the ciphertext sent by the terminal and the random number generated when establishing the current session includes: after obtaining the AF key, initiating a session establishment response to the terminal to establish a communication channel.
[0016] In some embodiments, the generating unit uses the random number and the AF key as input parameters of the KDF to generate the Session key, and the random number is generated by the terminal using its random number generator after the communication channel is established.
[0017] In some embodiments, the input parameter of the KDF also includes an octet, an AF identifier, and the length of the AF identifier.
[0018] According to some further embodiments of the present disclosure, a communication decryption system is provided, including: an application function network element, configured to execute the communication decryption method in any one of the above embodiments.
[0019] In some embodiments, the communication decryption system further includes: an AKMA anchor function network element, which is used to receive an AKMA key from an AUSF network element, wherein the AKMA key is stored in the terminal and the AKMA anchor function network element, and an AF key is generated based on the AKMA key.
[0020] In some embodiments, the communication decryption system also includes: an AUSF network element, which is used to generate an AUSF key when the terminal successfully completes the main authentication of network access. The AUSF key is stored in the terminal and the AUSF network element, and the AKMA key is generated based on the AUSF key.
[0021] According to some further embodiments of the present disclosure, there is provided a communication decryption device, comprising: a memory; and a processor coupled to the memory, wherein the processor is configured to execute the communication decryption method in any one of the above embodiments based on instructions stored in the memory device.
[0022] According to some further embodiments of the present disclosure, a non-volatile computer-readable storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the communication decryption method in any of the above embodiments is implemented.
[0023] In the above embodiment, a new key level, Session key, is added using the random number generated by the terminal to encrypt and decrypt data; the terminal generates a random number to update the session key before sending data; the server also needs to synchronously update the session key after receiving the content. In this way, a key update mechanism can be established to reduce the risk of key leakage or cracking and improve communication security. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The accompanying drawings, which constitute a part of the specification, illustrate embodiments of the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0025] The present disclosure may be more clearly understood from the following detailed description with reference to the accompanying drawings:
[0026] Figure 1 A flowchart showing some embodiments of the communication decryption method of the present disclosure;
[0027] Figure 2 A schematic diagram showing some embodiments of the communication decryption method disclosed herein;
[0028] Figure 3 A signaling diagram illustrating some embodiments of the communication decryption method of the present disclosure;
[0029] Figure 4 A block diagram showing some embodiments of the communication decryption device of the present disclosure;
[0030] Figure 5 A block diagram showing some other embodiments of the communication decryption device disclosed in the present invention;
[0031] Figure 6 A block diagram showing some further embodiments of the communication decryption device of the present disclosure;
[0032] Figure 7 A block diagram illustrating some embodiments of the communication decryption system of the present disclosure. DETAILED DESCRIPTION
[0033] Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that the relative arrangement of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present disclosure unless otherwise specifically stated.
[0034] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.
[0035] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present disclosure, its application, or uses.
[0036] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered part of the specification.
[0037] In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not as limiting. Therefore, other examples of the exemplary embodiments may have different values.
[0038] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0039] As mentioned above, in order to solve the technical problem that the session key cannot be updated in time when the terminal device interacts with the application server due to the lack of a key update mechanism in the AKMA authentication method, thereby reducing the probability of the session key being cracked due to the accumulation of encrypted content, the present invention adds a new key level, the session key, on the basis of the AKMA key derivation mechanism to encrypt and decrypt data; the terminal needs to update the session key before sending data, and the server also needs to synchronously update the session key after receiving the content.
[0040] For example, the technical solution of the present disclosure can be implemented through the following embodiments.
[0041] Figure 1 A flow chart showing some embodiments of the communication decryption method of the present disclosure.
[0042] like Figure 1 As shown, in step 110, the ciphertext sent by the terminal and the random number generated by the terminal when establishing this session are received. The ciphertext is encrypted using the Session key, which is generated by the terminal based on the random number and the AF key.
[0043] In some embodiments, two modules are added to the terminal: a random number generation module, which is used by the terminal to generate a random number before each data transmission as an input variable of the session key update module; and a session key update module, which is used to create a new session key for each session.
[0044] For example, the terminal derives the session key K SESSION Before the terminal sends the session content to the server, the random number generation module is used to generate a random number RAND. RAND and AF key K AF As the input parameter of the key derivation algorithm, the Session key K is derived. SESSION , and encrypt the data to obtain ciphertext.
[0045] For example, the terminal sends the ciphertext and the random number RAND to the server. The terminal sends the ciphertext and the random number RAND generated in this session to the server, and the RAND will be used by the server to update the key for this session.
[0046] In some embodiments, the AF key generated by the AKMA anchor function network element according to the AKMA key is obtained. The AKMA key is generated during the AKMA authentication process and stored in the terminal and the AKMA anchor function network element.
[0047] For example, the AKMA key is generated based on the AUSF key when the terminal successfully completes the network authentication, and the AUSF key is stored in the terminal and the AUSF network element.
[0048] In some embodiments, the terminal successfully authenticates the network, and the UDM (Unified Data Management) network element generates the AUSF key K AUSF The AUSF network element generates the AKMA key K AKMA , stored in the terminal and the AKMA anchor function network element; the AKMA anchor function network element generates the AF key K AF , stored in the terminal and AF network element.
[0049] In some embodiments, the terminal initiates an application session establishment request; the terminal and the AKMA anchor function network element are connected by K AKMA Derived K AF ; Application function network element obtains K AF Key; the application function network element receives KAF After that, a session establishment response is sent to the terminal, and the channel is established; the random number generator in the terminal generates a random number RAND; RAND and the key K AF As the input parameter of the key derivation algorithm, K SESSION ; K SESSION Encrypt the data to obtain ciphertext; send the ciphertext and RAND to the application function network element.
[0050] In step 120, a Session key is generated according to the random number and the locally stored AF key.
[0051] In some embodiments, receiving the ciphertext sent by the terminal and the random number generated when establishing the current session includes: after obtaining the AF key, initiating a session establishment response to the terminal to establish a communication channel.
[0052] In some embodiments, generating a Session key according to a random number and a locally stored AF key includes: using the random number and the AF key as input parameters of a KDF to generate a Session key, wherein the random number is generated by the terminal using its random number generator after the communication channel is established. For example, the KDF method may be specifically selected as an HMAC (Hash-based Message Authentication Code) algorithm.
[0053] For example, the application function network element receives the RAND of this session and compares it with the K stored locally. AF Take them together as input parameters to derive K SESSION .
[0054] In step 130, the ciphertext is decrypted using the Session key to obtain the plaintext.
[0055] In some embodiments, the server receives the ciphertext and RAND, updates the session key and obtains the plaintext. For example, the server receives the RAND of this session and compares it with the K stored locally. AF Take them together as input parameters to derive K SESSION ; Using K SESSION Decrypt the data to get the plaintext.
[0056] In some embodiments, KDF can be used to generate K SESSION .
[0057] For example, the input parameter of KDF is composed of the previous key K AF And string S: K SESSION = KDF(K AF , S) = HMAC-SHA-256 (K AF, S), S = FC || P0 || L0 || P1.
[0058] Where FC = 0x82, P0 = AF_ID, P1 = RAND, L0 = length of AF_ID, and RAND is generated by the random number generator in the terminal.
[0059] In some embodiments, the input to the KDF is K AF =123; AF_ID=112234; L0=6; RAND=2345; the text to be encrypted is hello; the generated K SESSION The value is: aa221476b8e5ae8bf0eb28644b092165f9738771dff4b81baebc54a12b961756.
[0060] In some embodiments, AES (Advanced Encryption Standard) can be used to encrypt and decrypt the above text content to obtain K SESSION The encrypted ciphertext is U2FsdGVkX19 / ikVmu11GX / avP66pIuc6hBLbUfAwFVg=, using K SESSION The decrypted plaintext is hello.
[0061] In the above embodiment, an AKMA enhanced communication decryption method is proposed. Before the terminal sends data, the random number generation module generates a random number for this session; the session key update module uses a key derivation algorithm to generate a random number from the key K AF Derive the session key K between the terminal and the server SESSION , use this key to encrypt the session content. After receiving the ciphertext, the server can derive the same session key K SESSION , use this key to decrypt the content to get the plaintext.
[0062] In this way, the key is updated by transmitting the random number used to generate the key instead of transmitting the key itself, which can effectively reduce the risk of key interception, solve the problem of untimely session key update, and improve the security of the entire system.
[0063] Figure 2 A schematic diagram showing some embodiments of the communication decryption method disclosed in the present invention.
[0064] like Figure 2As shown, two modules are added to the terminal: a random number generation module, which is used for the terminal to generate a random number before each data transmission as an input variable of the session key update module; and a session key update module, which is used to create a new session key for each session. The technical solution of the present disclosure can be implemented through the following steps.
[0065] The terminal derives the session key K SESSION And encrypt the session content. For example, before the terminal sends the session content to the server, the random number generation module is used to generate a random number RAND. RAND and AF key K AF As the input parameter of the key derivation algorithm, the Session key K is derived. SESSION , and encrypt the data to obtain ciphertext.
[0066] The terminal sends the ciphertext and the RAND to the server. For example, the terminal sends the ciphertext and the random number RAND generated for this session to the server, and the RAND will be used by the server to update the key for this session.
[0067] The server receives the ciphertext and RAND, updates the session key and obtains the plaintext. For example, the server receives the RAND of this session and compares it with the K stored locally. AF Take them together as input parameters to derive K SESSION ; Using K SESSION Decrypt the data to get the plaintext.
[0068] Figure 3 A signaling diagram illustrating some embodiments of the communication decryption method of the present disclosure.
[0069] like Figure 3 As shown, in event 1, the terminal network master authentication process generates the AUSF key K AUSF , stored in the terminal and authentication server functional network elements.
[0070] In event 2, the AUSF network element generates the AKMA key K AKMA , sent to the AKMA anchor function network element, the terminal generates the AKMA key K AKMA .
[0071] In event 3, the terminal initiates an application session establishment request.
[0072] In event 4, the terminal and the AKMA anchor function network element are connected by K AKMA Derived K AF .
[0073] In event 5, the application function network element obtains K AF Key.
[0074] In event 6, the application function network element receives K AFAfter that, a session establishment response is initiated to the terminal and the channel is established.
[0075] In event 7, a random number generator in the terminal generates a random number RAND.
[0076] In event 8, RAND is combined with the key K AF As the input parameter of the key derivation algorithm, K SESSION .
[0077] In event 9, K SESSION Encrypt the data to obtain ciphertext.
[0078] In event 10, the current ciphertext and RAND are sent to the application function network element.
[0079] In event 11, the application function network element receives the RAND of this session and compares it with the K stored locally. AF Take them together as input parameters to derive K SESSION .
[0080] In event 12, the session key K SESSION Decrypt the data to get the plaintext.
[0081] Figure 4 A block diagram showing some embodiments of the communication decryption device of the present disclosure.
[0082] like Figure 4 As shown, the communication decryption device 4 includes: a receiving unit 41, which is used to receive the ciphertext sent by the terminal and the random number generated by the terminal when the session is established, and the ciphertext is encrypted using the Session key, and the Session key is generated by the terminal according to the random number and the AF key; a generating unit 42, which is used to generate the Session key according to the random number and the locally stored AF key; a decryption unit 43, which is used to use the Session key to decrypt and obtain the plaintext.
[0083] In some embodiments, the receiving unit 41 obtains the AF key generated by the AKMA anchor function network element according to the AKMA key. The AKMA key is generated during the AKMA authentication process and is stored in the terminal and the AKMA anchor function network element.
[0084] In some embodiments, the AKMA key is generated based on the AUSF key when the terminal successfully completes the primary authentication for network access, and the AKMA key is stored in the terminal and the AUSF network element.
[0085] In some embodiments, receiving the ciphertext sent by the terminal and the random number generated when establishing the current session includes: after obtaining the AF key, initiating a session establishment response to the terminal to establish a communication channel.
[0086] In some embodiments, the generating unit 42 uses the random number and the AF key as input parameters of the KDF to generate a Session key, and the random number is generated by the terminal using its random number generator after the communication channel is established.
[0087] In some embodiments, the input parameter of the KDF also includes an octet, an AF identifier, and the length of the AF identifier.
[0088] Figure 5 A block diagram showing some other embodiments of the communication decryption device of the present disclosure.
[0089] like Figure 5 As shown, the communication decryption device 5 of this embodiment includes: a memory 51 and a processor 52 coupled to the memory 51 , and the processor 52 is configured to execute the communication decryption method in any one of the embodiments of the present disclosure based on the instructions stored in the memory 51 .
[0090] The memory 51 may include, for example, a system memory, a fixed non-volatile storage medium, etc. The system memory may store, for example, an operating system, an application program, a boot loader, a database, and other programs.
[0091] Figure 6 The block diagrams show some further embodiments of the communication decryption device of the present disclosure.
[0092] like Figure 6 As shown, the communication decryption device 6 of this embodiment includes: a memory 610 and a processor 620 coupled to the memory 610 , and the processor 620 is configured to execute the communication decryption method in any one of the aforementioned embodiments based on the instructions stored in the memory 610 .
[0093] The memory 610 may include, for example, a system memory, a fixed non-volatile storage medium, etc. The system memory may store, for example, an operating system, an application program, a boot loader, and other programs.
[0094] The communication decryption device 6 may also include an input / output interface 630, a network interface 640, a storage interface 650, etc. These interfaces 630, 640, 650, the memory 610, and the processor 620 may be connected, for example, via a bus 660. The input / output interface 630 provides a connection interface for input / output devices such as a display, a mouse, a keyboard, a touch screen, a microphone, and a speaker. The network interface 640 provides a connection interface for various networked devices. The storage interface 650 provides a connection interface for external storage devices such as an SD card and a USB flash drive.
[0095] Figure 7 A block diagram illustrating some embodiments of the communication decryption system of the present disclosure.
[0096] like Figure 7 As shown, the communication decryption system 7 includes: an application function network element 71, which is used to execute the communication decryption method in any of the above embodiments.
[0097] In some embodiments, the communication decryption system 7 further includes: an AKMA anchor function network element 72, which is used to receive an AKMA key from an AUSF network element and generate an AF key based on the AKMA key.
[0098] In some embodiments, the communication decryption system 7 also includes: an AUSF network element 73, which is used to generate an AKMA key when the terminal successfully enters the network through primary authentication. The AKMA key is stored in the terminal and the AUSF anchor function network element, and the AKMA key is generated based on the AUSF key.
[0099] Those skilled in the art will appreciate that the embodiments of the present disclosure may be provided as methods, systems, or computer program products. Therefore, the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present disclosure may take the form of a computer program product implemented on one or more computer-usable non-transient storage media including but not limited to disk storage, CD-ROM, optical storage, etc., which contain computer-usable program code.
[0100] So far, the communication decryption method, communication decryption system, communication decryption device and non-volatile computer-readable storage medium according to the present disclosure have been described in detail. In order to avoid obscuring the concept of the present disclosure, some details known in the art are not described. Based on the above description, those skilled in the art can fully understand how to implement the technical solution disclosed herein.
[0101] The method and system of the present disclosure may be implemented in many ways. For example, the method and system of the present disclosure may be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above order of steps for the method is for illustration only, and the steps of the method of the present disclosure are not limited to the order specifically described above, unless otherwise specifically stated. In addition, in some embodiments, the present disclosure may also be implemented as a program recorded in a recording medium, which includes machine-readable instructions for implementing the method according to the present disclosure. Therefore, the present disclosure also covers a recording medium storing a program for executing the method according to the present disclosure.
[0102] Although some specific embodiments of the present disclosure have been described in detail by way of example, it should be understood by those skilled in the art that the above examples are for illustration only and are not intended to limit the scope of the present disclosure. It should be understood by those skilled in the art that the above embodiments may be modified without departing from the scope and spirit of the present disclosure. The scope of the present disclosure is defined by the appended claims.
Claims
1. A communication decryption method, comprising: The ciphertext sent by the receiving terminal and the random number generated by the terminal when establishing the current session are encrypted using the session key, where the session key is generated by the terminal according to the random number and the application function AF key; Generate the Session key according to the random number and the locally stored AF key; The ciphertext is decrypted using the Session key to obtain plaintext.
2. The communication decryption method according to claim 1, further comprising: The AF key generated by the application layer authentication and key management AKMA anchor function network element according to the AKMA key is obtained. The AKMA key is generated during the AKMA authentication process and stored in the terminal and the AKMA anchor function network element.
3. The communication decryption method according to claim 2, wherein: The AKMA key is generated based on the AUSF key of the authentication server function when the terminal successfully completes the primary authentication for network access. The AUSF key is stored in the terminal and the AUSF network element.
4. The communication decryption method according to claim 1, wherein: The ciphertext sent by the receiving terminal and the random number generated when the session is established include: After obtaining the AF key, a session establishment response is initiated to the terminal to establish a communication channel.
5. The communication decryption method according to any one of claims 1 to 4, wherein: The generating the Session key according to the random number and the locally stored AF key includes: The random number and the AF key are used as input parameters of a key derivation function KDF to generate the Session key. The random number is generated by the terminal using its random number generator after the communication channel is established.
6. The communication decryption method according to claim 5, wherein: The input parameters of the KDF also include an octet, an AF identifier and the length of the AF identifier.
7. A communication decryption device, comprising: A receiving unit, configured to receive a ciphertext sent by a terminal and a random number generated by the terminal when establishing the current session, wherein the ciphertext is encrypted using a session key, wherein the session key is generated by the terminal according to the random number and an application function AF key; A generating unit, configured to generate the Session key according to the random number and the locally stored AF key; The decryption unit is used to decrypt the ciphertext using the Session key to obtain the plaintext.
8. The communication decryption device according to claim 7, wherein: The receiving unit obtains the AF key generated by the application authentication and key management AKMA anchor function network element according to the AKMA key, wherein the AKMA key is generated during the AKMA authentication process and is stored in the terminal and the AKMA anchor function network element.
9. A communication decryption system, comprising: An application function network element, used to execute the communication decryption method described in any one of claims 1-6.
10. The communication decryption system according to claim 9, further comprising: The application layer authentication and key management AKMA anchor function network element is used to receive the AKMA key from the authentication server function AUSF network element, the AKMA key is stored in the terminal and the AKMA anchor function network element, and generate the AF key according to the AKMA key.
11. The communication decryption system according to claim 10, further comprising: The AUSF network element is used to generate an AKMA key when the terminal successfully enters the network through primary authentication. The AKMA key is stored in the terminal and the AKMA anchor function network element. The AKMA key is generated based on the AUSF key.
12. A communication decryption device, comprising: Memory; and A processor coupled to the memory, the processor being configured to execute the communication decryption method according to any one of claims 1 to 6 based on instructions stored in the memory.
13. A non-volatile computer-readable storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the communication decryption method according to any one of claims 1 to 6 is implemented.
