A method and system for encrypted communication of unmanned aerial vehicles

Through the combination of digital signature of SM2 algorithm and SM4 encryption algorithm, combined with the white-boxed piccolo algorithm and shared key update module, the problem of large resource overhead and insufficient identity authentication in drone transmission is solved, and efficient data encryption and Identity authentication ensures the security and robustness of drone communication.

CN118488443BActive Publication Date: 2024-11-19BEIJING ELECTRONICS SCI & TECH INST
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410625942.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-20
Publication Date
2024-11-19
Estimated Expiration
2044-05-20

AI Technical Summary

Technical Problem

The existing drone transmission encryption scheme has problems such as large resource overhead and insufficient identity authentication, resulting in performance degradation and insufficient security.

Method used

Digital signature identity authentication is used to use SM2 algorithm, combined with SM4 encryption algorithm and white-boxed piccolo algorithm, to ensure data encryption and authentication, and to regularly update the key through the shared key update module to prevent key leakage.

Benefits of technology

Effectively prevent third-party man-in-the-middle attacks, reduce the impact of information error code errors, improve system robustness, and ensure data security and key security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118488443B_ABST
    Figure CN118488443B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of communication encryption technology, and in particular to an encryption communication method and system for unmanned aerial vehicles. The method includes: a ground control station generates a public-private key pair, and a unmanned aerial vehicle generates a public-private key pair; based on a certification body, the ground control station and the unmanned aerial vehicle exchange public keys; the unmanned aerial vehicle generates a random string, and according to the random string, the unmanned aerial vehicle and the ground control station complete identity authentication; the ground control station generates a shared key according to a time seed and transmits it to the unmanned aerial vehicle; the unmanned aerial vehicle encrypts the data to be transmitted based on the shared key, and sends the encrypted data packet to the ground control station; when the ground control station receives the encrypted data packet sent by the unmanned aerial vehicle, the encrypted data packet is decrypted based on the shared key. By adopting the present invention, the identities of both parties in the encrypted communication can be verified, and third-party middleman attacks can be effectively prevented.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication encryption technology, and in particular to an encryption communication method and system for unmanned aerial vehicles. Background Art

[0002] The issue of safe flight of drones cannot be ignored. The issue of secure transmission of communication data of drones is very important for the safe flight of drones. Drones need to transmit a lot of data, which may vary greatly based on different application scenarios. But generally speaking, there are two types of data transmission between drones and ground control stations: image transmission and digital transmission. Image transmission transmits real-time video data, while digital transmission transmits control instructions and drone flight status information. While drones connected to the network have more application directions with the help of network characteristics, they are also extremely vulnerable to network attacks. For example, a control instruction issued by the ground control station to the drone is intercepted and modified by a middleman, which will cause the drone to receive the wrong instruction, resulting in serious consequences. Therefore, it is of great practical significance to solve the problem of cryptographic communication between the ground control station and the drone to ensure the secure transmission of data.

[0003] In order to solve this problem, there are many solutions for encrypting drone transmissions in the prior art. For example, Patent Document 1 (Publication Number: CN117082517A Publication Date: November 17, 2023) discloses a 5G networked drone video data sending method, which uses asymmetric keys to transmit drone image data in a 5G network environment.

[0004] However, these existing drone transmission encryption schemes have the following problems:

[0005] 1. Resource overhead problem: Traditional encryption algorithms may consume a lot of computing resources when executed on resource-constrained devices such as drones, resulting in performance degradation or increased energy consumption.

[0006] 2. Identity authentication: In drone communications, it is crucial to ensure the authenticity of the identities of both parties. However, existing technologies only encrypt communication data and do not focus on the authentication process of both parties. Summary of the invention

[0007] In order to solve the technical problems of large resource consumption and no identity authentication of both parties in the prior art, the embodiment of the present invention provides an encrypted communication method and system for drones. The technical solution is as follows:

[0008] On the one hand, an encrypted communication method for a drone is provided, the method being implemented by an encrypted communication device, the method comprising:

[0009] The encrypted communication method for the UAV is implemented by an encrypted communication system for the UAV, and the encrypted communication for the UAV includes a ground control station, a UAV and a certification agency;

[0010] The method comprises:

[0011] S1. The ground control station generates a ground SM2 public key-private key pair, and the drone generates a drone SM2 public key-private key pair;

[0012] S2. Based on the certification authority, the ground control station obtains the UAV SM2 public key, and the UAV obtains the ground SM2 public key;

[0013] S3, the UAV generates a random string, and the UAV completes identity authentication with the ground control station according to the random string, SM3 algorithm, ground SM2 private key and ground SM2 public key;

[0014] S4, the ground control station generates a shared key according to the time seed, and encrypts the shared key through the SM2 algorithm and transmits it to the drone;

[0015] S5. When the UAV reads the video stream data to be transmitted from the TAP device, the UAV encrypts the video stream data to be transmitted based on the shared key, and sends the encrypted video stream data packet to the ground control station;

[0016] S6. When the ground control station receives the encrypted video stream data packet sent by the drone, the ground control station decrypts the encrypted video stream data packet based on the shared key;

[0017] S7. When the drone reads a MAVLink data packet from the TAP device, the MAVLink data packet is encrypted based on the shared key, integrity check data is determined based on the SM3 algorithm and the shared key, and the encrypted MAVLink data packet and integrity check data are sent to the ground control station;

[0018] S8. When the ground control station receives the encrypted MAVLink data packet and integrity check data sent by the UAV, it performs a data integrity check based on the integrity check data, and decrypts the encrypted MAVLink data packet based on the shared key after the check passes.

[0019] On the other hand, an encrypted communication system for a drone is provided, wherein the encrypted communication system for a drone is used to implement the encrypted communication method for a drone as described above, wherein the encrypted communication for a drone includes a ground control station, a drone, and a certification authority; wherein:

[0020] The ground control station is used to generate a ground SM2 public key-private key pair, generate a shared key according to a time seed, and encrypt and transmit the shared key to the drone through an SM2 algorithm; when receiving an encrypted video stream data packet sent by the drone, the encrypted video stream data packet is decrypted based on the shared key; when receiving an encrypted MAVLink data packet and integrity check data sent by the drone, a data integrity check is performed based on the integrity check data, and after the check passes, the encrypted MAVLink data packet is decrypted based on the shared key;

[0021] The drone is used to: generate a drone SM2 public key-private key pair; obtain a ground SM2 public key; generate a random string, and complete identity authentication with the ground control station according to the random string, the SM3 algorithm, the ground SM2 private key and the ground SM2 public key; when the video stream data to be transmitted is read from the TAP device, the video stream data to be transmitted is encrypted based on the shared key, and the encrypted video stream data packet is sent to the ground control station; when the MAVLink data packet is read from the TAP device, the MAVLink data packet is encrypted based on the shared key, the integrity check data is determined based on the SM3 algorithm and the shared key, and the encrypted MAVLink data packet and the integrity check data are sent to the ground control station;

[0022] The certification authority is used to assist the ground control station in obtaining the UAV SM2 public key, and the UAV obtains the ground SM2 public key.

[0023] On the other hand, an encryption communication device is provided, comprising: a processor; a memory, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, any one of the above-mentioned encryption communication methods for drones is implemented.

[0024] On the other hand, a computer-readable storage medium is provided, wherein at least one instruction is stored in the storage medium, and the at least one instruction is loaded and executed by a processor to implement any one of the above-mentioned encrypted communication methods for drones.

[0025] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least:

[0026] First, in traditional encrypted communication systems, only the communication data is usually encrypted, but the identities of both parties in the encrypted communication are not verified. In the system of the present invention, the digital signature technology of the SM2 algorithm is used to verify the identities of both parties in the encrypted communication, effectively preventing third-party middleman attacks.

[0027] Second, in the encryption of flight control data and image transmission data, the SM4 encryption algorithm in CTR mode was selected. While ensuring the encryption effect and efficiency, it greatly reduced the impact of information errors and other situations on information recovery during communication, greatly increasing the robustness of the system. The white-box piccolo algorithm used in another mode prevents external attackers from directly obtaining the algorithm's key information even if the drone itself is lost. This can prevent the key from being leaked or cracked, further protecting the security of the data.

[0028] Third, in the traditional shared key encryption communication process, the fixed shared key is easily leaked, resulting in a huge security vulnerability. The encryption communication system described in the present invention is designed with a shared key update module to regularly update and renegotiate the shared keys of both parties, thereby solving this problem. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0030] Figure 1 This is a flow chart of an encrypted communication method for a drone provided by an embodiment of the present invention;

[0031] Figure 2 This is a schematic diagram of a structure in which a ground control station and a UAV exchange public keys according to an embodiment of the present invention;

[0032] Figure 3 It is a transmission signaling diagram for identity authentication between a ground control station and a UAV provided by an embodiment of the present invention;

[0033] Figure 4 is a flow chart of updating a shared key provided by an embodiment of the present invention;

[0034] Figure 5 is a block diagram of an encrypted communication system for a drone provided by an embodiment of the present invention;

[0035] Figure 6 It is a structural diagram of an encryption communication device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0036] The technical solution of the present invention is described below in conjunction with the accompanying drawings.

[0037] In the embodiments of the present invention, words such as "exemplarily" and "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "example" in the present invention should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of the word "example" is intended to present the concept in a specific way. In addition, in the embodiments of the present invention, the meaning expressed by "and / or" can be both, or it can be either of the two.

[0038] In the embodiments of the present invention, "image" and "picture" can sometimes be used interchangeably. It should be noted that when the difference between them is not emphasized, the meanings they intend to express are the same. "of", "corresponding, relevant" and "corresponding" can sometimes be used interchangeably. It should be noted that when the difference between them is not emphasized, the meanings they intend to express are the same.

[0039] In the embodiments of the present invention, sometimes a subscript such as W1 may be written as a non-subscript such as W1. When the difference is not emphasized, the meanings to be expressed are the same.

[0040] In order to make the technical problems, technical solutions and advantages to be solved by the present invention more clear, a detailed description will be given below with reference to the accompanying drawings and specific embodiments.

[0041] The embodiment of the present invention provides an encryption communication method for a drone, which can be implemented by an encryption communication device, which can be a terminal or a server. Figure 1 The flowchart of the encrypted communication method for drones shown in the figure may include the following steps:

[0042] The encrypted communication method for the UAV is implemented by an encrypted communication system for the UAV, and the encrypted communication for the UAV includes a ground control station, a UAV and a certification agency;

[0043] The method comprises:

[0044] S1. The ground control station generates a ground SM2 public key-private key pair, and the drone generates a drone SM2 public key-private key pair.

[0045] In a feasible implementation, the ground control station uses the SM2 algorithm to locally generate a ground SM2 public key-private key pair, respectively referred to as a ground SM2 public key and a ground SM2 private key.

[0046] The drone uses the SM2 algorithm on its onboard computer, the Raspberry Pi, to generate a drone SM2 public key-private key pair, referred to as the drone SM2 public key and the drone SM2 private key.

[0047] S2. Based on the certification authority, the ground control station obtains the drone SM2 public key, and the drone obtains the ground SM2 public key.

[0048] Alternatively, if Figure 2 As shown, the specific operation steps of S2 may include the following steps S21-S23:

[0049] S21. The ground control station registers the ground SM2 public key with the certification authority (which can be called CA), and the drone registers the drone SM2 public key with the certification authority.

[0050] S22. The ground control station applies to the certification body for a drone digital certificate. The drone digital certificate includes the drone SM2 public key and the digital signature of the certification body.

[0051] The drone applies to the certification body for a ground control station digital certificate, which includes the ground SM2 public key and the digital signature of the certification body.

[0052] S23. The ground control station retrieves the drone SM2 public key from the applied drone digital certificate, and the drone retrieves the ground SM2 public key from the applied ground control station digital certificate.

[0053] In a feasible implementation, through the above steps, the ground control station and the UAV not only have the SM2 public-private key pair generated by themselves, but also have each other's SM2 public key, preparing for the subsequent authentication key negotiation.

[0054] S3. The drone generates a random string. Based on the random string, SM3 algorithm, ground SM2 private key and ground SM2 public key, the drone and the ground control station complete identity authentication.

[0055] Alternatively, if Figure 3 As shown, the specific operation steps of S3 may include the following steps S31-S35:

[0056] S31. The drone generates and stores a random string, and sends the random string to a ground control station.

[0057] In a feasible implementation, the ground control station sends a hello data packet to the drone to start identity authentication. The drone generates a random string UavRandomString, stores it locally and sends it to the ground control station.

[0058] S32. After receiving the random string, the ground control station uses the SM3 algorithm to perform a hash operation on the random string to obtain a first random hash value, encrypts the first random hash value using the ground SM2 private key to obtain a random string ciphertext, and sends the random string ciphertext to the drone.

[0059] In a feasible implementation, the ground control station receives the random string UavRandomString sent by the drone, performs a hash operation on it using the SM3 algorithm, and obtains a hash value , and then As plain text, using the ground control station's private key Encrypt it and get the ciphertext , and then this ciphertext Send to drone.

[0060] S33. After receiving the random string ciphertext, the drone uses the retrieved ground SM2 public key to decrypt the random string ciphertext to obtain the random string plaintext.

[0061] S34. The drone uses the SM3 algorithm to perform a hash operation on the stored random string to obtain a second random hash value.

[0062] S35. The drone compares the plaintext of the random string with the second random hash value. When the plaintext of the random string is consistent with the second random hash value, identity authentication is completed.

[0063] In one feasible implementation, the drone receives a ciphertext from the ground control station. , use the ground control station public key obtained from the ground control station digital certificate applied for by CA right Decrypt and get the plaintext , and then the originally generated random string Perform hash operation to obtain hash value ,Compare and If they are consistent, the identity of the other ground control station can be confirmed and a signal can be sent to the ground control station. Data packet.

[0064] It should be noted that the above process completes the identity authentication of the drone to the ground control station. The identity authentication process of the ground control station to the drone is similar and will not be repeated here.

[0065] S4. The ground control station generates a shared key based on the time seed and encrypts the shared key through the SM2 algorithm and transmits it to the drone.

[0066] Optionally, the specific operation steps of S4 may include the following steps S41-S42:

[0067] S41. The ground control station obtains the current system time as a random seed for the system time.

[0068] S42: Input the system time random seed into the SM3 algorithm, and determine the obtained output value as the shared key.

[0069] In a feasible implementation, the method for generating a shared key is a one-way hash function method, which uses the SM3 hash cryptographic algorithm. First, the current system time must be obtained. As the system time random seed, then use the system time random seed as the input of the SM3 algorithm, and finally get the output value ,Will as a shared key.

[0070] It should be noted that after the shared key is generated through the above steps, the shared key can be updated, such as Figure 4 As shown, the update method can be:

[0071] The ground control station sets the update time or update cycle. When the update time or update cycle is detected, the ground control station takes out the current shared key, uses the SM3 algorithm to calculate the current shared key, and obtains a new shared key. The ground control station uses the SM2 algorithm to encrypt the new shared key and transmit it to the drone to complete the update of the shared key.

[0072] S5. When the drone reads the video data to be transmitted from the TAP device, it encrypts the video data to be transmitted based on the shared key and sends the encrypted video data packet to the ground control station.

[0073] Optionally, the specific operation process of S5 may include S51-S52:

[0074] S51, based on a first preset algorithm, using a shared key to encrypt the video stream data to be transmitted to obtain a first ciphertext;

[0075] S55. Encapsulate the first ciphertext into a first data packet and send it to the ground control station. The first data packet carries a video stream message identifier.

[0076] Among them, the first preset algorithm is the SM4 algorithm or the white box piccolo algorithm.

[0077] In a feasible implementation, a data packet is read from a TAP device to determine whether the data packet is a video stream data packet. If so, the data packet is used as a plaintext .

[0078] Use SM4 algorithm to encode plaintext Encrypted, the ciphertext is . Or use the white-box Piccolo algorithm to Encrypt and get the ciphertext .

[0079] Ciphertext The data portion is encapsulated into a data packet and sent to the ground control station.

[0080] S6. When the ground control station receives the encrypted video data packet sent by the UAV, it decrypts the encrypted video data packet based on the shared key.

[0081] Optionally, the specific operation steps of S6 may be as follows:

[0082] When the ground control station receives the first data packet and extracts the video stream message identifier from the first data packet, it extracts the data portion of the first data packet to obtain the first ciphertext, decrypts the first ciphertext using the first preset algorithm and the shared key, and obtains the transmitted video stream data.

[0083] In a feasible implementation manner, the message identifier added during the processing of the received data packet is used to determine whether the data portion of the ciphertext data packet is a video stream data packet. If so, the data portion of the ciphertext data packet is used as the ciphertext data packet. .

[0084] Use SM4 algorithm to ciphertext Decrypt it and get the plaintext as Or use the white-box piccolo algorithm to ciphertext Decrypt and get the plaintext .

[0085] Plain text The video stream data packets in the video are transmitted to the ground control station software, which is further analyzed by the ground control station software.

[0086] It should be noted that when encrypting and decrypting data as mentioned above, when the SM4 algorithm is used as the first preset algorithm for encryption, the first preset algorithm for decryption must also be the SM4 algorithm; when the white box piccolo algorithm is used as the first preset algorithm for encryption, the first preset algorithm for decryption must also be the white box piccolo.

[0087] S7. When the drone reads the MAVLink data packet from the TAP device, it encrypts the MAVLink data packet based on the shared key, determines the integrity check data based on the SM3 algorithm and the shared key, and sends the encrypted MAVLink data packet and the integrity check data to the ground control station.

[0088] Optionally, the specific operation steps of S7 may include the following S71-S73:

[0089] S71. Based on a second preset algorithm, encrypt the MAVLink data packet using a shared key to obtain a second ciphertext;

[0090] S72, using the SM3 algorithm and the shared key to perform a MAC operation on the second ciphertext to obtain a first MAC value;

[0091] S73. Concatenate the second ciphertext with the first MAC value, encapsulate the concatenated data into a second data packet and send it to the ground control station, where the second data packet carries a MAVLink message identifier.

[0092] Among them, the second preset algorithm is the SM4 algorithm or the white box piccolo algorithm.

[0093] In one feasible implementation, a data packet is read from the TAP device to determine whether the data packet is a MAVLink data packet. If so, the data packet is confirmed to be a control instruction and flight status data, and the MAVLink data packet is used as a plain text .

[0094] Use SM4 algorithm to encode plaintext Encrypt and get the ciphertext , or, use the white-box Piccolo algorithm to Encrypt and get the ciphertext .

[0095] Use SM3 algorithm to ciphertext Perform MAC operation to obtain the MAC value .

[0096] Ciphertext and MAC value Splice to , encapsulated as the data part into a data packet and sent to the ground control station.

[0097] S8. When the ground control station receives the encrypted MAVLink data packet and integrity check data sent by the drone, it performs a data integrity check based on the integrity check data. After the check passes, the encrypted MAVLink data packet is decrypted based on the shared key.

[0098] Optionally, the specific operation process of S8 may include S81-S82:

[0099] S81. When the ground control station receives the second data packet sent by the UAV and extracts the MAVLink message identifier from the second data packet, it extracts the data portion in the second data packet, and extracts the second ciphertext and the first MAC value from the data portion;

[0100] S82. Use the SM3 algorithm and the shared key to perform a MAC operation on the second ciphertext to obtain a second MAC value, compare the first MAC value with the second MAC value, and if the first MAC value is consistent with the second MAC value, determine that the data integrity check passes, and use the second preset algorithm and the shared key to decrypt the second ciphertext to obtain a transmitted MAVLink data packet.

[0101] In a feasible implementation, the data portion of the ciphertext data packet is determined to be a MAVLink data packet based on the message identifier added during the processing of the received data packet. If so, the data portion of the ciphertext data packet is used as the ciphertext packet. .

[0102] Use SM3 algorithm to ciphertext Perform MAC operation to obtain the MAC value .

[0103] Compare the locally calculated MAC value with the received MAC value. If they are consistent, it can be confirmed that the MAVLink data packet has not been modified by the attacker during transmission. The data packet is received, otherwise it is discarded.

[0104] Use SM4 algorithm to ciphertext Decrypt and get the plaintext .

[0105] It should be noted that when encrypting and decrypting data as mentioned above, when the SM4 algorithm is used as the second preset algorithm for encryption, the second preset algorithm for decryption must also be the SM4 algorithm; when the white box piccolo algorithm is used as the second preset algorithm for encryption, the second preset algorithm for decryption must also be the white box piccolo.

[0106] It should be noted that, in addition to the UAV sending data to the ground control station in the above process, the ground control station can also send control data to the UAV. The step of the ground control station encrypting the control data is consistent with the step of the UAV encrypting the MAVLink data packet and generating integrity verification data, and the processing process of the above steps S71-S73 can be referred to; the step of the UAV receiving the control data, performing data integrity verification and decrypting it is consistent with the step of the ground control station processing the encrypted MAVLink data packet, and the processing process of the above steps S81-S82 can be referred to, and the embodiments of the present invention will not be described in detail here.

[0107] In the embodiment of the present invention, in the traditional encrypted communication system, only the communication data is often encrypted. Instead of verifying the identities of both parties in the encrypted communication, in the system of the present invention, the digital signature technology of the SM2 algorithm is used to verify the identities of both parties in the encrypted communication, effectively preventing third-party middleman attacks. Moreover, in the encryption of flight control data and image transmission data, the SM4 encryption algorithm using the CTR mode is selected. While ensuring the encryption effect and efficiency, the impact of information error and error on information recovery during the communication process is greatly reduced, greatly increasing the robustness of the system. The white-boxed piccolo algorithm used in another mode makes it impossible for external attackers to directly obtain the key information of the algorithm even if the drone loses its main body. This can prevent the key from being leaked or cracked, and further protect the security of the data. In addition, in the traditional shared key encrypted communication process, the fixed shared key is easily leaked, resulting in a huge security vulnerability. The encrypted communication system described in the present invention is designed with a shared key update module to regularly update and renegotiate the shared keys of both parties, solving this problem.

[0108] Figure 5 is a block diagram of an encrypted communication system for a drone according to an exemplary embodiment, and the system is used to implement an encrypted communication method for a drone. Figure 5 , the system comprises:

[0109] The ground control station is used to generate a ground SM2 public key-private key pair, generate a shared key according to a time seed, and encrypt and transmit the shared key to the drone through an SM2 algorithm; when receiving an encrypted video stream data packet sent by the drone, the encrypted video stream data packet is decrypted based on the shared key; when receiving an encrypted MAVLink data packet and integrity check data sent by the drone, a data integrity check is performed based on the integrity check data, and after the check passes, the encrypted MAVLink data packet is decrypted based on the shared key;

[0110] The drone is used to: generate a drone SM2 public key-private key pair; obtain a ground SM2 public key; generate a random string, and complete identity authentication with the ground control station according to the random string, the SM3 algorithm, the ground SM2 private key and the ground SM2 public key; when the video stream data to be transmitted is read from the TAP device, the video stream data to be transmitted is encrypted based on the shared key, and the encrypted video stream data packet is sent to the ground control station; when the MAVLink data packet is read from the TAP device, the MAVLink data packet is encrypted based on the shared key, the integrity check data is determined based on the SM3 algorithm and the shared key, and the encrypted MAVLink data packet and the integrity check data are sent to the ground control station;

[0111] The certification authority is used to assist the ground control station in obtaining the UAV SM2 public key, and the UAV obtains the ground SM2 public key.

[0112] Optionally, the ground control station is used to:

[0113] Register the ground SM2 public key with the certification authority;

[0114] Apply for a drone digital certificate from the certification authority; the drone digital certificate includes the drone SM2 public key and the digital signature of the certification authority;

[0115] Extract the drone SM2 public key from the applied drone digital certificate;

[0116] The drone is used for:

[0117] Register the drone SM2 public key with the certification authority;

[0118] Apply for a ground control station digital certificate from the certification authority; the ground control station digital certificate includes the ground SM2 public key and the digital signature of the certification authority;

[0119] Get the ground SM2 public key from the applied ground control station digital certificate.

[0120] Optionally, the drone is used to:

[0121] generating and storing a random character string, and sending the random character string to the ground control station;

[0122] After receiving the random string ciphertext, the random string ciphertext is decrypted using the retrieved ground SM2 public key to obtain a random string plaintext;

[0123] Performing a hash operation on the stored random string using the SM3 algorithm to obtain a second random hash value;

[0124] Compare the plaintext of the random string with the second random hash value, and when the plaintext of the random string is consistent with the second random hash value, complete the identity authentication;

[0125] The ground control station is used to:

[0126] After receiving the random string, the SM3 algorithm is used to perform a hash operation on the random string to obtain a first random hash value, the first random hash value is encrypted using the ground SM2 private key to obtain a random string ciphertext, and the random string ciphertext is sent to the drone.

[0127] Optionally, the ground control station is used to:

[0128] Get the current system time as the system time random seed;

[0129] The system time random seed is input into the SM3 algorithm, and the obtained output value is determined as the shared key.

[0130] Optionally, the drone is used to:

[0131] S51, based on a first preset algorithm, using a shared key to encrypt the video stream data to be transmitted to obtain a first ciphertext;

[0132] S55. Encapsulate the first ciphertext into a first data packet and send it to the ground control station, where the first data packet carries a video stream message identifier.

[0133] Optionally, the ground control station is used to:

[0134] When the ground control station receives the first data packet and extracts the video stream message identifier from the first data packet, it extracts the data portion in the first data packet to obtain the first ciphertext, and decrypts the first ciphertext using the first preset algorithm and the shared key to obtain the transmitted video stream data;

[0135] Among them, the first preset algorithm is the SM4 algorithm or the white box piccolo algorithm.

[0136] Optionally, the drone is used to:

[0137] S71. Based on a second preset algorithm, encrypt the MAVLink data packet using a shared key to obtain a second ciphertext;

[0138] S72, using the SM3 algorithm and the shared key to perform a MAC operation on the second ciphertext to obtain a first MAC value;

[0139] S73. Concatenate the second ciphertext with the first MAC value, encapsulate the concatenated data into a second data packet and send it to the ground control station, where the second data packet carries a MAVLink message identifier.

[0140] Optionally, the ground control station is used to:

[0141] S81. When the ground control station receives a second data packet sent by the UAV and extracts a MAVLink message identifier from the second data packet, extracts a data portion from the second data packet, and extracts a second ciphertext and a first MAC value from the data portion;

[0142] S82, using the SM3 algorithm and the shared key to perform a MAC operation on the second ciphertext to obtain a second MAC value, comparing the first MAC value with the second MAC value, if the first MAC value is consistent with the second MAC value, then judging that the data integrity check passes, using the second preset algorithm and the shared key to decrypt the second ciphertext to obtain a transmitted MAVLink data packet;

[0143] The second preset algorithm is the SM4 algorithm or the white box piccolo algorithm.

[0144] In the embodiment of the present invention, in the traditional encrypted communication system, only the communication data is often encrypted. Instead of verifying the identities of both parties in the encrypted communication, in the system of the present invention, the digital signature technology of the SM2 algorithm is used to verify the identities of both parties in the encrypted communication, effectively preventing third-party middleman attacks. Moreover, in the encryption of flight control data and image transmission data, the SM4 encryption algorithm using the CTR mode is selected. While ensuring the encryption effect and efficiency, the impact of information error and error on information recovery during the communication process is greatly reduced, greatly increasing the robustness of the system. The white-boxed piccolo algorithm used in another mode makes it impossible for external attackers to directly obtain the key information of the algorithm even if the drone loses its main body. This can prevent the key from being leaked or cracked, and further protect the security of the data. In addition, in the traditional shared key encrypted communication process, the fixed shared key is easily leaked, resulting in a huge security vulnerability. The encrypted communication system described in the present invention is designed with a shared key update module to regularly update and renegotiate the shared keys of both parties, solving this problem.

[0145] Figure 6 is a schematic diagram of the structure of an encryption communication device provided by an embodiment of the present invention, such as Figure 6 As shown, the encryption communication device may include the above Figure 5 The encrypted communication system for a drone shown in FIG. 6A . Optionally, the encrypted communication device 610 may include a first processor 2001 .

[0146] Optionally, the encryption communication device 610 may further include a memory 2002 and a transceiver 2003 .

[0147] The first processor 2001, the memory 2002 and the transceiver 2003 may be connected via a communication bus.

[0148] Combine the following Figure 6 The components of the encryption communication device 610 are described in detail:

[0149] The first processor 2001 is the control center of the encryption communication device 610, and may be a processor or a general term for multiple processing elements. For example, the first processor 2001 is one or more central processing units (CPUs), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention, such as one or more microprocessors (digital signal processors, DSPs), or one or more field programmable gate arrays (field programmable gate arrays, FPGAs).

[0150] Optionally, the first processor 2001 can perform various functions of the encryption communication device 610 by running or executing a software program stored in the memory 2002 and calling data stored in the memory 2002.

[0151] In a specific implementation, as an embodiment, the first processor 2001 may include one or more CPUs, such as Figure 6 CPU0 and CPU1 are shown in FIG.

[0152] In a specific implementation, as an embodiment, the encryption communication device 610 may also include multiple processors, such as Figure 6 The first processor 2001 and the second processor 2004 are shown in FIG. Each of these processors may be a single-core processor (single-CPU) or a multi-core processor (multi-CPU). The processor here may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).

[0153] The memory 2002 is used to store the software program for executing the solution of the present invention, and is controlled to be executed by the first processor 2001. The specific implementation method can refer to the above method embodiment, which will not be repeated here.

[0154] Optionally, the memory 2002 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 2002 may be integrated with the first processor 2001, or may exist independently and access the first processor 2001 through the interface circuit ( Figure 6 (not shown) is coupled to the first processor 2001, which is not specifically limited in this embodiment of the present invention.

[0155] The transceiver 2003 is used to communicate with a network device or a terminal device.

[0156] Optionally, the transceiver 2003 may include a receiver and a transmitter ( Figure 6 The receiver is used to implement a receiving function, and the transmitter is used to implement a sending function.

[0157] Optionally, the transceiver 2003 may be integrated with the first processor 2001, or may exist independently and communicate with the first processor 2001 through the interface circuit ( Figure 6 (not shown) is coupled to the first processor 2001, which is not specifically limited in this embodiment of the present invention.

[0158] It should be noted that Figure 6 The structure of the encryption communication device 610 shown in the figure does not constitute a limitation on the router, and the actual knowledge structure identification device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0159] In addition, the technical effects of the encryption communication device 610 can refer to the technical effects of the encryption communication method for a drone described in the above method embodiment, and will not be repeated here.

[0160] It should be understood that the first processor 2001 in the embodiment of the present invention may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0161] It should also be understood that the memory in the embodiments of the present invention may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of random access memory (RAM) are available, such as static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM), and direct rambus RAM (DR RAM).

[0162] The above embodiments can be implemented in whole or in part by software, hardware (such as circuits), firmware or any other combination. When implemented by software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable system. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired (such as infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that contains one or more available media sets. The available medium can be a magnetic medium (for example, a floppy disk, a hard disk, a tape), an optical medium (for example, a DVD), or a semiconductor medium. The semiconductor medium can be a solid-state hard disk.

[0163] It should be understood that the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. A and B can be singular or plural. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship, but it may also indicate an "and / or" relationship. Please refer to the context for specific understanding.

[0164] In the present invention, "at least one" means one or more, and "plurality" means two or more. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple.

[0165] It should be understood that in various embodiments of the present invention, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.

[0166] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0167] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices, systems and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0168] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, systems and methods can be implemented in other ways. For example, the system embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of the system or unit, which can be electrical, mechanical or other forms.

[0169] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0170] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0171] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program codes.

[0172] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. An encrypted communication method for a drone, characterized in that: The encrypted communication method for the UAV is implemented by an encrypted communication system for the UAV, and the encrypted communication for the UAV includes a ground control station, a UAV and a certification agency; The method comprises: S1. The ground control station generates a ground SM2 public key-private key pair, and the drone generates a drone SM2 public key-private key pair; S2. Based on the certification authority, the ground control station obtains the UAV SM2 public key, and the UAV obtains the ground SM2 public key; S3, the UAV generates a random string, and the UAV completes identity authentication with the ground control station according to the random string, SM3 algorithm, ground SM2 private key and ground SM2 public key; S4, the ground control station generates a shared key according to the time seed, and encrypts the shared key through the SM2 algorithm and transmits it to the drone; S5. When the UAV reads the video stream data to be transmitted from the TAP device, the UAV encrypts the video stream data to be transmitted based on the shared key, and sends the encrypted video stream data packet to the ground control station; S6. When the ground control station receives the encrypted video stream data packet sent by the UAV, the ground control station decrypts the encrypted video stream data packet based on the shared key; S7. When the drone reads a MAVLink data packet from the TAP device, the MAVLink data packet is encrypted based on the shared key, integrity check data is determined based on the SM3 algorithm and the shared key, and the encrypted MAVLink data packet and integrity check data are sent to the ground control station; S8. When the ground control station receives the encrypted MAVLink data packet and integrity check data sent by the UAV, the ground control station performs a data integrity check based on the integrity check data, and decrypts the encrypted MAVLink data packet based on the shared key after the check passes; Among them, S7 encrypts the MAVLink data packet based on the shared key, determines the integrity check data based on the SM3 algorithm and the shared key, and sends the encrypted MAVLink data packet and integrity check data to the ground control station, including: S71. Based on a second preset algorithm, encrypt the MAVLink data packet using a shared key to obtain a second ciphertext; S72, using the SM3 algorithm and the shared key to perform a MAC operation on the second ciphertext to obtain a first MAC value; S73, concatenating the second ciphertext with the first MAC value, encapsulating the concatenated data into a second data packet and sending it to the ground control station, wherein the second data packet carries a MAVLink message identifier; Among them, when the ground control station receives the encrypted MAVLink data packet and integrity check data sent by the drone, S8 performs data integrity check based on the integrity check data, and decrypts the encrypted MAVLink data packet based on the shared key after the check passes, including: S81. When the ground control station receives a second data packet sent by the UAV and extracts a MAVLink message identifier from the second data packet, extracts a data portion from the second data packet, and extracts a second ciphertext and a first MAC value from the data portion; S82, using the SM3 algorithm and the shared key to perform a MAC operation on the second ciphertext to obtain a second MAC value, comparing the first MAC value with the second MAC value, if the first MAC value is consistent with the second MAC value, then judging that the data integrity check passes, using the second preset algorithm and the shared key to decrypt the second ciphertext to obtain a transmitted MAVLink data packet; The second preset algorithm is the SM4 algorithm or the white box piccolo algorithm.

2. The encrypted communication method for a drone according to claim 1, characterized in that: The S2, based on the certification authority, the ground control station obtains the UAV SM2 public key, and the UAV obtains the ground SM2 public key, including: S21, the ground control station registers the ground SM2 public key with the certification authority, and the UAV registers the UAV SM2 public key with the certification authority; S22, the ground control station applies to the certification authority for a drone digital certificate, where the drone digital certificate includes the drone SM2 public key and the digital signature of the certification authority; The UAV applies to the certification authority for a ground control station digital certificate, where the ground control station digital certificate includes a ground SM2 public key and a digital signature of the certification authority; S23, the ground control station takes out the drone SM2 public key from the applied drone digital certificate, and the drone takes out the ground SM2 public key from the applied ground control station digital certificate.

3. The encrypted communication method for a drone according to claim 1, characterized in that: The UAV of S3 generates a random string, and the UAV completes identity authentication with the ground control station according to the random string, SM3 algorithm, ground SM2 private key, and ground SM2 public key, including: S31, the UAV generates and stores a random string, and sends the random string to the ground control station; S32: After receiving the random string, the ground control station uses the SM3 algorithm to perform a hash operation on the random string to obtain a first random hash value, encrypts the first random hash value using the ground SM2 private key to obtain a random string ciphertext, and sends the random string ciphertext to the drone; S33, after receiving the random string ciphertext, the UAV uses the retrieved ground SM2 public key to decrypt the random string ciphertext to obtain a random string plaintext; S34, the drone uses the SM3 algorithm to perform a hash operation on the stored random string to obtain a second random hash value; S35. The drone compares the plaintext of the random string with the second random hash value. When the plaintext of the random string is consistent with the second random hash value, identity authentication is completed.

4. The encrypted communication method for a drone according to claim 1, characterized in that: The ground control station in S4 generates a shared key according to a time seed, including: S41, the ground control station obtains the current system time as a random seed of the system time; S42: Input the system time random seed into the SM3 algorithm, and determine the obtained output value as the shared key.

5. The encrypted communication method for a drone according to claim 1, characterized in that: The step S5 encrypts the video stream data to be transmitted based on the shared key and sends the encrypted video stream data packet to the ground control station, including: S51, based on a first preset algorithm, using a shared key to encrypt the video stream data to be transmitted to obtain a first ciphertext; S55. Encapsulate the first ciphertext into a first data packet and send it to the ground control station, where the first data packet carries a video stream message identifier.

6. The encrypted communication method for a drone according to claim 5, characterized in that: In S6, when the ground control station receives the encrypted video stream data packet sent by the drone, the ground control station decrypts the encrypted video stream data packet based on the shared key; When the ground control station receives the first data packet and extracts the video stream message identifier from the first data packet, it extracts the data portion in the first data packet to obtain the first ciphertext, and decrypts the first ciphertext using the first preset algorithm and the shared key to obtain the transmitted video stream data; Among them, the first preset algorithm is the SM4 algorithm or the white box piccolo algorithm.

7. An encrypted communication system for a drone, the encrypted communication system for a drone being used to implement an encrypted communication method for a drone as claimed in any one of claims 1 to 6, characterized in that: The encrypted communication for the drone includes a ground control station, a drone and a certification authority; wherein: The ground control station is used to generate a ground SM2 public key-private key pair, generate a shared key according to a time seed, and encrypt and transmit the shared key to the drone through an SM2 algorithm; when receiving an encrypted video stream data packet sent by the drone, the encrypted video stream data packet is decrypted based on the shared key; when receiving an encrypted MAVLink data packet and integrity check data sent by the drone, a data integrity check is performed based on the integrity check data, and after the check passes, the encrypted MAVLink data packet is decrypted based on the shared key; The drone is used to: generate a drone SM2 public key-private key pair; obtain a ground SM2 public key; generate a random string, and complete identity authentication with the ground control station according to the random string, the SM3 algorithm, the ground SM2 private key and the ground SM2 public key; when the video stream data to be transmitted is read from the TAP device, the video stream data to be transmitted is encrypted based on the shared key, and the encrypted video stream data packet is sent to the ground control station; when the MAVLink data packet is read from the TAP device, the MAVLink data packet is encrypted based on the shared key, the integrity check data is determined based on the SM3 algorithm and the shared key, and the encrypted MAVLink data packet and the integrity check data are sent to the ground control station; The certification authority is used to assist the ground control station in obtaining the UAV SM2 public key, and the UAV obtains the ground SM2 public key; Wherein, the drone is used for: S71. Based on a second preset algorithm, encrypt the MAVLink data packet using a shared key to obtain a second ciphertext; S72, using the SM3 algorithm and the shared key to perform a MAC operation on the second ciphertext to obtain a first MAC value; S73, concatenating the second ciphertext with the first MAC value, encapsulating the concatenated data into a second data packet and sending it to the ground control station, wherein the second data packet carries a MAVLink message identifier; Wherein, the ground control station is used for: S81. When the ground control station receives a second data packet sent by the UAV and extracts a MAVLink message identifier from the second data packet, extracts a data portion from the second data packet, and extracts a second ciphertext and a first MAC value from the data portion; S82, using the SM3 algorithm and the shared key to perform a MAC operation on the second ciphertext to obtain a second MAC value, comparing the first MAC value with the second MAC value, if the first MAC value is consistent with the second MAC value, then judging that the data integrity check passes, using the second preset algorithm and the shared key to decrypt the second ciphertext to obtain a transmitted MAVLink data packet; The second preset algorithm is the SM4 algorithm or the white box piccolo algorithm.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program codes, which can be called by a processor to execute the method according to any one of claims 1 to 6.