VoLTE voice encryption communication method, network device, terminal and readable storage medium
Using a quantum random number generator to generate a session key and perform encrypted communication between the terminal and network equipment solves the problem of low security of existing VoLTE voice encrypted communication and achieves higher communication security.
Patent Information
- Application Number
- CN202310288311.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-23
- Publication Date
- 2024-09-24
AI Technical Summary
The security of existing VoLTE voice encrypted communication is low. The session key based on asymmetric cryptography technology can be cracked in polynomial time, making the communication process unsafe.
A quantum random number generator is used to generate the session key, and encrypted communication is carried out between the terminal and the network device through the target encryption information and integrity check value to ensure that the binding relationship between the key and the user's mobile phone number is verified before establishing the media. aisle.
It improves the security of VoLTE voice encrypted communication, prevents the key from being cracked, and ensures the security and reliability of the communication process.
Smart Images

Figure CN118694544A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a VoLTE voice encryption communication method, network equipment, a terminal and a readable storage medium. Background Art
[0002] Voice over Long Term Evolution (VoLTE) encrypted communication has high security and is widely used in the field of encrypted communication. In related technologies, VoLTE encrypted terminals use asymmetric cryptographic technology to negotiate a shared session key for encrypted communication, that is, the calling terminal and the called terminal use array certificates for identity authentication, and if the authentication is passed, the calling terminal sends the session key to the called terminal, and the calling terminal and the called terminal use the session key for encrypted communication. However, since traditional asymmetric cryptographic algorithms designed based on complex mathematical problems such as large number decomposition and discrete logarithms can be cracked in polynomial time, VoLTE voice encrypted communication based on asymmetric cryptographic technology cannot ensure the security of the communication process.
[0003] It can be seen that the existing technology has the problem of low security of VoLTE voice encryption communication. Summary of the invention
[0004] The embodiments of the present invention provide a VoLTE voice encryption communication method, a network device, a terminal and a readable storage medium to solve the problem of low security of VoLTE voice encryption communication in the prior art.
[0005] To solve the above problems, the present invention is achieved as follows:
[0006] In a first aspect, an embodiment of the present invention provides a VoLTE voice encryption communication method, which is applied to a network device, including:
[0007] generating a session key based on a quantum random number generator when receiving an encrypted call request sent by a first terminal and a first response message sent by a second terminal; the first response message is a message sent by the second terminal to the network device after receiving the encrypted call request;
[0008] Sending target encrypted information to the first terminal and the second terminal respectively, and receiving a second response message, wherein the target encrypted information is used to represent the encrypted session key;
[0009] When the binding relationship between the session key and the mobile phone number of the user corresponding to the first terminal is determined based on the second response message, and the binding relationship between the session key and the mobile phone number of the user corresponding to the second terminal is verified, a media channel is established, and the media channel is used for the first terminal and the second terminal to conduct encrypted communication based on the session key.
[0010] In one embodiment, the target encryption information includes a target encryption value and a target integrity check value, the target encryption value is used by the target terminal to parse the session key, and the target integrity check value is used by the target terminal to verify whether the session key is correct, and the target terminal is the first terminal or the second terminal.
[0011] In one embodiment, before sending the target encrypted information to the first terminal and the second terminal respectively, the method includes:
[0012] Generate a first target random number based on the quantum random number generator;
[0013] Encrypting the session key and the first target random number based on a preset key of the target terminal to obtain the target encrypted value;
[0014] Perform integrity check calculation on the session key and the first target random number to generate the target integrity check value.
[0015] In one embodiment, the second response message includes first information, where the first information is obtained by the target terminal encrypting the second target random number based on the preset key;
[0016] The second target random number is obtained by the target terminal parsing the target encrypted value based on the preset key.
[0017] In one embodiment, it further includes:
[0018] Decrypting the second response message based on a preset key of the target terminal to obtain the second target random number;
[0019] In the case where the first target random number matches the second target random number, it is determined that the mobile phone number of the user corresponding to the target terminal is bound to the session key.
[0020] In one embodiment, sending the target encrypted information to the first terminal and the second terminal respectively includes:
[0021] Sending a first Session Initiation Protocol (SIP) signaling to the first terminal, where the first SIP signaling includes the target encryption information, and the first SIP signaling is a signaling added to a first response message sent by the second terminal to the first terminal;
[0022] A second SIP signaling is sent to the second terminal, where the second SIP signaling includes the target encryption information, and the second SIP signaling is signaling added to a second response message sent by the first terminal to the second terminal.
[0023] In a second aspect, an embodiment of the present invention further provides a VoLTE voice encryption communication method, which is applied to a terminal, comprising:
[0024] Sending an encrypted call request or a first response message to the network device, where the first response message is information sent to the network device after receiving the encrypted call request forwarded by the network device;
[0025] receiving target encrypted information, where the target encrypted information is information obtained by encrypting a session key generated based on a quantum random number generator by the network device after receiving the first response message;
[0026] decrypting the target encrypted information to obtain the session key;
[0027] When the network device verifies that the session key is respectively bound to the mobile phone numbers corresponding to the two terminals performing communication, encrypted communication is performed based on the session key.
[0028] In one embodiment, decrypting the target encrypted information to obtain the session key includes:
[0029] Parsing the target encrypted information based on a preset key of the terminal to obtain the session key;
[0030] When the session key passes the verification, the session key and the mobile phone number corresponding to the terminal are bound.
[0031] In one embodiment, the target encryption information includes a target encryption value and a first target integrity check value, the target encryption value is obtained by the network device encrypting the session key and the first target random number based on a preset key of the terminal, and the first target integrity check value is obtained by the network device performing integrity check calculation on the session key and the first target random number;
[0032] Before performing encrypted communication based on the session key, the method further includes:
[0033] Parsing the target encrypted value based on a preset key of the terminal to obtain a second target random number;
[0034] Performing integrity check calculation on the session key and the second target random number to generate a second target integrity check value;
[0035] In case the second target integrity check value matches the first target integrity check value, the session key is verified.
[0036] In one embodiment, after binding the session key, the method further comprises:
[0037] The first target random number is encrypted based on a preset key of the terminal to obtain second response information, where the second response information is used by a network device to determine whether the terminal is bound to the session key.
[0038] In one embodiment, receiving target encrypted information further comprises:
[0039] A SIP signaling sent by the network device is received, where the SIP signaling includes the target encryption information.
[0040] In a third aspect, an embodiment of the present invention further provides a network device, including:
[0041] A first processing module, configured to generate a session key based on a quantum random number generator when receiving an encrypted call request sent by a first terminal and a first response message sent by a second terminal; the first response message is a message sent by the second terminal to the network device after receiving the encrypted call request;
[0042] a transceiver module, configured to send target encrypted information to the first terminal and the second terminal respectively, and receive a second response message, wherein the target encrypted information is used to represent the encrypted session key;
[0043] The second processing module is used to establish a media channel when the binding relationship between the session key and the mobile phone number of the user corresponding to the first terminal is determined based on the second response message, and the binding relationship between the session key and the mobile phone number of the user corresponding to the second terminal is verified to be successful. The media channel is used for the first terminal and the second terminal to perform encrypted communication based on the session key.
[0044] In one embodiment, the target encryption information includes a target encryption value and a target integrity check value, the target encryption value is used by the target terminal to parse the session key, and the target integrity check value is used by the target terminal to verify whether the session key is correct, and the target terminal is the first terminal or the second terminal.
[0045] In one embodiment, before the transceiver module, the device includes:
[0046] A third processing module, configured to generate a first target random number based on the quantum random number generator;
[0047] a fourth processing module, configured to encrypt the session key and the first target random number based on a preset key of the target terminal to obtain the target encrypted value;
[0048] The fifth processing module is used to perform integrity check calculation on the session key and the first target random number to generate the target integrity check value.
[0049] In one embodiment, the second response message includes first information, where the first information is obtained by the target terminal encrypting the second target random number based on the preset key;
[0050] The second target random number is obtained by the target terminal parsing the target encrypted value based on the preset key.
[0051] In one embodiment, the apparatus further comprises:
[0052] a sixth processing module, configured to decrypt the second response message based on a preset key of the target terminal to obtain the second target random number;
[0053] In the case where the first target random number matches the second target random number, it is determined that the mobile phone number of the user corresponding to the target terminal is bound to the session key.
[0054] In one embodiment, the transceiver module includes:
[0055] A first transceiver unit is used to send a first session initiation protocol SIP signaling to the first terminal, where the first SIP signaling includes the target encryption information, and the first SIP signaling is a signaling added to a first response message sent by the second terminal to the first terminal;
[0056] The second transceiver unit is used to send a second SIP signaling to the second terminal, where the second SIP signaling includes the target encryption information, and the second SIP signaling is a signaling added to a second response message sent by the first terminal to the second terminal.
[0057] In a fourth aspect, an embodiment of the present invention further provides a terminal, including:
[0058] A sending module, used to send an encrypted call request or a first response message to a network device, wherein the first response message is information sent to the network device after receiving the encrypted call request forwarded by the network device;
[0059] A receiving module, configured to receive target encrypted information, wherein the target encrypted information is information obtained by encrypting a session key generated based on a quantum random number generator after the network device receives the first response message;
[0060] A first processing module, used for decrypting the target encrypted information to obtain the session key;
[0061] The second processing module is used to perform encrypted communication based on the session key when the network device verifies that the session key is bound to the mobile phone numbers corresponding to the two terminals performing communication.
[0062] In one embodiment, the first processing module includes:
[0063] A first processing unit, configured to parse the target encrypted information based on a preset key of the terminal to obtain the session key;
[0064] The second processing unit is used to bind the session key and the mobile phone number corresponding to the terminal when the session key passes the verification.
[0065] In one embodiment, the target encryption information includes a target encryption value and a first target integrity check value, the target encryption value is obtained by the network device encrypting the session key and the first target random number based on a preset key of the terminal, and the first target integrity check value is obtained by the network device performing integrity check calculation on the session key and the first target random number;
[0066] Before the second processing module, the device further includes:
[0067] A third processing module, configured to parse the target encrypted value based on a preset key of the terminal to obtain a second target random number;
[0068] A fourth processing module, configured to perform integrity check calculation on the session key and the second target random number to generate a second target integrity check value;
[0069] A fifth processing module is configured to verify that the session key passes the verification if the second target integrity check value matches the first target integrity check value.
[0070] In one embodiment, after the second processing unit, the device further includes:
[0071] The third processing unit is used to encrypt the first target random number based on the preset key of the terminal to obtain second response information, where the second response information is used by the network device to determine whether the terminal is bound to the session key.
[0072] In one embodiment, the receiving module includes:
[0073] A receiving unit is used to receive a SIP signaling sent by the network device, wherein the SIP signaling includes the target encryption information.
[0074] In a fifth aspect, an embodiment of the present invention provides a network device, including a transceiver and a processor.
[0075] The processor is configured to generate a session key based on a quantum random number generator when receiving an encrypted call request sent by a first terminal and a first response message sent by a second terminal; the first response message is a message sent by the second terminal to the network device after receiving the encrypted call request;
[0076] The transceiver is used to send target encrypted information to the first terminal and the second terminal respectively, and receive a second response message, wherein the target encrypted information is used to represent the encrypted session key;
[0077] The processor is further configured to establish a media channel when, based on the second response message, a binding relationship between the session key and the mobile phone number of the user corresponding to the first terminal is determined, and when the binding relationship between the session key and the mobile phone number of the user corresponding to the second terminal is verified to be successful, the media channel being used for the first terminal and the second terminal to perform encrypted communication based on the session key.
[0078] In one embodiment, the target encryption information includes a target encryption value and a target integrity check value, the target encryption value is used by the target terminal to parse the session key, and the target integrity check value is used by the target terminal to verify whether the session key is correct, and the target terminal is the first terminal or the second terminal.
[0079] In one embodiment, the processor is further configured to generate a first target random number based on the quantum random number generator;
[0080] The processor is further configured to encrypt the session key and the first target random number based on a preset key of the target terminal to obtain the target encrypted value;
[0081] The processor is further configured to perform integrity check calculation on the session key and the first target random number to generate the target integrity check value.
[0082] In one embodiment, the second response message includes first information, where the first information is obtained by the target terminal encrypting the second target random number based on the preset key;
[0083] The second target random number is obtained by the target terminal parsing the target encrypted value based on the preset key.
[0084] In one embodiment, the processor is further configured to decrypt the second response message based on a preset key of the target terminal to obtain the second target random number;
[0085] The processor is further configured to determine that a mobile phone number of a user corresponding to the target terminal is bound to the session key when the first target random number matches the second target random number.
[0086] In one embodiment, the transceiver is further used to send a first session initiation protocol SIP signaling to the first terminal, the first SIP signaling includes the target encryption information, and the first SIP signaling is a signaling added to a first response message sent by the second terminal to the first terminal;
[0087] The transceiver is further used to send a second SIP signaling to the second terminal, where the second SIP signaling includes the target encryption information, and the second SIP signaling is a signaling added to a second response message sent by the first terminal to the second terminal.
[0088] In a sixth aspect, an embodiment of the present invention provides a terminal, including a transceiver and a processor.
[0089] The transceiver is used to send an encrypted call request or a first response message to the network device, wherein the first response message is information sent to the network device after receiving the encrypted call request forwarded by the network device;
[0090] The transceiver is further used to receive target encrypted information, where the target encrypted information is information obtained by encrypting a session key generated based on a quantum random number generator by the network device after receiving the first response message;
[0091] The processor is used to decrypt the target encrypted information to obtain the session key;
[0092] The processor is further configured to perform encrypted communication based on the session key when the network device verifies that the session key is respectively bound to the mobile phone numbers corresponding to the two terminals performing communication.
[0093] In one embodiment, the processor is further configured to parse the target encrypted information based on a preset key of the terminal to obtain the session key;
[0094] The processor is further configured to bind the session key and the mobile phone number corresponding to the terminal when the session key passes the verification.
[0095] In one embodiment, the target encryption information includes a target encryption value and a first target integrity check value, the target encryption value is obtained by the network device encrypting the session key and the first target random number based on a preset key of the terminal, and the first target integrity check value is obtained by the network device performing integrity check calculation on the session key and the first target random number;
[0096] The processor is further configured to parse the target encrypted value based on a preset key of the terminal to obtain a second target random number;
[0097] The processor is further configured to perform integrity check calculation on the session key and the second target random number to generate a second target integrity check value;
[0098] The processor is further configured to verify that the session key passes verification when the second target integrity check value matches the first target integrity check value.
[0099] In one embodiment, the processor is further used to encrypt the first target random number based on a preset key of the terminal to obtain a second response cancellation information, and the second response cancellation information is used by the network device to determine whether the terminal is bound to the session key.
[0100] In one embodiment, the transceiver is further used to receive SIP signaling sent by the network device, and the SIP signaling includes the target encryption information.
[0101] In the seventh aspect, an embodiment of the present invention provides a network device, comprising: a processor, a memory, and a program stored in the memory and executable on the processor, wherein when the program is executed by the processor, the steps of the VoLTE voice encryption communication method described in the first aspect are implemented.
[0102] In an eighth aspect, an embodiment of the present invention provides a terminal, comprising: a processor, a memory, and a program stored in the memory and executable on the processor, wherein when the program is executed by the processor, the steps of the VoLTE voice encryption communication method described in the second aspect are implemented.
[0103] In the ninth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the VoLTE voice encryption communication method described in the first aspect are implemented; or when the computer program is executed by a processor, the steps of the VoLTE voice encryption communication method described in the second aspect are implemented.
[0104] In an embodiment of the present invention, when the network device receives an encrypted call request sent by the first terminal and a first response message sent by the second terminal, a session key is generated based on a quantum random number generator, and then target encryption information representing the session key is sent to the first terminal and the second terminal respectively; when the network device receives the second response message sent by the first terminal and the second terminal, the binding relationship between the session key and the mobile phone number of the first terminal and whether the binding relationship between the session key and the second terminal is passed are determined based on the second response message, and a media channel is established in the case of passing, so that the first terminal and the second terminal perform encrypted communication based on the session key. Among them, since the session key is generated by the network device based on the quantum random number generator, the session key cannot be cracked; and after the first terminal and the second terminal bind the session key to the telephone number corresponding to the terminal, the network device establishes a media channel for encrypted communication, so that the first terminal and the second terminal must pass the session key to perform encrypted communication, thereby improving the security of VoLTE voice encryption communication. BRIEF DESCRIPTION OF THE DRAWINGS
[0105] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0106] Figure 1 This is a flow chart of a VoLTE voice encryption communication method provided by an embodiment of the present invention;
[0107] Figure 2 is a flow chart of a network device generating a session key provided by an embodiment of the present invention;
[0108] Figure 3 is a flow chart of a network device sending a session key provided by an embodiment of the present invention;
[0109] Figure 4 This is a flow chart of a VoLTE voice encryption communication method provided by an embodiment of the present invention;
[0110] Figure 5 is a structural diagram of a network device provided by an embodiment of the present invention;
[0111] Figure 6 is a structural diagram of a terminal provided by an embodiment of the present invention;
[0112] Figure 7 is a structural diagram of a network device provided by an embodiment of the present invention;
[0113] Figure 8 It is a structural diagram of a terminal provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0114] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in 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.
[0115] See also Figure 1 , Figure 1 : is a flowchart of a VoLTE voice encryption communication method provided by an embodiment of the present invention, which is applied to network equipment, such as Figure 1 As shown, the following steps are included:
[0116] Step 101: upon receiving an encrypted call request sent by a first terminal and a first response message sent by a second terminal, a session key is generated based on a quantum random number generator; the first response message is a message sent by the second terminal to the network device after receiving the encrypted call request.
[0117] The first terminal is a calling terminal, the second terminal is a called terminal, the encrypted call request is a call request sent by the first terminal to the second terminal when the first terminal and the second terminal need to perform encrypted communication, and is used to prompt the second terminal to perform encrypted communication. The first response message is a response message sent by the second terminal to the second terminal after receiving the encrypted call request, and is used to indicate that the second terminal has received the encrypted call request and then started the subsequent encrypted call process.
[0118] It should be understood that in the process of the first terminal sending an encrypted call request to the second terminal, the first terminal sends the encrypted call request to the network device, and then the network device sends the encrypted request to the second terminal; after receiving the encrypted call request, the second terminal sends a first response message to the network device, and then the network device sends the first response request to the first terminal. When the network device receives the encrypted request and the first response message, the network device determines that the first terminal and the second terminal need to establish a media channel, and then generates a session key and sends it to the first terminal and the second terminal for encrypted communication between the first terminal and the second terminal. See the subsequent embodiments for details.
[0119] Among them, the quantum random number generator is preset in the network device and is used to generate random numbers as session keys.
[0120] Exemplarily, the process of the network device receiving the encrypted call request sent by the first terminal and the first response message sent by the second terminal is as follows: Figure 2 As shown, Figure 2 The first terminal is user equipment (UE) A, and the second terminal is UE B. UE A sends an encrypted call request to the quantum key management AS through the proxy-call session control function (P-CSCF) or session border control (SBC), the serving-call session control function (S-CSCF) and the VoLTE access layer (AS). UE B sends 183, i.e., the first response message, to the quantum key management AS through the P-CSCF or SBC, the home subscriber server (HSS), the interrogating-call session control function (I-CSCF) or the S-CSCF. When receiving the call encryption request and the first response request, the quantum key management AS generates a session key based on a quantum random number generator.
[0121] Step 102: Send target encryption information to the first terminal and the second terminal respectively, and receive a second response message, wherein the target encryption information is used to represent the encrypted session key.
[0122] The target encrypted information is obtained by encrypting the session key after the network device generates the session key. After generating the target encrypted information, the network device sends the target encrypted information to the first terminal and the second terminal respectively, and the first terminal and the second terminal decrypt the target encrypted information to obtain the session key.
[0123] It should be understood that the first terminal and the second terminal are respectively configured with a cryptographic module, which is pre-installed with a quantum key; the network device is configured with a quantum key management AS, which includes the quantum key of the first terminal and the quantum key of the second terminal. Since the quantum keys of the first terminal and the second terminal are different, the network device parses the session key based on the quantum key of the terminal receiving the target encrypted information during the encryption of the session key to obtain the target encrypted information corresponding to the different terminals, so that the first terminal and the second terminal can decrypt the target encrypted information based on the quantum key after receiving the corresponding target encrypted information to obtain the session key, as described in the subsequent embodiments.
[0124] The second response message is a response message sent by the first terminal and the second terminal to the network device after the first terminal and the second terminal obtain the session key through parsing, and is used to indicate that the first terminal and the second terminal obtain the session key through parsing and have the ability to perform encrypted communication based on the session key.
[0125] Exemplarily, the process of the network device sending target encrypted information to the first terminal and the second terminal respectively is as follows: Figure 3 As shown, after the session key is generated, the quantum key management AS sends the target encryption information to UE A through VoLTE AS, S-CSCF, P-CSCF or SBC in sequence (183 in the figure includes the target encryption information), and receives the second response message sent by UE A through P-CSCF or SBC, S-CSCF, and VoLTE AS in sequence (the update request in the figure includes the second response message); the quantum key management AS sends the target encryption information to UE B through I-CSCF or S-CSCF, HSS, P-CSCF or SBC in sequence (the update message in the figure includes the target encryption information), and receives the second response message sent by UE B through P-CSCF or SBC, HSS, I-CSCF or S-CSCF in sequence (200OK in the figure includes the second response message).
[0126] Step 103: When the binding relationship between the session key and the mobile phone number of the user corresponding to the first terminal is determined based on the second response message, and the binding relationship between the session key and the mobile phone number of the user corresponding to the second terminal is verified, a media channel is established, and the media channel is used for the first terminal and the second terminal to perform encrypted communication based on the session key.
[0127] It should be understood that after the first terminal and the second terminal receive the target encrypted information, they need to parse the target encrypted information to obtain the session key for encrypted communication, store the session key, and bind the session key to the mobile phone number corresponding to the terminal. However, in the case where the terminal receiving the target encrypted information is a fake first terminal or second terminal, it is impossible to parse the target encrypted information to obtain the session key, and thus it is impossible to bind it to the mobile phone number. The network device determines whether the session key is bound to the mobile phone number of the first terminal and whether the session key is bound to the mobile phone number of the second terminal by receiving the second response message, and determines that the first terminal and the second terminal are terminals that have passed the verification and can perform encrypted communication. In this case, a media channel is established between the first terminal and the second terminal, so that the first terminal and the second terminal can perform encrypted communication based on the session key and the media channel.
[0128] In an embodiment of the present invention, when the network device receives an encrypted call request sent by the first terminal and a first response message sent by the second terminal, a session key is generated based on a quantum random number generator, and then target encryption information representing the session key is sent to the first terminal and the second terminal respectively; when the network device receives the second response message sent by the first terminal and the second terminal, the binding relationship between the session key and the mobile phone number of the first terminal and whether the binding relationship between the session key and the second terminal is passed are determined based on the second response message, and a media channel is established in the case of passing, so that the first terminal and the second terminal perform encrypted communication based on the session key. Among them, since the session key is generated by the network device based on the quantum random number generator, the session key cannot be cracked; and after the first terminal and the second terminal bind the session key to the telephone number corresponding to the terminal, the network device establishes a media channel for encrypted communication, so that the first terminal and the second terminal must pass the session key to perform encrypted communication, thereby improving the security of VoLTE voice encryption communication.
[0129] In one embodiment, the target encryption information includes a target encryption value and a target integrity check value, the target encryption value is used by the target terminal to parse the session key, and the target integrity check value is used by the target terminal to verify whether the session key is correct, and the target terminal is the first terminal or the second terminal.
[0130] The target encryption value is obtained by encrypting the session key by the network device, and the target integrity check value is obtained by performing integrity check on the session key by the network device. It should be understood that after receiving the target encryption information sent by the network device, the target terminal parses the target encryption information to obtain the session key. The target terminal cannot directly determine the accuracy of the session key through the session key, and needs to determine the accuracy of the session key through the target integrity check value in the target encryption information.
[0131] Exemplarily, the network device performs an integrity check on the session key to obtain a first check value; after parsing the session key, the target terminal performs an integrity check on the session key to obtain a second check value; the target terminal determines whether the first check value and the second check value match, and if they match, determines that the parsed session key is a complete key, and the target terminal can perform encrypted communication based on the session key; if they do not match, determines that the parsed session key is an incomplete key, and encrypted communication cannot be performed, and the communication process should be terminated.
[0132] In an embodiment of the present invention, the target encryption information includes a target encryption value and a target integrity check value, so that the target terminal determines the session key through the target encryption value, and determines the integrity of the parsed session key through the target integrity check value. When the session key is complete, the target terminal can perform encrypted communication based on the session key. When the session key is incomplete, the target terminal terminates the communication process, further improving the security of the communication.
[0133] In one embodiment, before sending the target encrypted information to the first terminal and the second terminal respectively, the method includes:
[0134] Generate a first target random number based on the quantum random number generator;
[0135] Encrypting the session key and the first target random number based on a preset key of the target terminal to obtain the target encrypted value;
[0136] Perform integrity check calculation on the session key and the first target random number to generate the target integrity check value.
[0137] The above-mentioned preset key is a quantum key pre-installed in the cryptographic module of the target terminal. The network device is configured with a quantum key management AS, which includes the preset key of the target terminal. The session key and the first target random number are encrypted based on the preset key of the target terminal to obtain a target encrypted value, so that the target terminal can parse the target encrypted value based on the preset key to obtain the session key and the first target random number.
[0138] Furthermore, in order for the target terminal to verify the accuracy of the parsed session key and the first target random number, the network device also needs to perform integrity check calculations on the session key and the first target random number to generate a target integrity check value, so that the target terminal can determine the integrity of the session key and the first target random number based on the target integrity check value.
[0139] Exemplarily, the network device performs an integrity check calculation on the session key and the first target random number to obtain a third check value; the target terminal expects a preset key to parse the target encryption value, and after obtaining the session key and the first target random number, performs an integrity check calculation on the session key and the first target random number to obtain a fourth check value; the target terminal determines whether the third check value and the fourth check value match, and if they match, determines that the parsed session key is a complete key and the first target random number is a complete random number, and the target terminal can perform encrypted communication based on the session key; if they do not match, determines that the parsed session key is an incomplete key and the second target random number is not a complete random number, and encrypted communication cannot be performed, and the communication process should be terminated at this time.
[0140] The first target random number mentioned above can also be used by the network device to determine whether the session key is bound to the mobile phone number corresponding to the target terminal, as detailed in the subsequent embodiments.
[0141] In this embodiment, a first target random number is generated based on a quantum random number generator through a network device, a session key and the first target random number are encrypted based on a preset key of the target terminal to obtain a target encryption value, and then an integrity check calculation is performed on the session key and the first target random number to generate a target integrity check value, so that after the target terminal receives the target encrypted information, it parses the target encryption value based on the preset key to obtain the session key and the first target random number, and determines the integrity of the session key and the first target random number based on the target integrity check value, thereby further improving the security of encrypted communication.
[0142] In one embodiment, the second response message includes first information, where the first information is obtained by the target terminal encrypting the second target random number based on the preset key;
[0143] The second target random number is obtained by the target terminal parsing the target encrypted value based on the preset key.
[0144] The above-mentioned second target random number is a random number obtained by the target terminal based on the preset key to parse the target encryption value. When the target encryption information received by the target terminal is sent by the network device, the second target random number matches the first target random number, so that the network device can determine whether the target terminal is bound to the session key based on whether the second target random number matches the first target random number.
[0145] Furthermore, since the target terminal can be either the first terminal or the second terminal, when the network device receives the second response message, it also needs to use the second response message to distinguish between the first terminal binding the session key and the second terminal binding the session key. Therefore, the first value of the first target random number sent by the network device to the first terminal is different from the second value of the first target random number sent to the second terminal, and the second target random numbers sent by different terminals in the second response messages are also different. The network device determines whether the first terminal is bound to the session key and whether the second terminal is bound to the session key based on the value of the received second target random number.
[0146] In an embodiment of the present invention, the second response message includes first information, where the first information is obtained by the target terminal encrypting the second target random number based on a preset key; the second target random number is obtained by the target terminal parsing the target encryption value based on the preset key, and the network device determines whether the second target terminal matches the first target terminal, and then determines whether the session key is bound to the mobile phone number corresponding to the target terminal.
[0147] In one embodiment, it further includes:
[0148] Decrypting the second response message based on a preset key of the target terminal to obtain the second target random number;
[0149] In the case where the first target random number matches the second target random number, it is determined that the mobile phone number of the user corresponding to the target terminal is bound to the session key.
[0150] Since the second target random number is obtained by parsing the target encryption value received by the target terminal based on a preset key, when the target encryption value is sent to the network device, the first target random number matches the second target random number, and the network device determines whether the first target random number matches the second target random number. When the first target random number and the second target random number match, it determines that the mobile phone number of the user corresponding to the target terminal is bound to the session key.
[0151] For example, Figure 3 As shown, after receiving the target encryption information (183 in the figure), UE A parses the session key and the second target random number, and binds the session key and the mobile phone number corresponding to UE A; after binding, it sends a second response message (update request in the figure) to the quantum key management AS, and the quantum key management AS parses the second response message to obtain the second target random number. When the first target random number and the second target random number match, it is determined that the mobile phone number of the user corresponding to UE A is bound to the session key; when the first target random number and the second target random number do not match, it is determined that the mobile phone number of the user corresponding to UE A is not bound to the session key, and in this case the encryption communication process is terminated.
[0152] Among them, in order to reduce the changes to the existing encrypted communication process, after verifying that the mobile phone number of the user corresponding to UE A is bound to the session key, the quantum key management AS sends the target encryption information to UE B through the second response, so that UE B parses and obtains the first target random number and session key.
[0153] In an embodiment of the present invention, the second response message is decrypted by a network device based on a preset key of the target terminal to obtain a second target random number. When the first target random number and the second target random number match, the mobile phone number of the user corresponding to the target terminal is determined to be bound to the session key, and then a media channel is established, so that the first terminal and the second terminal perform encrypted communication based on the session key, thereby avoiding the situation where the first terminal and the second terminal parse and obtain an erroneous session key, resulting in the inability to encrypt communication.
[0154] In one embodiment, sending the target encrypted information to the first terminal and the second terminal respectively includes:
[0155] Sending a first Session Initiation Protocol (SIP) signaling to the first terminal, where the first SIP signaling includes the target encryption information, and the first SIP signaling is a signaling added to a first response message sent by the second terminal to the first terminal;
[0156] A second SIP signaling is sent to the second terminal, where the second SIP signaling includes the target encryption information, and the second SIP signaling is signaling added to a second response message sent by the first terminal to the second terminal.
[0157] It should be understood that in the traditional encrypted call process, encrypted communication requests and response messages are sent through the SIP signaling carrier. In this embodiment, a first SIP signaling is sent to the first terminal, and a second SIP signaling is sent to the second terminal. The existing SIP signaling carrier is reused, which can reduce the impact on the existing network.
[0158] For example, Figure 3 As shown, the first SIP signaling multiplexes the SIP signaling in the 183 (including the first response message) process sent by the quantum key management AS to UE A, and the second SIP signaling multiplexes the SIP signaling of the update request (including the target encryption information) sent by the quantum key management AS to UE B.
[0159] Furthermore, Figure 3 The update request (including the second response message) and 200OK (including the second response message) in the protocol can also adopt SIP signaling to reduce the impact on the existing network.
[0160] In an embodiment of the present invention, a first session initiation protocol SIP signaling is sent to a first terminal through a network device, the first SIP signaling includes target encryption information, and the first SIP signaling is a signaling added to a first response message sent by the second terminal to the first terminal; a second SIP signaling is sent to the second terminal, the second SIP signaling includes target encryption information, and the second SIP signaling is a signaling added to a second response message sent by the first terminal to the second terminal, so that the process of the network device sending the session key to the first terminal and the second terminal reuses the existing SIP signaling carrier, which can reduce the impact on the existing network.
[0161] See also Figure 4 , Figure 4 : is a flowchart of a VoLTE voice encryption communication method provided by an embodiment of the present invention, which is applied to a terminal, such as Figure 4 As shown, the following steps are included:
[0162] Step 401, sending an encrypted call request or a first response message to a network device, wherein the first response message is information sent to the network device after receiving the encrypted call request forwarded by the network device;
[0163] Step 402: receiving target encrypted information, where the target encrypted information is information obtained by encrypting a session key generated based on a quantum random number generator by the network device after receiving the first response message;
[0164] Step 403, decrypting the target encrypted information to obtain the session key;
[0165] Step 404, when the network device verifies that the session key is respectively bound to the mobile phone numbers corresponding to the two terminals performing communication, encrypted communication is performed based on the session key.
[0166] In one embodiment, decrypting the target encrypted information to obtain the session key includes:
[0167] Parsing the target encrypted information based on a preset key of the terminal to obtain the session key;
[0168] When the session key passes the verification, the session key and the mobile phone number corresponding to the terminal are bound.
[0169] In one embodiment, the target encryption information includes a target encryption value and a first target integrity check value, the target encryption value is obtained by the network device encrypting the session key and the first target random number based on a preset key of the terminal, and the first target integrity check value is obtained by the network device performing integrity check calculation on the session key and the first target random number;
[0170] Before performing encrypted communication based on the session key, the method further includes:
[0171] Parsing the target encrypted value based on a preset key of the terminal to obtain a second target random number;
[0172] Performing integrity check calculation on the session key and the second target random number to generate a second target integrity check value;
[0173] In case the second target integrity check value matches the first target integrity check value, the session key is verified.
[0174] In one embodiment, after binding the session key, the method further comprises:
[0175] The first target random number is encrypted based on a preset key of the terminal to obtain second response information, where the second response information is used by a network device to determine whether the terminal is bound to the session key.
[0176] In one embodiment, receiving target encrypted information further comprises:
[0177] A SIP signaling sent by the network device is received, where the SIP signaling includes the target encryption information.
[0178] In an embodiment of the present invention, an encrypted call request or a first response message is sent to a network device; the target encrypted information sent by the network device is received, and the target encrypted information is encrypted by the network device based on the session key generated by the quantum random number generator; the target encrypted information is decrypted to obtain the session key; and when the network device verifies that the session key is bound to the mobile phone numbers corresponding to the two terminals for communication, encrypted communication is performed based on the session key. Among them, since the session key is generated by the network device based on the quantum random number generator, the session key cannot be cracked; and after the first terminal and the second terminal bind the session key to the telephone number corresponding to the terminal, the network device establishes a media channel for encrypted communication, so that the first terminal and the second terminal must use the session key to perform encrypted communication, thereby improving the security of VoLTE voice encryption communication.
[0179] See also Figure 5 , Figure 5 FIG. 1 is a schematic diagram of a network device provided by an embodiment of the present invention. Figure 5 As shown, the network device 500 includes:
[0180] The first processing module 501 is used to generate a session key based on a quantum random number generator when receiving an encrypted call request sent by a first terminal and a first response message sent by a second terminal; the first response message is a message sent by the second terminal to the network device after receiving the encrypted call request;
[0181] The transceiver module 502 is used to send target encryption information to the first terminal and the second terminal respectively, and receive a second response message, wherein the target encryption information is used to represent the encrypted session key;
[0182] The second processing module 503 is used to establish a media channel when, based on the second response message, the binding relationship between the session key and the mobile phone number of the user corresponding to the first terminal is determined, and when the binding relationship between the session key and the mobile phone number of the user corresponding to the second terminal is verified, the media channel is used for the first terminal and the second terminal to perform encrypted communication based on the session key.
[0183] In one embodiment, the target encryption information includes a target encryption value and a target integrity check value, the target encryption value is used by the target terminal to parse the session key, and the target integrity check value is used by the target terminal to verify whether the session key is correct, and the target terminal is the first terminal or the second terminal.
[0184] In one embodiment, before the transceiver module 502, the device includes:
[0185] A third processing module, configured to generate a first target random number based on the quantum random number generator;
[0186] a fourth processing module, configured to encrypt the session key and the first target random number based on a preset key of the target terminal to obtain the target encrypted value;
[0187] The fifth processing module is used to perform integrity check calculation on the session key and the first target random number to generate the target integrity check value.
[0188] In one embodiment, the second response message includes first information, where the first information is obtained by the target terminal encrypting the second target random number based on the preset key;
[0189] The second target random number is obtained by the target terminal parsing the target encrypted value based on the preset key.
[0190] In one embodiment, the apparatus further comprises:
[0191] a sixth processing module, configured to decrypt the second response message based on a preset key of the target terminal to obtain the second target random number;
[0192] In the case where the first target random number matches the second target random number, it is determined that the mobile phone number of the user corresponding to the target terminal is bound to the session key.
[0193] In one embodiment, the transceiver module 502 includes:
[0194] A first transceiver unit is used to send a first session initiation protocol SIP signaling to the first terminal, where the first SIP signaling includes the target encryption information, and the first SIP signaling is a signaling added to a first response message sent by the second terminal to the first terminal;
[0195] The second transceiver unit is used to send a second SIP signaling to the second terminal, where the second SIP signaling includes the target encryption information, and the second SIP signaling is a signaling added to a second response message sent by the first terminal to the second terminal.
[0196] The network device is capable of implementing each process of each embodiment of the above-mentioned VoLTE voice encryption communication method applied to the network device, and the technical features correspond one to one, and can achieve the same technical effect. To avoid repetition, they will not be repeated here.
[0197] See also Figure 6 , Figure 6 is a schematic diagram of the structure of a terminal provided by an embodiment of the present invention, such as Figure 6 As shown, the terminal 600 includes:
[0198] A sending module 601 is used to send an encrypted call request or a first response message to a network device, where the first response message is information sent to the network device after receiving the encrypted call request forwarded by the network device;
[0199] A receiving module 602 is used to receive target encrypted information, where the target encrypted information is information obtained by encrypting a session key generated based on a quantum random number generator by the network device after receiving the first response message;
[0200] A first processing module 603 is used to decrypt the target encrypted information to obtain the session key;
[0201] The second processing module 604 is used to perform encrypted communication based on the session key when the network device verifies that the session key is bound to the mobile phone numbers corresponding to the two terminals performing communication.
[0202] In one embodiment, the first processing module 603 includes:
[0203] A first processing unit, configured to parse the target encrypted information based on a preset key of the terminal to obtain the session key;
[0204] The second processing unit is used to bind the session key and the mobile phone number corresponding to the terminal when the session key passes the verification.
[0205] In one embodiment, the target encryption information includes a target encryption value and a first target integrity check value, the target encryption value is obtained by the network device encrypting the session key and the first target random number based on a preset key of the terminal, and the first target integrity check value is obtained by the network device performing integrity check calculation on the session key and the first target random number;
[0206] Before the second processing module 604, the device further includes:
[0207] A third processing module, configured to parse the target encrypted value based on a preset key of the terminal to obtain a second target random number;
[0208] A fourth processing module, configured to perform integrity check calculation on the session key and the second target random number to generate a second target integrity check value;
[0209] A fifth processing module is configured to verify that the session key passes the verification if the second target integrity check value matches the first target integrity check value.
[0210] In one embodiment, after the second processing unit, the device further includes:
[0211] The third processing unit is used to encrypt the first target random number based on the preset key of the terminal to obtain second response information, where the second response information is used by the network device to determine whether the terminal is bound to the session key.
[0212] In one embodiment, the receiving module 602 includes:
[0213] A receiving unit is used to receive a SIP signaling sent by the network device, wherein the SIP signaling includes the target encryption information.
[0214] The terminal is capable of implementing each process of each embodiment of the above-mentioned VoLTE voice encryption communication method applied to the terminal, and the technical features correspond one to one, and can achieve the same technical effect. To avoid repetition, they will not be repeated here.
[0215] An embodiment of the present invention also provides a network device, including: a processor, a memory, and a program stored in the memory and executable on the processor. When the program is executed by the processor, each process of the above-mentioned VoLTE voice encryption communication method embodiment applied to the network device is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0216] For details, see Figure 7 The embodiment of the present invention further provides a network device, including a bus 701, a transceiver 702, an antenna 703, a bus interface 704, a processor 705 and a memory 706.
[0217] The processor 705 is configured to generate a session key based on a quantum random number generator when receiving an encrypted call request sent by a first terminal and a first response message sent by a second terminal; the first response message is a message sent by the second terminal to the network device after receiving the encrypted call request;
[0218] The transceiver 702 is used to send target encryption information to the first terminal and the second terminal respectively, and receive a second response message, wherein the target encryption information is used to represent the encrypted session key;
[0219] The processor 705 is also used to establish a media channel when, based on the second response message, the binding relationship between the session key and the mobile phone number of the user corresponding to the first terminal is determined, and when the binding relationship between the session key and the mobile phone number of the user corresponding to the second terminal is verified to be successful, the media channel is used for the first terminal and the second terminal to perform encrypted communication based on the session key.
[0220] In one embodiment, the target encryption information includes a target encryption value and a target integrity check value, the target encryption value is used by the target terminal to parse the session key, and the target integrity check value is used by the target terminal to verify whether the session key is correct, and the target terminal is the first terminal or the second terminal.
[0221] In one embodiment, the processor 705 is further configured to generate a first target random number based on the quantum random number generator;
[0222] The processor 705 is further configured to encrypt the session key and the first target random number based on a preset key of the target terminal to obtain the target encrypted value;
[0223] The processor 705 is further configured to perform integrity check calculation on the session key and the first target random number to generate the target integrity check value.
[0224] In one embodiment, the second response message includes first information, where the first information is obtained by the target terminal encrypting the second target random number based on the preset key;
[0225] The second target random number is obtained by the target terminal parsing the target encrypted value based on the preset key.
[0226] In one embodiment, the processor 705 is further configured to decrypt the second response message based on a preset key of the target terminal to obtain the second target random number;
[0227] The processor 705 is further configured to determine that a mobile phone number of a user corresponding to the target terminal is bound to the session key when the first target random number matches the second target random number.
[0228] In one embodiment, the transceiver 702 is further configured to send a first session initiation protocol SIP signaling to the first terminal, the first SIP signaling including the target encryption information, the first SIP signaling being a signaling added to a first response message sent by the second terminal to the first terminal;
[0229] The transceiver 702 is further configured to send a second SIP signaling to the second terminal, where the second SIP signaling includes the target encryption information, and the second SIP signaling is a signaling added to a second response message sent by the first terminal to the second terminal.
[0230] exist Figure 7 In the embodiment, the bus architecture (represented by bus 701) may include any number of interconnected buses and bridges, and bus 701 links various circuits including one or more processors represented by processor 705 and memory represented by memory 706. Bus 701 may also link various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. Bus interface 704 provides an interface between bus 701 and transceiver 702. Transceiver 702 may be one element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices on a transmission medium. Data processed by processor 705 is transmitted on a wireless medium via antenna 703, and further, antenna 703 also receives data and transmits the data to processor 705.
[0231] The processor 705 is responsible for managing the bus 701 and general processing, and can also provide various functions, including timing, peripheral interfaces, voltage regulation, power management and other control functions. The memory 606 can be used to store data used by the processor 705 when performing operations.
[0232] Optionally, the processor 705 may be a CPU, an ASIC, an FPGA or a CPLD.
[0233] The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, each process of the above-mentioned VoLTE voice encryption communication method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0234] An embodiment of the present invention also provides a terminal, including: a processor, a memory, and a program stored in the memory and executable on the processor. When the program is executed by the processor, each process of the above-mentioned VoLTE voice encryption communication method embodiment applied to the terminal is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0235] For details, see Figure 8 The embodiment of the present invention further provides a terminal, including a bus 801, a transceiver 802, an antenna 803, a bus interface 804, a processor 805 and a memory 806.
[0236] The transceiver 802 is used to send an encrypted call request or a first response message to the network device, and the first response message is information sent to the network device after receiving the encrypted call request forwarded by the network device;
[0237] The transceiver 802 is further configured to receive target encrypted information, where the target encrypted information is information obtained by encrypting a session key generated based on a quantum random number generator after the network device receives the first response message;
[0238] The processor 805 is configured to decrypt the target encrypted information to obtain the session key;
[0239] The processor 805 is further configured to perform encrypted communication based on the session key when the network device verifies that the session key is respectively bound to the mobile phone numbers corresponding to the two terminals performing communication.
[0240] In one embodiment, the processor 805 is further configured to parse the target encrypted information based on a preset key of the terminal to obtain the session key;
[0241] The processor 805 is further configured to bind the session key and the mobile phone number corresponding to the terminal when the session key passes the verification.
[0242] In one embodiment, the target encryption information includes a target encryption value and a first target integrity check value, the target encryption value is obtained by the network device encrypting the session key and the first target random number based on a preset key of the terminal, and the first target integrity check value is obtained by the network device performing integrity check calculation on the session key and the first target random number;
[0243] The processor 805 is further configured to parse the target encrypted value based on a preset key of the terminal to obtain a second target random number;
[0244] The processor 805 is further configured to perform integrity check calculation on the session key and the second target random number to generate a second target integrity check value;
[0245] The processor 805 is further configured to verify that the session key passes verification when the second target integrity check value matches the first target integrity check value.
[0246] In one embodiment, the processor 805 is further used to encrypt the first target random number based on a preset key of the terminal to obtain a second response cancellation information, and the second response cancellation information is used by the network device to determine whether the terminal is bound to the session key.
[0247] In one embodiment, the transceiver 802 is further configured to receive SIP signaling sent by the network device, wherein the SIP signaling includes the target encryption information.
[0248] exist Figure 8 In the embodiment, the bus architecture (represented by bus 801) is shown, and bus 801 may include any number of interconnected buses and bridges, and bus 801 links various circuits including one or more processors represented by processor 805 and memory represented by memory 806. Bus 801 may also link various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. Bus interface 804 provides an interface between bus 801 and transceiver 802. Transceiver 802 may be one element or multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices on a transmission medium. Data processed by processor 805 is transmitted on a wireless medium via antenna 803, and further, antenna 803 also receives data and transmits the data to processor 805.
[0249] The processor 805 is responsible for managing the bus 801 and general processing, and can also provide various functions, including timing, peripheral interfaces, voltage regulation, power management and other control functions. The memory 606 can be used to store data used by the processor 805 when performing operations.
[0250] Optionally, the processor 805 may be a CPU, an ASIC, an FPGA or a CPLD.
[0251] The embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, each process of the above-mentioned VoLTE voice encryption communication method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a ROM, RAM, a magnetic disk or an optical disk.
[0252] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0253] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods of various embodiments of the present invention.
[0254] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.
Claims
1. A VoLTE voice encryption communication method, applied to a network device, characterized in that: include: generating a session key based on a quantum random number generator when receiving an encrypted call request sent by the first terminal and a first response message sent by the second terminal; The first response message is a message sent by the second terminal to the network device after receiving the encrypted call request; Sending target encrypted information to the first terminal and the second terminal respectively, and receiving a second response message, wherein the target encrypted information is used to represent the encrypted session key; When the binding relationship between the session key and the mobile phone number of the user corresponding to the first terminal is determined based on the second response message, and the binding relationship between the session key and the mobile phone number of the user corresponding to the second terminal is verified, a media channel is established, and the media channel is used for the first terminal and the second terminal to conduct encrypted communication based on the session key.
2. The method according to claim 1, characterized in that The target encryption information includes a target encryption value and a target integrity check value. The target encryption value is used by the target terminal to parse the session key, and the target integrity check value is used by the target terminal to verify whether the session key is correct. The target terminal is the first terminal or the second terminal.
3. The method according to claim 2, characterized in that Before sending the target encrypted information to the first terminal and the second terminal respectively, the method includes: Generate a first target random number based on the quantum random number generator; Encrypting the session key and the first target random number based on a preset key of the target terminal to obtain the target encrypted value; Perform integrity check calculation on the session key and the first target random number to generate the target integrity check value.
4. The method according to claim 3, characterized in that The second response message includes first information, where the first information is obtained by encrypting the second target random number by the target terminal based on the preset key; The second target random number is obtained by the target terminal parsing the target encrypted value based on the preset key.
5. The method according to claim 4, characterized in that Also includes: Decrypting the second response message based on a preset key of the target terminal to obtain the second target random number; In the case where the first target random number matches the second target random number, it is determined that the mobile phone number of the user corresponding to the target terminal is bound to the session key.
6. The method according to claim 4, characterized in that The sending target encrypted information to the first terminal and the second terminal respectively includes: Sending a first Session Initiation Protocol (SIP) signaling to the first terminal, where the first SIP signaling includes the target encryption information, and the first SIP signaling is a signaling added to a first response message sent by the second terminal to the first terminal; A second SIP signaling is sent to the second terminal, where the second SIP signaling includes the target encryption information, and the second SIP signaling is signaling added to a second response message sent by the first terminal to the second terminal.
7. A VoLTE voice encryption communication method, applied to a terminal, characterized in that: include: Sending an encrypted call request or a first response message to the network device, where the first response message is information sent to the network device after receiving the encrypted call request forwarded by the network device; receiving target encrypted information, where the target encrypted information is information obtained by encrypting a session key generated based on a quantum random number generator by the network device after receiving the first response message; decrypting the target encrypted information to obtain the session key; When the network device verifies that the session key is respectively bound to the mobile phone numbers corresponding to the two terminals performing communication, encrypted communication is performed based on the session key.
8. The method according to claim 7, characterized in that The decrypting the target encrypted information to obtain the session key comprises: Parsing the target encrypted information based on a preset key of the terminal to obtain the session key; When the session key passes the verification, the session key and the mobile phone number corresponding to the terminal are bound.
9. The method according to claim 8, characterized in that The target encryption information includes a target encryption value and a first target integrity check value, the target encryption value is obtained by the network device encrypting the session key and the first target random number based on a preset key of the terminal, and the first target integrity check value is obtained by the network device performing integrity check calculation on the session key and the first target random number; Before performing encrypted communication based on the session key, the method further includes: Parsing the target encrypted value based on a preset key of the terminal to obtain a second target random number; Performing integrity check calculation on the session key and the second target random number to generate a second target integrity check value; In case the second target integrity check value matches the first target integrity check value, the session key is verified.
10. The method according to claim 9, characterized in that After binding the session key, the method further includes: The first target random number is encrypted based on a preset key of the terminal to obtain second response information, where the second response information is used by a network device to determine whether the terminal is bound to the session key.
11. The method according to claim 7, characterized in that The receiving target encrypted information also includes: A SIP signaling sent by the network device is received, where the SIP signaling includes the target encryption information.
12. A network device, characterized in that: include: A first processing module, configured to generate a session key based on a quantum random number generator when receiving an encrypted call request sent by the first terminal and a first response message sent by the second terminal; The first response message is a message sent by the second terminal to the network device after receiving the encrypted call request; a transceiver module, configured to send target encrypted information to the first terminal and the second terminal respectively, and receive a second response message, wherein the target encrypted information is used to represent the encrypted session key; The second processing module is used to establish a media channel when the binding relationship between the session key and the mobile phone number of the user corresponding to the first terminal is determined based on the second response message, and the binding relationship between the session key and the mobile phone number of the user corresponding to the second terminal is verified to be successful. The media channel is used for the first terminal and the second terminal to perform encrypted communication based on the session key.
13. A terminal, characterized in that: include: A sending module, used to send an encrypted call request or a first response message to a network device, wherein the first response message is information sent to the network device after receiving the encrypted call request forwarded by the network device; A receiving module, configured to receive target encrypted information, wherein the target encrypted information is information obtained by encrypting a session key generated based on a quantum random number generator after the network device receives the first response message; A first processing module, used for decrypting the target encrypted information to obtain the session key; The second processing module is used to perform encrypted communication based on the session key when the network device verifies that the session key is bound to the mobile phone numbers corresponding to the two terminals performing communication.
14. A network device, characterized in that: Including transceiver and processor, The processor is configured to generate a session key based on a quantum random number generator when receiving an encrypted call request sent by the first terminal and a first response message sent by the second terminal; The first response message is a message sent by the second terminal to the network device after receiving the encrypted call request; The transceiver is used to send target encrypted information to the first terminal and the second terminal respectively, and receive a second response message, wherein the target encrypted information is used to represent the encrypted session key; The processor is further configured to establish a media channel when, based on the second response message, a binding relationship between the session key and the mobile phone number of the user corresponding to the first terminal is determined, and when the binding relationship between the session key and the mobile phone number of the user corresponding to the second terminal is verified to be successful, the media channel being used for the first terminal and the second terminal to perform encrypted communication based on the session key.
15. A terminal, characterized in that: Including transceiver and processor, The transceiver is used to send an encrypted call request or a first response message to the network device, wherein the first response message is information sent to the network device after receiving the encrypted call request forwarded by the network device; The transceiver is further used to receive target encrypted information, where the target encrypted information is information obtained by encrypting a session key generated based on a quantum random number generator by the network device after receiving the first response message; The processor is used to decrypt the target encrypted information to obtain the session key; The processor is further configured to perform encrypted communication based on the session key when the network device verifies that the session key is respectively bound to the mobile phone numbers corresponding to the two terminals performing communication.
16. A network device, characterized in that: include: A processor, a memory, and a program stored in the memory and executable on the processor, wherein the program implements the steps of the method according to any one of claims 1 to 6 when executed by the processor.
17. A terminal, characterized in that: include: A processor, a memory, and a program stored in the memory and executable on the processor, wherein when the program is executed by the processor, the steps of the method according to any one of claims 7 to 11 are implemented.
18. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 6 are implemented; or when the computer program is executed by a processor, the steps of the method described in any one of claims 7 to 11 are implemented.
Citation Information
Patent Citations
Voice data transmission method and system, electronic equipment and storage medium
CN114978485A
Method for realizing VoIP (Voice over Internet Protocol) encryption and decryption by adopting transparent proxy and quantum key pre-charging
CN115567209A
Bracket for Fixing Solar Panel
KR102468084B1
