Method and device for generating and updating unmanned cleaning vehicle software package

By segmenting and encrypting the unmanned cleaning vehicle software, generating a message authentication code combination table, and combining it with a symmetric encryption algorithm, the hardware resource limitations and security issues of unmanned cleaning vehicle software updates are solved, and high data transmission is achieved. Security and reliability.

CN118860436APending Publication Date: 2024-10-29ZHEJIANG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410823166.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

Existing software update methods for unmanned cleaning vehicles are not suitable for their hardware resource constraints, and there are issues with data transmission security and reliability. Especially in unattended environments, they are prone to data theft and remote attacks.

Method used

Using the method of blocking and encryption, sub-message authentication codes are generated through an irreversible algorithm with a key, and a message authentication code combination table is generated through logical combination, and the software package is encrypted using a symmetric encryption algorithm to ensure the security and integrity of data transmission. sex.

Benefits of technology

It provides multi-level security protection, effectively prevents data leakage and software package tampering, significantly improves the security and operational reliability of the system, and ensures the safety and efficiency of software updates for unmanned cleaning vehicles.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118860436A_ABST
    Figure CN118860436A_ABST
Patent Text Reader

Abstract

The invention discloses a method and a device for generating and updating a software package of an unmanned cleaning vehicle. The method comprises the following steps: partitioning the software package for updating into blocks; generating a sub-message authentication code for the data block by adopting an irreversible algorithm with a secret key; generating a message authentication code combination table according to the sub-message authentication codes of the data blocks; a symmetric encryption algorithm is adopted for the data block and the message authentication code combination table, and a ciphertext data block is generated; combining the ciphertext data blocks to obtain a software package for publishing; acquiring released software package blocks for updating; performing a symmetric decryption algorithm on the ciphertext data block to obtain a data block and a message authentication code combination table for verification; generating an actual sub-message authentication code for the data block by adopting an irreversible algorithm with a secret key; generating an actual message authentication code combination table according to the actual sub-message authentication codes of the data blocks; and comparing the message authentication code combination table for verification with the actual message authentication code combination table to determine whether to update or not.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of remote upgrading of embedded device software, and in particular relates to a method and device for generating and updating a software package of an unmanned cleaning vehicle. Background Art

[0002] As the pioneer of automation in the field of road cleaning, unmanned cleaning vehicles are designed to replace traditional manpower in road cleaning work through their autonomous navigation capabilities. They follow preset paths and perform cleaning operations efficiently, thereby improving cleaning efficiency and reducing labor costs.

[0003] As the level of intelligence of unmanned cleaning vehicles continues to improve, remote updates of their software have become critical. Given that these vehicles are usually in an unmanned operating environment, it is necessary to ensure that strict safety measures and guarantee mechanisms are taken when performing software upgrades to ensure high reliability and security of the upgrade process.

[0004] Although there are some methods for generating and updating software packages in other technical fields, these methods are not applicable to the specific field of unmanned cleaning vehicles. For example, China Invention Patent - A method and system for upgrading OTA packages of smart speaker operating systems (CN202011350658) discloses an OTA package upgrade method for smart speakers, which uses a digital certificate chain and a root CA certificate to sign the OTA package. This method has certain requirements on the computing power and storage space of the system, and is not suitable for use on unmanned cleaning vehicles with limited computing power and storage space. In addition, China Invention Patent - Method for generating software packages, flashing and updating methods and signing methods for software packages (CN202111350757) discloses a method for generating, updating and signing software packages, but this method does not use encryption measures during the transmission process and directly transmits plaintext information. For unmanned cleaning vehicles that are unmanned and have high requirements for security and reliability, there is a risk of data theft and remote attacks. Summary of the invention

[0005] In order to solve the shortcomings of the prior art and achieve the purpose of software update that not only adapts to the hardware resource limitations of the unmanned cleaning vehicle but also ensures high security of data transmission, the present invention adopts the following technical solutions:

[0006] A method for generating an unmanned cleaning vehicle software package comprises the following steps:

[0007] Step 101: Divide the software package for updating into blocks to obtain software package data blocks to match the hardware security engine and optimize the calculation efficiency of the security algorithm;

[0008] Step 102: For each software package data block, a keyed irreversible algorithm is used, the first preset key is used, a sub-message authentication code is generated, and the sub-message authentication code is saved as a local variable, waiting for the subsequent generation of a message authentication code combination table through combination logic; keyed irreversible algorithms include HMAC and CMAC, which inherit the one-way characteristics of traditional digest algorithms, ensuring that the original information cannot be reversely derived from the digest, and at the same time, they enhance the security of generating the digest by introducing a key mechanism;

[0009] Step 103: Generate a message authentication code combination table based on the sub-message authentication code of the software package data block through a logical combination method, and store it at the end of the software package;

[0010] Step 104: For each software package data block and message authentication code combination table, a symmetric encryption algorithm is used and the second preset key is used for encryption to generate a software package ciphertext data block;

[0011] Step 105: Combine the ciphertext data blocks of the software package to generate a software package for release.

[0012] Furthermore, in step 101, the data block size is determined based on the controller capacity, the size of the software package is adjusted so that its size is an integral multiple of the data block, and the software package is divided into blocks based on the data block size to obtain software package data blocks.

[0013] Furthermore, the calculation method of adjusting the software package size PackageSize is as follows:

[0014]

[0015] BlockSize indicates the data block size, and PaddingSize number of 0xFF bytes are padded at the end of the package to facilitate retrieval of the message authentication code table;

[0016] The calculation method of the number of divided data blocks BlockNums is as follows:

[0017]

[0018] Furthermore, the logical combination method of the sub-message authentication codes in step 103 is to combine the sub-message authentication codes of the data blocks with odd block numbers and to combine the sub-message authentication codes of the data blocks with even block numbers.

[0019] Furthermore, the logical combination method of the sub-message authentication codes in step 103 is to combine the sub-message authentication codes of data blocks whose block numbers are prime numbers together, and to combine the sub-message authentication codes of data blocks whose block numbers are non-prime numbers together.

[0020] A method for updating an unmanned cleaning vehicle software package comprises the following steps:

[0021] Step 201: divide the published software package for updating into blocks according to the addresses of the data blocks in the software package to obtain the ciphertext data blocks of the software package;

[0022] Step 202: Using a symmetric decryption algorithm on the ciphertext data block of the software package, using a second preset key, to obtain a combination table of the software package data block and a message authentication code for verification;

[0023] Step 203: using a keyed irreversible algorithm on the software package data block and using the first preset key to generate an actual sub-message authentication code;

[0024] Step 204: Generate an actual message authentication code combination table based on the actual sub-message authentication code of the software package data block through a logical combination method, and store it at the end of the software package;

[0025] Step 205: compare the message authentication code combination table used for verification with the actual message authentication code combination table to see if they are consistent. If so, update is performed through the software package data block. Otherwise, the update fails.

[0026] Furthermore, the actual logical combination method of the sub-message authentication codes in step 204 is to combine the sub-message authentication codes of the data blocks with odd block numbers and to combine the sub-message authentication codes of the data blocks with even block numbers.

[0027] Furthermore, the actual logical combination method of the sub-message authentication codes in step 204 is to combine the sub-message authentication codes of data blocks whose block numbers are prime numbers together, and to combine the sub-message authentication codes of data blocks whose block numbers are non-prime numbers together.

[0028] A device for generating a software package for an unmanned cleaning vehicle, comprising a block division module, a sub-authentication module, a combination module, an encryption module and a packaging module;

[0029] The block division module divides the software package for updating into blocks to obtain software package data blocks;

[0030] The sub-authentication module, for each software package data block, adopts a keyed irreversible algorithm and uses a first preset key to generate a sub-message authentication code;

[0031] The combination module generates a message authentication code combination table according to the sub-message authentication codes of the software package data block through a logical combination method, and stores it in the software package;

[0032] The encryption module adopts a symmetric encryption algorithm for each software package data block and message authentication code combination table, and uses a second preset key to generate a software package ciphertext data block;

[0033] The packaging module combines the ciphertext data blocks of the software package to generate a software package for updating.

[0034] An updating device for an unmanned cleaning vehicle software package includes a block division module, a decryption module, an actual authentication module, an actual combination module and a comparison module;

[0035] The block division module divides the published software package for updating into blocks according to the addresses of the data blocks in the software package to obtain the ciphertext data blocks of the software package;

[0036] The decryption module adopts a symmetric decryption algorithm to the ciphertext data block of the software package, uses a second preset key, and obtains a combination table of the software package data block and a message authentication code for verification;

[0037] The actual authentication module adopts a keyed irreversible algorithm to the software package data block and uses the first preset key to generate an actual sub-message authentication code;

[0038] The actual combination module generates an actual message authentication code combination table according to the actual sub-message authentication code of the software package data block through a logical combination method, and stores it at the end of the software package;

[0039] The comparison module compares whether the message authentication code combination table used for verification is consistent with the actual message authentication code combination table. If so, the update is performed through the software package data block; otherwise, the update fails.

[0040] The advantages and beneficial effects of the present invention are:

[0041] The method and device for generating and updating the software package of an unmanned cleaning vehicle of the present invention provide a multi-level security protection system for the unmanned cleaning vehicle by dividing the software package into blocks, calculating and combining message authentication codes, and strictly encrypting the data. This not only effectively prevents the risk of data leakage and software package tampering, but also significantly improves the security of the system and the reliability of operation through enhanced data integrity verification and security encryption, ensuring that the unmanned cleaning vehicle can complete the upgrade safely and reliably. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 It is a flow chart of a method for generating a software package for an unmanned cleaning vehicle in an embodiment of the present invention.

[0043] Figure 2 It is a flow chart of a method for updating a software package of an unmanned cleaning vehicle in an embodiment of the present invention.

[0044] Figure 3 It is a structural schematic diagram of a software package generating device for an unmanned cleaning vehicle in an embodiment of the present invention.

[0045] Figure 4 It is a structural schematic diagram of a software package updating device for an unmanned cleaning vehicle in an embodiment of the present invention. DETAILED DESCRIPTION

[0046] The specific implementation of the present invention is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described here is only used to illustrate and explain the present invention, and is not used to limit the present invention.

[0047] like Figure 1 As shown, a method for generating an unmanned cleaning vehicle software package is used to enhance the security and reliability of the unmanned cleaning vehicle software package upgrade. First, the software package is divided into blocks to match the hardware security engine and optimize the calculation efficiency of the security algorithm; secondly, the integrity of the data is guaranteed by generating a sub-message authentication code and establishing a message authentication code combination table; finally, the data block is encrypted to prevent data leakage; specifically, the method comprises the following steps:

[0048] Step 101: Divide the software package for updating into blocks to obtain software package data blocks.

[0049] According to the RAM capacity of the microcontroller, determine an appropriate data block size, and then pad the end of the software package with 0xFF bytes to ensure that the total size of the software package is divisible by the data block size. On this basis, divide the software package evenly into several equal-sized data blocks, and the size of each block is consistent with the selected data block size.

[0050] In one embodiment, the non-cache area capacity of the microcontroller is 30K, the data block size BlockSize is selected as 10K, the package size PackageSize is selected as 244K, the package size is aligned to an integer multiple of the data block size, and the amount of data to be filled is determined as PaddingSize. The calculation method of PaddingSize is:

[0051]

[0052] PaddingSize number of 0xFF bytes are added to the end of the package to facilitate retrieval of the message authentication code table.

[0053] Use the data block size BlockSize to divide the filled software package into blocks. The total number of data blocks that can be divided is BlockNums. The calculation method of BlockNums is:

[0054]

[0055] Step 102: Use an irreversible algorithm with a key to generate a sub-message authentication code for the software package data block.

[0056] A keyed irreversible algorithm is used for each software package data block, using a first preset key to generate a sub-message authentication code.

[0057] The optional keyed irreversible algorithms include HMAC and CMAC, which inherit the one-way characteristics of traditional digest algorithms, ensuring that the original information cannot be reversed from the digest. At the same time, they enhance the security of generating digests by introducing a key mechanism.

[0058] In one embodiment, the CMAC algorithm is used to calculate the message authentication code, the first preset key used is Key1, the data block is BlockData, the generated message authentication code is AuthenticationCode, and the calculation method is:

[0059] AuthenticationCode=CMAC(BlockData,Key1)

[0060] The calculated AuthenticationCode length is 16 bytes, which is saved as a local variable, waiting for the subsequent generation of a message authentication code combination table through combination logic.

[0061] Step 103: Generate a message authentication code combination table according to the sub-message authentication codes of the software package data block.

[0062] According to the sub-message authentication code generated by each software package data block, a message authentication code combination table is generated by applying a logical combination method and stored at the end of the software package.

[0063] In some optional implementations, there may be multiple logical combination methods for the sub-message authentication codes, including but not limited to the following combination methods:

[0064] The first combination mode: the sub-message authentication codes of the data blocks with odd block numbers are combined together, and the sub-message authentication codes of the data blocks with even block numbers are combined together. Table 1 shows the message authentication code combination table obtained in this example under the condition of 5 software package data blocks, where A1, A2, A3, A4, A5 are 5 software package data blocks numbered 1, 2, 3, 4, 5 respectively, and B1, B2, B3, B4, B5 are sub-message authentication codes of 5 software package data blocks numbered 1, 2, 3, 4, 5 respectively.

[0065] Table 1. Message authentication code combination table obtained by the first combination method

[0066] A1, A2, A3, A4, A5 B1, B3, B5, B2, B4

[0067] The second combination method: the sub-message authentication codes of the data blocks whose block numbers are prime numbers are combined together, and the sub-message authentication codes of the data blocks whose block numbers are non-prime numbers are combined together. Table 2 shows the message authentication code combination table obtained in this example under the condition of 5 software data blocks, where A1, A2, A3, A4, A5 are 5 software package data blocks numbered 1, 2, 3, 4, 5 respectively, and B1, B2, B3, B4, B5 are sub-message authentication codes of 5 software package data blocks numbered 1, 2, 3, 4, 5 respectively.

[0068] Table 2: Message authentication code combination table obtained by the second combination method

[0069] A1, A2, A3, A4, A5 B2, B3, B5, B1, B4

[0070] Step 104: Use a symmetric encryption algorithm on the software package data block and the message authentication code combination table to generate a software package ciphertext data block.

[0071] For each software package data block and message authentication code combination table, a symmetric encryption algorithm is adopted and encrypted using a second preset key to obtain a software package ciphertext data block.

[0072] In some optional implementations, there may be multiple symmetric encryption algorithms, including but not limited to AES-128, AES-256, and DES algorithms.

[0073] In one embodiment, AES-128-CBC encryption is used, the software package data block is BlockData, the second preset key used is Key2, and the software package ciphertext data block generated after encryption is BlockSecuredData. The calculation method is:

[0074] BlockSecuredData=AES_128_CBC_Encrypt(BlockData,Key2)

[0075] The length of the encrypted software package ciphertext data block is equal to the length of the software package data block before encryption, and the software package ciphertext data block is used to replace the software package data block in the software package.

[0076] Step 105: Combine the ciphertext data blocks of the software package to obtain a software package for release.

[0077] All the ciphertext data blocks of the software package are combined to generate a software package for release according to the software package format required by the target device.

[0078] In some optional implementations, the software package formats required by the target device include but are not limited to Intelhex and Motorola S-record.

[0079] like Figure 2 As shown, a method for updating an unmanned cleaning vehicle software package includes the following steps:

[0080] Step 201: Divide the software package for updating into blocks to obtain ciphertext data blocks of the software package.

[0081] According to the addresses of the data blocks in the software package, the software package for updating is divided into blocks to obtain the ciphertext data blocks of the software package.

[0082] Step 202: Use a symmetric decryption algorithm on the ciphertext data block of the software package to obtain a combination table of the software package data block and a message authentication code for authentication.

[0083] A symmetric decryption algorithm is used on the ciphertext data block of the software package, and a second preset key is used to obtain a combination table of the software package data block and a message authentication code for verification.

[0084] In some optional implementations, multiple symmetric decryption algorithms may be used, including but not limited to AES-128, AES-256, and DES algorithms, but they need to be consistent with the algorithm used for encryption.

[0085] In one embodiment, the software package ciphertext data block is BlockSecuredData, the second preset key used is Key2, and the software package data block BlockData is obtained by decrypting it using the AES-128-CBC decryption algorithm.

[0086] BlockData=AES_128_CBC_Decrypt(BlockSecuredData,Key2)

[0087] Step 203: Use an irreversible algorithm with a key to generate an actual sub-message authentication code for the software package data block.

[0088] An irreversible algorithm with a key is adopted for the software package data block, and the first preset key is used to generate an actual sub-message authentication code.

[0089] The optional keyed irreversible algorithms include HMAC and CMAC. These algorithms inherit the one-way characteristics of traditional digest algorithms, ensuring that the original information cannot be reversed from the digest. At the same time, they enhance the security of generated digests by introducing a key mechanism. The selected keyed irreversible algorithm must be consistent with the one selected when the software package is generated.

[0090] In one embodiment, the CMAC algorithm is used to calculate the message authentication code, the first preset key used is Key1, the data block is BlockData, the generated message authentication code is AuthenticationCode, and the calculation method is:

[0091] AuthenticationCode=CMAC(BlockData,Key1)

[0092] The calculated AuthenticationCode length is 16 bytes, which is saved as a local variable, waiting for the subsequent generation of a message authentication code combination table through combination logic.

[0093] Step 204: Generate an actual message authentication code combination table based on the sub-message authentication codes of all software package data blocks.

[0094] According to the sub-message authentication code generated by each software package data block, a message authentication code combination table is generated by applying a logical combination method and stored at the end of the software package.

[0095] In some optional implementations, there may be multiple logical combination methods for the sub-message authentication codes, including but not limited to the following combination methods:

[0096] The first combination mode: the sub-message authentication codes of the data blocks with odd block numbers are combined together, and the sub-message authentication codes of the data blocks with even block numbers are combined together. Table 1 shows the message authentication code combination table obtained in this example under the condition of 5 software data blocks, where A1, A2, A3, A4, A5 are 5 software package data blocks numbered 1, 2, 3, 4, 5 respectively, and B1, B2, B3, B4, B5 are sub-message authentication codes of 5 software package data blocks numbered 1, 2, 3, 4, 5 respectively.

[0097] Table 1. Message authentication code combination table obtained by the first combination method

[0098] A1, A2, A3, A4, A5 B1, B3, B5, B2, B4

[0099] The second combination method: the sub-message authentication codes of the data blocks whose block numbers are prime numbers are combined together, and the sub-message authentication codes of the data blocks whose block numbers are non-prime numbers are combined together. Table 2 shows the message authentication code combination table obtained in this example under the condition of 5 software data blocks, where A1, A2, A3, A4, A5 are 5 software package data blocks numbered 1, 2, 3, 4, 5 respectively, and B1, B2, B3, B4, B5 are sub-message authentication codes of 5 software package data blocks numbered 1, 2, 3, 4, 5 respectively.

[0100] Table 2: Message authentication code combination table obtained by the second combination method

[0101] A1, A2, A3, A4, A5 B2, B3, B5, B1, B4

[0102] Please note that the selected message authentication code combination method must be consistent with the method selected when the software package was generated.

[0103] Step 205: Compare the message authentication code combination table used for verification with the actual message authentication code combination table.

[0104] Compare the actual message authentication code combination table with the message authentication code combination table used for verification to see if they are consistent. If so, write the software package data block into the Flash and the update is complete. If not, delete the software package data block and the update fails.

[0105] like Figure 3 As shown, a device for generating a software package for an unmanned cleaning vehicle includes a block division module, a sub-authentication module, a combination module, an encryption module and a packaging module.

[0106] The block module is used to obtain the data block size and fill the end of the software package with 0xFF bytes to ensure that the total size of the software package is divisible by the data block size. On this basis, the software package is evenly divided into several equal-sized data blocks, and the size of each block is consistent with the selected data block size.

[0107] A sub-authentication module, used to generate a sub-message authentication code by using an irreversible algorithm with a key for each data block of the software package;

[0108] A combination module, used to generate a message authentication code combination table according to the sub-message authentication codes of all software package data blocks through combination logic, and store the message authentication code combination table at the end of the software package;

[0109] The encryption module is used to encrypt each software package data block and the message authentication code combination table using a symmetric encryption algorithm to obtain a software package ciphertext data block;

[0110] The packaging module is used to combine all the ciphertext data blocks of the software package and generate a software package for release according to the software package format required by the target device.

[0111] like Figure 4 As shown, an updating device for an unmanned cleaning vehicle software package includes a block segmentation module, a decryption module, an actual authentication module, an actual combination module and a comparison module.

[0112] A block division module, used for dividing the software package for updating into blocks according to the addresses of the data blocks in the software package, to obtain the ciphertext data blocks of the software package;

[0113] A decryption module, used to use a symmetric decryption algorithm to decrypt the ciphertext data block of the software package to obtain a combination table of the software package data block and a message authentication code for verification;

[0114] The actual authentication module is used to generate an actual sub-message authentication code by using an irreversible algorithm with a key on the software package data block;

[0115] The actual combination module is used to generate an actual message authentication code combination table through combination logic according to the actual sub-message authentication codes of all software package data blocks;

[0116] The comparison module is used to compare whether the message authentication code combination table used for verification is consistent with the actual message authentication code combination table: if so, the software package data block is written into the Flash and the update is completed; if not, the software package data block is deleted and the update fails.

[0117] The advantage of the present application is that it adopts a blocking and padding strategy to divide the software package into a data area and a message authentication code area, thereby solving the problem of difficulty in retrieving the message authentication code due to the non-fixed size of the software package data block; secondly, the present application adopts an irreversible algorithm with a key to generate the message authentication code, which adds a key compared to the conventional irreversible algorithm, thereby greatly improving the security of the software package data; a specific combination of the generated message authentication codes is performed to further improve data security; finally, the plaintext data of the software package is encrypted, and ciphertext distribution is used when distributing the software package, thereby avoiding the problem of software package data leakage caused by malicious interception of the software package during the distribution process.

[0118] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some or all of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for generating a software package for an unmanned cleaning vehicle, characterized in that The steps include: Step 101, dividing the software package for updating into blocks to obtain software package data blocks; Step 102: for each software package data block, a keyed irreversible algorithm is used and a first preset key is used to generate a sub-message authentication code; Step 103: Generate a message authentication code combination table based on the sub-message authentication code of the software package data block through a logical combination method, and store it in the software package; Step 104: for each software package data block and message authentication code combination table, a symmetric encryption algorithm is used and a second preset key is used to generate a software package ciphertext data block; Step 105: Combine the ciphertext data blocks of the software package to generate a software package for release.

2. The method for generating a software package for an unmanned cleaning vehicle according to claim 1, characterized in that: In step 101, the data block size is determined based on the controller capacity, the size of the software package is adjusted so that its size is an integral multiple of the data block, and the software package is divided into blocks based on the data block size to obtain software package data blocks.

3. The method for generating a software package for an unmanned cleaning vehicle according to claim 2, characterized in that: The calculation method of adjusting the package size PackageSize is as follows: BlockSize indicates the size of the data block, and the end of the package is filled with PaddingSize number of 0xFF bytes; The calculation method of the number of divided data blocks BlockNums is as follows:

4. The method for generating a software package for an unmanned cleaning vehicle according to claim 1, characterized in that: The logical combination method of the sub-message authentication codes in step 103 is to combine the sub-message authentication codes of the data blocks with odd block numbers and to combine the sub-message authentication codes of the data blocks with even block numbers.

5. The method for generating a software package for an unmanned cleaning vehicle according to claim 1, characterized in that: The logical combination method of the sub-message authentication codes in step 103 is to combine the sub-message authentication codes of the data blocks whose block numbers are prime numbers together, and to combine the sub-message authentication codes of the data blocks whose block numbers are non-prime numbers together.

6. A method for updating an unmanned cleaning vehicle software package, characterized in that The steps include: Step 201: divide the published software package for updating into blocks according to the addresses of the data blocks in the software package to obtain the ciphertext data blocks of the software package; Step 202: Using a symmetric decryption algorithm on the ciphertext data block of the software package, using a second preset key, to obtain a combination table of the software package data block and a message authentication code for verification; Step 203: using a keyed irreversible algorithm on the software package data block and using the first preset key to generate an actual sub-message authentication code; Step 204: Generate an actual message authentication code combination table based on the actual sub-message authentication code of the software package data block through a logical combination method, and store it in the software package; Step 205: compare the message authentication code combination table used for verification with the actual message authentication code combination table to see if they are consistent. If so, update is performed through the software package data block. Otherwise, the update fails.

7. The method for generating a software package for an unmanned cleaning vehicle according to claim 1, characterized in that: The actual logical combination method of the sub-message authentication codes in step 204 is to combine the sub-message authentication codes of the data blocks with odd block numbers and to combine the sub-message authentication codes of the data blocks with even block numbers.

8. The method for generating a software package for an unmanned cleaning vehicle according to claim 1, characterized in that: The actual logical combination method of the sub-message authentication codes in step 204 is to combine the sub-message authentication codes of data blocks whose block numbers are prime numbers together, and to combine the sub-message authentication codes of data blocks whose block numbers are non-prime numbers together.

9. A device for generating a software package for an unmanned cleaning vehicle, comprising a block division module, a sub-authentication module, a combination module, an encryption module and a packaging module, characterized in that: The block division module divides the software package for updating into blocks to obtain software package data blocks; The sub-authentication module adopts a keyed irreversible algorithm for each software package data block and uses a first preset key to generate a sub-message authentication code; The combination module generates a message authentication code combination table according to the sub-message authentication codes of the software package data block through a logical combination method, and stores it in the software package; The encryption module adopts a symmetric encryption algorithm for each software package data block and message authentication code combination table, and uses a second preset key to generate a software package ciphertext data block; The packaging module combines the ciphertext data blocks of the software package to generate a software package for updating.

10. An updating device for an unmanned cleaning vehicle software package, comprising a block division module, a decryption module, an actual authentication module, an actual combination module and a comparison module, characterized in that: The block division module divides the published software package for updating into blocks according to the addresses of the data blocks in the software package to obtain the ciphertext data blocks of the software package; The decryption module adopts a symmetric decryption algorithm to the ciphertext data block of the software package, uses a second preset key, and obtains a combination table of the software package data block and a message authentication code for verification; The actual authentication module adopts a keyed irreversible algorithm to the software package data block and uses the first preset key to generate an actual sub-message authentication code; The actual combination module generates an actual message authentication code combination table according to the actual sub-message authentication code of the software package data block through a logical combination method, and stores it in the software package; The comparison module compares whether the message authentication code combination table used for verification is consistent with the actual message authentication code combination table. If so, the update is performed through the software package data block; otherwise, the update fails.