VoLTE voice encryption optimization implementation method, terminal and system

By splitting data in VoLTE voice calls and combining CBC and ECB encryption modes, the initial vector IV is transmitted using the key management platform, and the problem of security risks of VoLTE voice calls in the prior art is solved, achieving higher security and call quality.

CN115361678BActive Publication Date: 2024-11-05CHINA TELECOM QUANTUM TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210992026.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-17
Publication Date
2024-11-05
Estimated Expiration
2042-08-17

AI Technical Summary

Technical Problem

The existing VoLTE voice call encryption technology has security risks, especially when the data frame fill operation is limited, the SM4 packet algorithm cannot effectively protect data, and the time-safety of public key key transmission is insufficient.

Method used

The voice data is split by CBC encryption mode, and the remaining data is encrypted in combination with the ECB mode. The encryption initial vector IV is transmitted through the key management platform or voice channel, realizing the encryption method from ECB to CBC, ensuring the security of the data. sex.

Benefits of technology

Improve the security of VoLTE voice calls, prevent plain text leakage, ensure that cipher text and plain text are as long as possible, adapt to various communication protocols, avoid the problem of reducing the security of public key key transmission, and enhance the security and ease of use of calls. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115361678B_ABST
    Figure CN115361678B_ABST
Patent Text Reader

Abstract

The present invention discloses a VoLTE voice encryption optimization implementation method, terminal and system, belonging to the field of wireless communication technology, the method includes: a first terminal divides a voice data frame whose data length is greater than the encrypted group byte to obtain second voice data and at least one group of first voice data; adopts CBC encryption mode, uses key K and IV to encrypt the first voice data, and obtains a first ciphertext; for the second voice data, adopts ECB encryption mode, uses key K to encrypt the first voice data encryption ciphertext adjacent to it, and obtains Kiv_1; intercepts the Kiv_1 according to the length of the second voice data, and performs XOR processing on the intercepted ciphertext and the second voice data to obtain the second ciphertext; splices the first ciphertext with the second ciphertext to obtain a call ciphertext, and sends it to the second terminal to realize encrypted calls. The present invention realizes the encryption conversion of the encryption mode from ECB to CBC, and improves the security of VoLTE voice calls.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of wireless communications, and in particular to a method, a terminal and a system for optimizing and implementing VoLTE voice encryption. Background Art

[0002] Voice over Long Term Evolution (VoLTE) is a voice service based on IP Multimedia Subsystem (IMS), which is an IP data transmission technology. VoLTE does not require 2G / 3G networks, and all services are carried on 4G networks, which can achieve shorter connection waiting time, higher quality, and more natural voice and video call effects.

[0003] VoLTE uses the AMR voice codec solution. AMR is an audio data compression optimization solution for voice coding. It is currently widely used in wireless access networks (GSM EDGE Radio Access Network, GERAN) and universal mobile telecommunications system terrestrial access networks (UMTS Terrestrial Radio Access Network, UTRAN). AMR coding includes two voice coding methods: AMR-WB (Adaptive Multi Rate Wide Band) and AMR-NB (Adaptive Multi Rate Narrow Band). Among them, AMR-NB has 8 voice coding rates and AMR-WB has 9 voice coding rates:

[0004] (1) AMR-NB: 12.2kbit / s, 10.2kbit / s, 7.95kbit / s, 7.4kbit / s, 6.7kbit / s, 5.9kbit / s, 5.15kbit / s, 4.75kbit / s.

[0005] (2) AMR-WB: 23.85kbit / s, 23.05kbit / s, 19.85kbit / s, 18.25kbit / s, 15.85kbit / s, 14.25kbit / s, 12.65kbit / s, 8.85kbit / s, 6.6kbit / s.

[0006] AMR-NB uses 20MS voice frames, with a sampling frequency of 8KHZ, and each frame corresponds to 160 sampling points. The size of each frame for the AMR-NB 12.2kbit / s standard is 32 bytes, but since the first byte of the AMR voice frame is used as an identification bit, the basic voice PAYLOAD data length that can be used is 31 bytes.

[0007] Most of the existing call media data encryption uses algorithm SM4, and the mode is CBC block encryption. Due to the limitation of voice communication methods, the data frame cannot be padded, resulting in the last block in the data frame that needs to be padded being unable to use CBC encryption. The current measure is to use plaintext XOR data that is not enough for the block length (16 bytes), but there are cases where the algorithm is not applied in compliance, which may pose a security risk in certain circumstances.

[0008] In the related art, the Chinese invention patent application with publication number CN105530100A discloses a VoLTE secure communication method, which realizes end-to-end secure communication of VoLTE communication nodes by using both the symmetric encryption algorithm RC4 and the asymmetric encryption algorithm RSA. Compared with this technology, the main differences are as follows:

[0009] This method mainly combines the symmetric key system with the national secret algorithm SM4 to achieve end-to-end security. The sender and receiver encrypt the key with each other's public key and then decrypt the key with the private key to complete the key transfer. There is a problem that the key security of the public key system decreases over time. (2) This method only discusses the voice encryption and decryption process and methods, but does not combine the current VOLTE voice basic coding and transmission characteristics, and conduct an in-depth analysis of the SM4 grouping algorithm limitations in the end-to-end algorithm encryption process. Summary of the invention

[0010] The technical problem to be solved by the present invention is how to improve the security of VoLTE voice calls.

[0011] The present invention solves the above technical problems through the following technical means:

[0012] On the one hand, the present invention proposes a method for optimizing VoLTE voice encryption, the method comprising:

[0013] The first terminal divides the voice data frame whose data length is greater than the encrypted group byte to obtain second voice data and at least one group of first voice data, wherein the first voice data is voice data of an integer multiple of the encrypted group byte, and the second voice data is voice data whose length is less than the encrypted group byte;

[0014] Adopting CBC encryption mode, and using encryption key K and IV parameter to encrypt the first voice data to obtain first ciphertext, wherein the encryption key and the IV parameter are pre-negotiated by the terminals of the two call parties;

[0015] For the second voice data, the ECB encryption mode is adopted, and the encryption key K is used to encrypt the first voice data encryption ciphertext adjacent to the second voice data to obtain Kiv_1;

[0016] intercepting the Kiv_1 according to the length of the second voice data, and performing XOR processing on the intercepted ciphertext and the second voice data to obtain a second ciphertext;

[0017] The first ciphertext and the second ciphertext are concatenated to obtain a call ciphertext, and the ciphertext is sent to the second terminal so that the second terminal can decrypt the call ciphertext to realize an encrypted call.

[0018] The present invention uses a key management platform or a voice channel to realize the transmission of an encryption initial vector IV, realizes the encryption conversion from ECB to CBC, solves the problem that the plaintext cannot be hidden in the ECB mode and the plaintext may be actively attacked, and realizes security improvement.

[0019] Furthermore, the second terminal decrypts the call ciphertext, including:

[0020] Perform CBC decryption processing on each group of the first ciphertext in the call ciphertext to obtain first plaintext data;

[0021] For the second ciphertext in the call ciphertext whose data length is less than an integer multiple of the encrypted block, the ECB encryption mode is adopted, and the encryption key K is used to encrypt the first ciphertext adjacent to it, to obtain Kiv_2;

[0022] truncating the Kiv_2 according to the length of the second ciphertext, and performing an XOR process on the truncated ciphertext and the second ciphertext to obtain second plaintext data;

[0023] The first plaintext data and the second plaintext data are concatenated to obtain call plaintext.

[0024] Furthermore, before the first terminal and the second terminal conduct a voice encryption call, the method further includes:

[0025] The first terminal and the second terminal negotiate a call key to obtain an encryption key K for the current call;

[0026] The first terminal and the second terminal perform call encryption negotiation to obtain IV parameters for the current call.

[0027] Furthermore, the first terminal and the second terminal are both integrated with a chip, and the first terminal and the second terminal perform call key negotiation to obtain an encryption key K for the current call, including:

[0028] The first terminal and the second terminal use the keys in their corresponding chips as login authentication keys to complete identity authentication on the corresponding key management platform;

[0029] The first terminal initiates a voice signaling process to the second terminal, generates a call identifier for this call, and performs key negotiation, applies for keys from the key management platform respectively, and obtains the encryption key K for this call.

[0030] Furthermore, the first terminal and the second terminal perform call encryption negotiation to obtain IV parameters for the current call, including:

[0031] The first terminal and the second terminal apply for IV parameters of this call from the key management platform;

[0032] The key management platform generates IV parameters for this call in real time according to the terminal numbers of both parties of the call and the call time, and synchronizes them to the first terminal and the second terminal.

[0033] Furthermore, the first terminal and the second terminal perform call encryption negotiation to obtain IV parameters for the current call, including:

[0034] The first terminal and the second terminal negotiate IV parameters using a voice channel, where the negotiation information includes a random number A generated by the first terminal and a random number B generated by the second terminal;

[0035] The first terminal and the second terminal calculate a common IV parameter value using the same calculation method and synchronize them in the voice information.

[0036] Furthermore, two flag bits after the first byte in the voice data frame are used as transfer values ​​of the IV parameter change state, and the change state includes 00 / 01 / 10 / 11.

[0037] In addition, the present invention also proposes an oLTE voice encryption optimization implementation terminal, the terminal comprising:

[0038] A segmentation module, used for segmenting the voice data frame whose data length is greater than the encrypted group byte, to obtain second voice data and at least one group of first voice data, wherein the first voice data is voice data of an integral multiple of the encrypted group byte, and the second voice data is voice data whose length is less than the encrypted group byte;

[0039] A first encryption module, configured to adopt a CBC encryption mode and use an encryption key K and an IV parameter to encrypt the first voice data to obtain a first ciphertext, wherein the encryption key and the IV parameter are pre-negotiated by the terminals of both call parties;

[0040] A second encryption module is used to encrypt the first voice data encrypted ciphertext adjacent to the second voice data using the encryption key K in ECB encryption mode to obtain Kiv_1;

[0041] A first XOR module, used for intercepting the Kiv_1 according to the length of the second voice data, and performing XOR processing on the intercepted ciphertext and the second voice data to obtain a second ciphertext;

[0042] The first concatenation module is used to concatenate the first ciphertext and the second ciphertext to obtain a call ciphertext, and send it to the call peer end so that the call peer end can decrypt the call ciphertext to realize an encrypted call.

[0043] Furthermore, the terminal further includes:

[0044] A first decryption module, configured to perform CBC decryption processing on each group of the first ciphertext in the call ciphertext to obtain first plaintext data;

[0045] A second decryption module is used to encrypt the second ciphertext whose data length is less than an integer multiple of the encryption block in the call ciphertext by using the ECB encryption mode and the encryption key K to encrypt the adjacent first ciphertext to obtain Kiv_2;

[0046] A second XOR module is used to intercept the Kiv_2 according to the length of the second ciphertext, and perform XOR processing on the intercepted ciphertext and the second ciphertext to obtain second plaintext data;

[0047] The second splicing module splices the first plaintext data and the second plaintext data to obtain call plaintext.

[0048] In addition, the present invention also proposes a VoLTE voice encryption optimization implementation system, the system comprising: a first terminal, a second terminal, a first key management platform and a second key management platform, the first terminal and the second terminal are both integrated with a chip, and the first terminal and the second terminal both include:

[0049] A segmentation module, used for segmenting the voice data frame whose data length is greater than the encrypted group byte, to obtain second voice data and at least one group of first voice data, wherein the first voice data is voice data of an integral multiple of the encrypted group byte, and the second voice data is voice data whose length is less than the encrypted group byte;

[0050] A first encryption module, configured to adopt a CBC encryption mode and use an encryption key K and an IV parameter to encrypt the first voice data to obtain a first ciphertext, wherein the encryption key and the IV parameter are pre-negotiated by the terminals of both call parties;

[0051] A second encryption module is used to encrypt the first voice data encrypted ciphertext adjacent to the second voice data using the encryption key K in ECB encryption mode to obtain Kiv_1;

[0052] A first XOR module, used for intercepting the Kiv_1 according to the length of the second voice data, and performing XOR processing on the intercepted ciphertext and the second voice data to obtain a second ciphertext;

[0053] The first concatenation module is used to concatenate the first ciphertext and the second ciphertext to obtain a call ciphertext, and send it to the call peer end so that the call peer end can decrypt the call ciphertext to realize an encrypted call.

[0054] Furthermore, the first terminal and the second terminal both include:

[0055] A first decryption module, configured to perform CBC decryption processing on each group of the first ciphertext in the call ciphertext to obtain first plaintext data;

[0056] A second decryption module is used to encrypt the second ciphertext whose data length is less than an integer multiple of the encryption block in the call ciphertext by using the ECB encryption mode and the encryption key K to encrypt the adjacent first ciphertext to obtain Kiv_2;

[0057] A second XOR module is used to intercept the Kiv_2 according to the length of the second ciphertext, and perform XOR processing on the intercepted ciphertext and the second ciphertext to obtain second plaintext data;

[0058] The second splicing module splices the first plaintext data and the second plaintext data to obtain call plaintext.

[0059] Furthermore, two flag bits after the first byte in the voice data frame are used as transfer values ​​of the IV parameter change state, and the change state includes 00 / 01 / 10 / 11.

[0060] The advantages of the present invention are:

[0061] (1) The present invention uses a key management platform or a voice channel to realize the transmission of the encryption initial vector IV, and realizes the encryption conversion from ECB to CBC, which solves the problem that the plaintext cannot be hidden in the ECB mode and the possible active attack on the plaintext, thereby achieving security improvement.

[0062] (2) This method achieves equal-length encryption of ciphertext and original plaintext without supplementary fields, which meets the requirement that the byte length does not change before and after voice encryption, and further improves security.

[0063] (3) By using the extended method of the AMR voice packet frame header, dynamic change based on the initial vector is achieved. And because of the dynamic correspondence between the voice packet frame header and the IV, the entire mechanism does not need to worry about the impact of packet loss on the encryption and decryption of adjacent frames.

[0064] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0065] Figure 1 It is a flow chart of a method for optimizing VoLTE voice encryption in one embodiment of the present invention;

[0066] Figure 2 It is a schematic diagram of voice data frame encryption in one embodiment of the present invention;

[0067] Figure 3 It is a schematic diagram of voice data frame decryption in one embodiment of the present invention;

[0068] Figure 4 This is a diagram of the structure of a voice data frame header in one embodiment of the present invention;

[0069] Figure 5 It is a structural diagram of a terminal for implementing VoLTE voice encryption optimization in another embodiment of the present invention;

[0070] Figure 6 It is a structural diagram of a VoLTE voice encryption optimization implementation system in another embodiment of the present invention. DETAILED DESCRIPTION

[0071] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in combination with the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0072] like Figure 1 As shown, the first embodiment of the present invention proposes a method for optimizing VoLTE voice encryption, and the method includes the following steps:

[0073] S10. The first terminal divides the voice data frame whose data length is greater than the encrypted group byte to obtain second voice data and at least one group of first voice data, wherein the first voice data is voice data of an integer multiple of the encrypted group byte, and the second voice data is voice data whose length is less than the encrypted group byte.

[0074] It should be noted that if Figure 2As shown, specifically in this embodiment, the encrypted group bytes are an integer multiple of 16 bytes, that is, the length of the first group of first voice data is 16 bytes, the length of the second group of first voice data is 16×2 bytes, the length of the third group of first voice data is 16×3 bytes, the length of the nth group of first voice data is 16×n bytes, and the last group in the voice data frame division result, that is, the n+1th group, is the second voice data, and its length is less than 16 bytes.

[0075] S20. Adopt CBC encryption mode, and use encryption key K and IV parameter to encrypt the first voice data to obtain a first ciphertext, wherein the encryption key and the IV parameter are pre-negotiated by the terminals of the two call parties.

[0076] Specifically, for each group of first voice data, the CBC mode is adopted to encrypt the voice data, and the encryption key K and the IV parameter of this call are used to obtain the first ciphertext.

[0077] S30: For the second voice data, adopt the ECB encryption mode and use the encryption key K to encrypt the first voice data encryption ciphertext adjacent to the second voice data to obtain Kiv_1.

[0078] Specifically, for the second voice data with a length less than 16 bytes, the encrypted ciphertext of the nth group of first voice data is taken as the IV value, the IV is encrypted using the encryption key K, the encryption algorithm is SM4, the encryption mode adopts ECB, and Kiv_1 is obtained.

[0079] S40, truncating the Kiv_1 according to the length of the second voice data, and performing an XOR process on the truncated ciphertext and the second voice data to obtain a second ciphertext.

[0080] S50: Concatenate the first ciphertext and the second ciphertext to obtain a call ciphertext, and send the ciphertext to the second terminal so that the second terminal can decrypt the call ciphertext to implement an encrypted call.

[0081] It should be understood that this embodiment performs the above processing on each frame of voice data one by one, and when the processing of the last frame of voice data is completed, a complete call ciphertext can be obtained.

[0082] This embodiment uses a key management platform or a voice channel to implement the transmission of the encryption initial vector IV, and implements the encryption conversion from ECB to CBC, which solves the problem that the plaintext cannot be hidden in the ECB mode and the possible active attack on the plaintext, and improves the security of VoLTE voice calls. By effectively protecting the data that is not enough for the packet length at the tail, preventing the leakage of plaintext, and the plaintext and ciphertext are of equal length, it can effectively adapt to various communication protocols, and improve the ease of use of this method.

[0083] This embodiment only transmits the key identifier and initial vector IV during the communication between the two parties. These information can be made public and have no impact on the key security. There is no problem of the key security decreasing over time in the public key system. It can also solve the SM4 grouping algorithm limitation in the end-to-end algorithm encryption process and improve security.

[0084] In one embodiment, if Figure 3 As shown, the second terminal decrypts the call ciphertext, including the following steps:

[0085] S60: Perform CBC decryption processing on each group of the first ciphertext in the call ciphertext to obtain first plaintext data.

[0086] S70. For the second ciphertext in the call ciphertext whose data length is less than an integer multiple of the encryption block, the ECB encryption mode is adopted, and the encryption key K is used to encrypt the first ciphertext adjacent to it to obtain Kiv_2.

[0087] S80, truncating the Kiv_2 according to the length of the second ciphertext, and performing an XOR process on the truncated ciphertext and the second ciphertext to obtain second plaintext data.

[0088] S90. Concatenate the first plaintext data and the second plaintext data to obtain call plaintext.

[0089] In this embodiment, the second terminal, as the called terminal, decrypts the call ciphertext of the first terminal, and the decryption process corresponds to the process of encrypting the call data by the first terminal.

[0090] In one embodiment, before the first terminal and the second terminal conduct a voice encryption call, the following steps are also included:

[0091] S1. The first terminal and the second terminal negotiate a call key to obtain an encryption key K for the current call.

[0092] S2. The first terminal and the second terminal perform call encryption negotiation to obtain IV parameters for this call.

[0093] In one embodiment, the step S1 specifically includes the following steps:

[0094] S11. The first terminal and the second terminal use the keys in their corresponding chips as login authentication keys to complete identity authentication on the corresponding key management platform.

[0095] It should be noted that when the first terminal and the second terminal are started, they use the keys in their corresponding chips as login authentication keys respectively. The whole process follows the 15843.2 mechanism to complete the identity authentication function of the corresponding key management platform.

[0096] S12. The first terminal initiates a voice signaling process to the second terminal, generates a call identifier for this call, and performs key negotiation, applies for keys from the key management platform respectively, and obtains the encryption key K for this call.

[0097] It should be noted that the two ends of the call negotiate the key, use the numbers of both parties of the call and the call identifier of the call as the unique identifier of the encrypted call, apply for the key from the key management platform, and obtain the encryption key K of the call. With the security chip and its key management method, the "one call, one key" of the call service is realized.

[0098] In one embodiment, the step S2 specifically includes the following steps:

[0099] S21. The first terminal and the second terminal apply to the key management platform for IV parameters for this call.

[0100] S22. The key management platform generates IV parameters for the current call in real time according to the terminal numbers of both parties to the call and the call time, and synchronizes the IV parameters to the first terminal and the second terminal.

[0101] It should be noted that after the first terminal and the second terminal complete the key negotiation for this call, they start the encryption negotiation for this call and complete the negotiation of encryption parameters, where the negotiation parameters include the encryption key K for this call and the IV for this call.

[0102] It should be noted that in this embodiment, in order to obtain the encrypted IV, the first terminal and the second terminal use the traditional key negotiation method to apply for the encrypted IV from the key management platform. The key management platform generates the IV of this call based on the calling and called numbers and the call time and synchronizes it to the first terminal and the second terminal. Since the IV is generated in real time by the platform, the security of the overall encryption is improved with the help of the security of the key management platform.

[0103] In one embodiment, the step S2 comprises the following steps:

[0104] S21': The first terminal and the second terminal negotiate IV parameters using a voice channel, and the negotiation information includes a random number A generated by the first terminal and a random number B generated by the second terminal.

[0105] S22': the first terminal and the second terminal calculate a common IV parameter value using the same calculation method, and synchronize them in the voice information.

[0106] It should be noted that after the first terminal and the second terminal complete key acquisition and before starting voice information, the first terminal and the second terminal start IV negotiation using the voice channel. The negotiation information includes a random number A generated by the first terminal and a random number B generated by the second terminal. The first terminal and the second terminal use the same algorithm to calculate a common IV value, thereby achieving synchronization of the IV value within the voice information and improving the security of the IV value negotiation. Since the IV negotiation does not affect the voice call quality at the beginning of the voice, the user experience is improved.

[0107] This embodiment also provides two methods for transferring the initial vector IV to meet the needs of transferring IV under different security and network conditions.

[0108] In one embodiment, two flag bits after the first byte in the voice data frame are used as transfer values ​​of the IV parameter change state, and the change state includes 00 / 01 / 10 / 11.

[0109] It should be noted that the voice frame currently mainly consists of the first byte as the frame header, such as Figure 4 As shown, the main meaning of the frame header is that P is set to 0, FT is the coding mode, and Q is the frame quality indicator. If Q is set to 0, it indicates that the frame is damaged and the receiver needs to set RX_TYPE to SPEECH_BAD or SID_BAD.

[0110] This embodiment uses the last two flag bits of the first byte as the transfer value of the IV change, which can provide changes in the IV value from four states of 00 / 01 / 10 / 11. Together with the original IV, the IV value of each frame can be dynamically changed. Moreover, since each frame corresponds to the IV, the entire mechanism is associated with its own package, and there is no need to worry about the impact of packet loss.

[0111] This embodiment uses an extended method of the AMR voice packet frame header to achieve dynamic change based on the initial vector, and because of the dynamic correspondence between the voice packet frame header and IV, the entire mechanism does not need to worry about the impact of packet loss on encryption and decryption of adjacent frames.

[0112] In addition, if Figure 5 As shown, the second embodiment of the present invention proposes a VoLTE voice encryption optimization implementation terminal, the terminal comprising:

[0113] The segmentation module 10 is used to segment the voice data frame whose data length is greater than the encrypted group byte to obtain the second voice data and at least one group of first voice data, wherein the first voice data is the voice data of an integer multiple of the encrypted group byte, and the second voice data is the voice data whose length is less than the encrypted group byte;

[0114] A first encryption module 20 is used to adopt a CBC encryption mode and use an encryption key K and an IV parameter to encrypt the first voice data to obtain a first ciphertext, wherein the encryption key and the IV parameter are pre-negotiated by the terminals of the two call parties;

[0115] The second encryption module 30 is used to encrypt the first voice data encrypted ciphertext adjacent to the second voice data using the encryption key K in ECB encryption mode to obtain Kiv_1;

[0116] A first XOR module 40 is used to intercept the Kiv_1 according to the length of the second voice data, and perform XOR processing on the intercepted ciphertext and the second voice data to obtain a second ciphertext;

[0117] The first concatenation module 50 is used to concatenate the first ciphertext and the second ciphertext to obtain a call ciphertext, and send it to the call peer end so that the peer end can decrypt the call ciphertext to realize an encrypted call.

[0118] In one embodiment, the terminal further includes:

[0119] A first decryption module, configured to perform CBC decryption processing on each group of the first ciphertext in the call ciphertext to obtain first plaintext data;

[0120] A second decryption module is used to encrypt the second ciphertext whose data length is less than an integer multiple of the encryption block in the call ciphertext by using the ECB encryption mode and the encryption key K to encrypt the adjacent first ciphertext to obtain Kiv_2;

[0121] A second XOR module is used to intercept the Kiv_2 according to the length of the second ciphertext, and perform XOR processing on the intercepted ciphertext and the second ciphertext to obtain second plaintext data;

[0122] The second splicing module splices the first plaintext data and the second plaintext data to obtain call plaintext.

[0123] This embodiment uses a key management platform or a voice channel to implement the transmission of the encryption initial vector IV, and implements the encryption conversion from ECB to CBC, which solves the problem that the plaintext cannot be hidden in the ECB mode and the possible active attack on the plaintext, and improves the security of VoLTE voice calls. By effectively protecting the data that is not enough for the packet length at the tail, preventing the leakage of plaintext, and the plaintext and ciphertext are of equal length, it can effectively adapt to various communication protocols, and improve the ease of use of this method.

[0124] In addition, if Figure 6As shown, the third embodiment of the present invention proposes a VoLTE voice encryption optimization implementation system, the system comprising: a first terminal 1, a second terminal 2, a first key management platform 3 and a second key management platform 4, the first terminal 1 and the second terminal 2 are both integrated with a chip, and the first terminal 1 and the second terminal 2 both include:

[0125] A segmentation module, used for segmenting the voice data frame whose data length is greater than the encrypted group byte, to obtain second voice data and at least one group of first voice data, wherein the first voice data is voice data of an integral multiple of the encrypted group byte, and the second voice data is voice data whose length is less than the encrypted group byte;

[0126] A first encryption module, configured to adopt a CBC encryption mode and use an encryption key K and an IV parameter to encrypt the first voice data to obtain a first ciphertext, wherein the encryption key and the IV parameter are pre-negotiated by the terminals of both call parties;

[0127] A second encryption module is used to encrypt the first voice data encrypted ciphertext adjacent to the second voice data using the encryption key K in ECB encryption mode to obtain Kiv_1;

[0128] A first XOR module, used for intercepting the Kiv_1 according to the length of the second voice data, and performing XOR processing on the intercepted ciphertext and the second voice data to obtain a second ciphertext;

[0129] The first concatenation module is used to concatenate the first ciphertext and the second ciphertext to obtain a call ciphertext, and send it to the call peer end so that the call peer end can decrypt the call ciphertext to realize an encrypted call.

[0130] This embodiment uses a key management platform or a voice channel to implement the transmission of the encryption initial vector IV, and implements the encryption conversion from ECB to CBC, which solves the problem that the plaintext cannot be hidden in the ECB mode and the possible active attack on the plaintext, and improves the security of VoLTE voice calls. By effectively protecting the data that is not enough for the packet length at the tail, preventing the leakage of plaintext, and the plaintext and ciphertext are of equal length, it can effectively adapt to various communication protocols, and improve the ease of use of this method.

[0131] In one embodiment, the first terminal and the second terminal both further include:

[0132] A first decryption module, configured to perform CBC decryption processing on each group of the first ciphertext in the call ciphertext to obtain first plaintext data;

[0133] A second decryption module is used to encrypt the second ciphertext whose data length is less than an integer multiple of the encryption block in the call ciphertext by using the ECB encryption mode and the encryption key K to encrypt the adjacent first ciphertext to obtain Kiv_2;

[0134] A second XOR module is used to intercept the Kiv_2 according to the length of the second ciphertext, and perform XOR processing on the intercepted ciphertext and the second ciphertext to obtain second plaintext data;

[0135] The second splicing module splices the first plaintext data and the second plaintext data to obtain call plaintext.

[0136] In one embodiment, two flag bits after the first byte in the voice data frame are used as transfer values ​​of the IV parameter change state, and the change state includes 00 / 01 / 10 / 11.

[0137] By using the extended method of the AMR voice packet frame header, dynamic variability based on the initial vector is achieved. And because of the dynamic correspondence between the voice packet frame header and IV, the entire mechanism does not need to worry about the impact of packet loss on the encryption and decryption of adjacent frames.

[0138] In one embodiment, the first terminal and the second terminal both include a key module and a voice communication module, wherein:

[0139] The key module is mainly connected to its own integrated chip to realize identity authentication and session key acquisition functions to the key management platform.

[0140] It should be noted that the chip is a secure medium that complies with the certificate issued by the National Commercial Cryptography Bureau and has security protection capabilities. It can be connected to the key management platform to realize the key filling function in the security chip, and realize the identity authentication and session key one-time issuance to the key management platform using the key in the security chip as the authentication key.

[0141] The voice communication module mainly includes a voice signaling module and a voice data processing module, wherein:

[0142] The voice signaling module is a terminal signaling module, which realizes the processing and analysis of voice signaling during the terminal call initiation process;

[0143] The voice data processing module mainly includes voice data information processing and encryption functions, and realizes end-to-end voice encryption function.

[0144] In one embodiment, the key modules in the first terminal and the second terminal use the key in the security chip as the login authentication key, and the entire process follows the 15843.2 mechanism to complete the identity authentication function to the corresponding key management platform.

[0145] The first terminal makes a call to the second terminal, initiates a voice signaling process through the voice communication module, generates a call identifier for this call, and at the same time, the internal key management modules of the first terminal and the second terminal start two-way key negotiation, using the numbers of both parties of this call and the call identifier of this call as the unique identifier of an encrypted call, and apply for a key from the key management platform. The first terminal and the second terminal obtain the encryption key K for this call through the key management module.

[0146] In one embodiment, the first terminal and the second terminal may apply for the IV of this encryption from the key management platform using a traditional key negotiation method. The key management platform generates the IV of this call based on the calling and called numbers and the call time and synchronizes it to the first terminal and the second terminal. Since the IV is generated in real time by the platform, the security of the overall encryption is improved with the help of the security of the key management platform.

[0147] In one embodiment, the first terminal and the second terminal use a voice channel to start IV negotiation, and the negotiation information includes a random number A generated by the first terminal and a random number B generated by the second terminal. The first terminal and the second terminal use the same algorithm to calculate a common IV value, thereby achieving synchronization of the IV value within the voice information, thereby improving the security of the IV value negotiation, because the IV negotiation does not affect the voice call quality at the beginning of the voice.

[0148] It should be noted that other embodiments of the VoLTE voice encryption optimization implementation system or implementation methods of the present invention can refer to the above-mentioned method embodiments, which will not be repeated here.

[0149] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0150] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0151] Although the embodiments of the present invention have been shown and described above, it is to be understood that the above embodiments are exemplary and are not to be construed as limitations of the present invention. A person skilled in the art may change, modify, replace and vary the above embodiments within the scope of the present invention.

Claims

1. A method for optimizing VoLTE voice encryption, characterized in that: The method comprises: The first terminal divides the voice data frame whose data length is greater than the encrypted group byte to obtain n groups of first voice data and n+1 groups of second voice data, wherein the first voice data is voice data of an integer multiple of the encrypted group byte, and the second voice data is voice data whose length is less than the encrypted group byte, wherein n is a positive integer; Adopting CBC encryption mode, and using encryption key K and IV parameter to encrypt the first voice data to obtain first ciphertext, wherein the encryption key and the IV parameter are pre-negotiated by the terminals of the two call parties; For the second voice data, the ECB encryption mode is adopted, and the encryption key K is used to encrypt the encrypted ciphertext of the nth group of first voice data to obtain Kiv_1; intercepting the Kiv_1 according to the length of the second voice data, and performing XOR processing on the intercepted ciphertext and the second voice data to obtain a second ciphertext; The first ciphertext and the second ciphertext are concatenated to obtain a call ciphertext, and the ciphertext is sent to the second terminal so that the second terminal can decrypt the call ciphertext to realize an encrypted call; The second terminal decrypts the call ciphertext, including: Perform CBC decryption processing on each group of the first ciphertext in the call ciphertext to obtain first plaintext data; For the second ciphertext in the call ciphertext whose data length is less than an integer multiple of the encrypted block, the ECB encryption mode is adopted, and the encryption key K is used to encrypt the first ciphertext adjacent to it, to obtain Kiv_2; According to the length of the second ciphertext, the Kiv_2 is intercepted, and the intercepted ciphertext is XORed with the second ciphertext to obtain second plaintext data; The first plaintext data and the second plaintext data are concatenated to obtain call plaintext.

2. The VoLTE voice encryption optimization implementation method as claimed in claim 1, characterized in that: Before the first terminal and the second terminal conduct a voice encryption call, the method further includes: The first terminal and the second terminal negotiate a call key to obtain an encryption key K for the current call; The first terminal and the second terminal perform call encryption negotiation to obtain IV parameters for the current call.

3. The VoLTE voice encryption optimization implementation method as described in claim 2, characterized in that: The first terminal and the second terminal are both integrated with a chip, and the first terminal and the second terminal perform call key negotiation to obtain an encryption key K for the current call, including: The first terminal and the second terminal use the keys in their corresponding chips as login authentication keys to complete identity authentication on the corresponding key management platform; The first terminal initiates a voice signaling process to the second terminal, generates a call identifier for this call, and performs key negotiation, applies for keys from the key management platform respectively, and obtains the encryption key K for this call.

4. The VoLTE voice encryption optimization implementation method as claimed in claim 2, characterized in that: The first terminal and the second terminal perform call encryption negotiation to obtain IV parameters for the current call, including: The first terminal and the second terminal apply for IV parameters of this call from the key management platform; The key management platform generates IV parameters for this call in real time according to the terminal numbers of both parties of the call and the call time, and synchronizes them to the first terminal and the second terminal.

5. The VoLTE voice encryption optimization implementation method as claimed in claim 2, characterized in that: The first terminal and the second terminal perform call encryption negotiation to obtain IV parameters for the current call, including: The first terminal and the second terminal negotiate IV parameters using a voice channel, where the negotiation information includes a random number A generated by the first terminal and a random number B generated by the second terminal; The first terminal and the second terminal calculate a common IV parameter value using the same calculation method and synchronize them in the voice information.

6. The VoLTE voice encryption optimization implementation method as claimed in claim 1, characterized in that: The two flag bits after the first byte in the voice data frame are used as the transfer values ​​of the IV parameter change state, and the change state includes 00 / 01 / 10 / 11.

7. A VoLTE voice encryption optimization implementation terminal, characterized in that: The terminal comprises: A segmentation module is used to segment the voice data frames whose data length is greater than the encrypted group byte to obtain n groups of first voice data and n+1 groups of second voice data, wherein the first voice data is voice data of an integer multiple of the encrypted group byte, and the second voice data is voice data whose length is less than the encrypted group byte, wherein n is a positive integer; A first encryption module, configured to adopt a CBC encryption mode and use an encryption key K and an IV parameter to encrypt the first voice data to obtain a first ciphertext, wherein the encryption key and the IV parameter are pre-negotiated by the terminals of both call parties; A second encryption module is used to encrypt the encrypted ciphertext of the nth group of first voice data using the encryption key K in ECB encryption mode for the second voice data to obtain Kiv_1; A first XOR module, used for intercepting the Kiv_1 according to the length of the second voice data, and performing XOR processing on the intercepted ciphertext and the second voice data to obtain a second ciphertext; A first concatenation module is used to concatenate the first ciphertext and the second ciphertext to obtain a call ciphertext, and send the concatenation ciphertext to the call peer end so that the concatenation ciphertext can be decrypted to realize an encrypted call; The terminal further includes: A first decryption module, configured to perform CBC decryption processing on each group of the first ciphertext in the call ciphertext to obtain first plaintext data; A second decryption module is used to encrypt the second ciphertext whose data length is less than an integer multiple of the encryption block in the call ciphertext by using the ECB encryption mode and the encryption key K to encrypt the adjacent first ciphertext to obtain Kiv_2; A second XOR module is used to intercept the Kiv_2 according to the length of the second ciphertext, and perform XOR processing on the intercepted ciphertext and the second ciphertext to obtain second plaintext data; The second splicing module splices the first plaintext data and the second plaintext data to obtain call plaintext.

8. A VoLTE voice encryption optimization implementation system, characterized in that: The system includes: a first terminal, a second terminal, a first key management platform and a second key management platform, the first terminal and the second terminal are both integrated with a chip, and the first terminal and the second terminal both use the VoLTE voice encryption optimization implementation terminal according to claim 7, including: A segmentation module is used to segment the voice data frames whose data length is greater than the encrypted group byte to obtain n groups of first voice data and n+1 groups of second voice data, wherein the first voice data is voice data of an integer multiple of the encrypted group byte, and the second voice data is voice data whose length is less than the encrypted group byte, wherein n is a positive integer; A first encryption module, configured to adopt a CBC encryption mode and use an encryption key K and an IV parameter to encrypt the first voice data to obtain a first ciphertext, wherein the encryption key and the IV parameter are pre-negotiated by the terminals of both call parties; A second encryption module is used to encrypt the encrypted ciphertext of the nth group of first voice data using the encryption key K in ECB encryption mode for the second voice data to obtain Kiv_1; A first XOR module, used for intercepting the Kiv_1 according to the length of the second voice data, and performing XOR processing on the intercepted ciphertext and the second voice data to obtain a second ciphertext; The first concatenation module is used to concatenate the first ciphertext and the second ciphertext to obtain a call ciphertext, and send it to the call peer end so that the call peer end can decrypt the call ciphertext to realize an encrypted call.