Upgrade package transmission method and device, equipment and storage medium

By encrypted signature and off-site cloud storage of the upgrade package source file, combined with the decryption and signature verification mechanism, the data security and integrity issues in the cross-border transmission of the upgrade package are solved, and efficient and safe data transmission in different regions is achieved.

CN118659909AActive Publication Date: 2024-09-17VOYAH AUTOMOBILE TECH CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202410858461.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-09-17
Estimated Expiration
2044-06-28

AI Technical Summary

Technical Problem

Existing technology cannot fully guarantee the security and integrity of data during the cross-border transmission of upgrade packages, and lacks an efficient key management system and data synchronization mechanism.

Method used

By encrypting the signature of the upgrade package source file, the encrypted upgrade package file is generated and synchronized to the off-site cloud storage bucket. When receiving the decryption call request, decryption verification is performed to ensure the security and integrity of the data during transmission, and is stored at the target The vehicle end performs encrypted signature transmission again.

Benefits of technology

It greatly enhances the security and confidentiality of data transmission between different regions or countries, while ensuring the consistency and integrity of data and meeting strict international security standards.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118659909A
    Figure CN118659909A
Patent Text Reader

Abstract

The invention discloses an upgrade patch transmission method and device, equipment and a storage medium, relates to the technical field of data security, and discloses an upgrade patch transmission method, which comprises the following steps: encrypting and signing an upgrade patch source file to obtain an encrypted upgrade patch file; synchronizing the encrypted upgrade package file to a remote cloud storage bucket; when a decryption calling request sent by a security private line is received, carrying out decryption inspection on the encrypted upgrade package file in the remote cloud storage bucket to obtain a remote upgrade package file; and encrypting and signing the remote upgrade package file, generating a target upgrade package file, and sending the target upgrade package file to the to-be-upgraded vehicle end. Through the mode, when the upgrade package is transmitted among different regions or countries, the security and confidentiality of the data are greatly enhanced, and meanwhile, the consistency and integrity of the data are also ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data security technology, and in particular to a transmission method, device, equipment and storage medium for an upgrade package. Background Art

[0002] Currently, basic encryption services are provided for upgrade package transmission, but there is no optimization for specific key management systems and a lack of efficient data synchronization and verification mechanisms, which may result in the security and integrity of data not being fully guaranteed during cross-border transmission.

[0003] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention

[0004] The main purpose of this application is to provide a method, device, equipment and storage medium for transmitting an upgrade package, aiming to solve the technical problem in the prior art that the security and integrity of data cannot be fully guaranteed during the cross-border transmission of the upgrade package.

[0005] To achieve the above object, the present application proposes a method for transmitting an upgrade package, the method comprising:

[0006] Encrypt and sign the upgrade package source file to obtain the encrypted upgrade package file;

[0007] Synchronize the encrypted upgrade package file to a remote cloud storage bucket;

[0008] Upon receiving the decryption call request sent through the secure dedicated line, decrypt and verify the encrypted upgrade package file in the remote cloud storage bucket to obtain the remote upgrade package file;

[0009] The off-site upgrade package file is encrypted and signed, a target upgrade package file is generated and sent to the vehicle end to be upgraded.

[0010] In one embodiment, the step of encrypting and signing the upgrade package source file to obtain the encrypted upgrade package file includes:

[0011] Upon receiving a transmission instruction for an upgrade package source file, generating a first encryption key for the upgrade package source file;

[0012] Encrypt the upgrade package source file according to the first encryption key to obtain a first upgrade package file;

[0013] The first upgrade package file is signed according to the first signature key to obtain an encrypted upgrade package file.

[0014] In one embodiment, signing the first upgrade package file according to the signature key to obtain the encrypted upgrade package file includes:

[0015] Performing hash value calculation on the first upgrade package file to determine a file hash value of the first upgrade package file;

[0016] Encrypting the file hash value of the first upgrade package file according to the first signature key to obtain file signature information;

[0017] An encrypted upgrade package is obtained according to the file signature information and the first upgrade package file.

[0018] In one embodiment, synchronizing the encrypted upgrade package file to a remote cloud storage bucket includes:

[0019] The encrypted upgrade package file is sent to a target cloud storage bucket, and the encrypted upgrade package file is synchronized to a remote cloud storage bucket through the target cloud storage bucket.

[0020] In one embodiment, upon receiving the decryption call request sent through the secure dedicated line, performing a decryption check on the encrypted upgrade package file in the remote cloud storage bucket to obtain the remote upgrade package file includes:

[0021] When receiving a decryption call request sent through a secure dedicated line, verifying the decryption call request, and decrypting the encrypted upgrade package file in the remote cloud storage bucket when the verification passes, to obtain a second upgrade package file and a decryption signature;

[0022] Performing hash value calculation on the second upgrade package file to determine a file hash value of the second upgrade package file;

[0023] Performing a file integrity check according to the file hash value of the second upgrade package file and the decryption signature;

[0024] When the file integrity check passes, the remote upgrade package file is obtained according to the second upgrade package file.

[0025] In one embodiment, the step of encrypting and signing the remote upgrade package file, generating a target upgrade package file, and sending the target upgrade package file to the vehicle to be upgraded includes:

[0026] Encrypt the remote upgrade package file according to the second encryption key to obtain a third upgrade package file;

[0027] Sign the third upgrade package file according to the second signature key to obtain a target upgrade package;

[0028] The target upgrade package file is sent to the vehicle end to be upgraded, so that the vehicle end to be upgraded performs software upgrade according to the target upgrade package file.

[0029] In one embodiment, the sending of the target upgrade package file to the vehicle to be upgraded so that the vehicle to be upgraded performs software upgrade according to the target upgrade package file includes:

[0030] Send the target upgrade package file to the vehicle to be upgraded, so that the vehicle to be upgraded decrypts the target upgrade package file according to the target decryption key to obtain a fourth upgrade package file, and authenticates the fourth upgrade package file according to the target vehicle certificate. When the identity authentication is passed, perform software upgrade according to the fourth upgrade package file.

[0031] In addition, to achieve the above-mentioned purpose, the present application also proposes a transmission device for an upgrade package, the transmission device for the upgrade package comprising: an encryption module, used to encrypt and sign the upgrade package source file to obtain an encrypted upgrade package file;

[0032] A synchronization module, used to synchronize the encrypted upgrade package file to a remote cloud storage bucket;

[0033] A decryption module, configured to, upon receiving a decryption call request sent through a secure dedicated line, perform a decryption check on the encrypted upgrade package file in the remote cloud storage bucket to obtain a remote upgrade package file;

[0034] The encryption module is also used to encrypt and sign the remote upgrade package file, generate a target upgrade package file and send the target upgrade package file to the vehicle to be upgraded.

[0035] In addition, to achieve the above-mentioned purpose, the present application also proposes an upgrade package transmission device, which includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, and the computer program is configured to implement the steps of the upgrade package transmission method as described above.

[0036] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the upgrade package transmission method described above are implemented.

[0037] The present application provides a method for transmitting an upgrade package, which obtains an encrypted upgrade package file by encrypting and signing the upgrade package source file; synchronizing the encrypted upgrade package file to an off-site cloud storage bucket; upon receiving a decryption call request sent through a secure dedicated line, decrypting and verifying the encrypted upgrade package file in the off-site cloud storage bucket to obtain an off-site upgrade package file; encrypting and signing the off-site upgrade package file to generate a target upgrade package file and sending the target upgrade package file to the vehicle to be upgraded. In the above manner, the encrypted upgrade package file obtained after encrypting and signing the upgrade package source file is synchronized to an off-site cloud storage bucket, and upon receiving a decryption call request, the encrypted upgrade package file is decrypted and verified through a secure dedicated line, and the decrypted off-site upgrade package file is encrypted and signed again and transmitted to the vehicle to be upgraded, which greatly enhances the security and confidentiality of data when transmitting upgrade packages between different regions or countries, while also ensuring the consistency and integrity of the data. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0039] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0040] Figure 1 A flowchart of the first embodiment of the method for transmitting the upgrade package of the present application is provided;

[0041] Figure 2 A flow chart of the second embodiment of the method for transmitting the upgrade package of the present application;

[0042] Figure 3 A schematic diagram of the module structure of the transmission device of the upgrade package in the embodiment of the present application;

[0043] Figure 4 This is a schematic diagram of the device structure of the hardware operating environment involved in the upgrade package transmission method in the embodiment of the present application.

[0044] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0045] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0046] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0047] The main solution of the embodiment of the present application is: encrypt and sign the upgrade package source file to obtain an encrypted upgrade package file; synchronize the encrypted upgrade package file to an off-site cloud storage bucket; upon receiving a decryption call request sent through a secure dedicated line, decrypt and verify the encrypted upgrade package file in the off-site cloud storage bucket to obtain an off-site upgrade package file; encrypt and sign the off-site upgrade package file to generate a target upgrade package file and send the target upgrade package file to the vehicle to be upgraded.

[0048] Currently, basic encryption services are provided for upgrade package transmission, but there is no optimization for specific key management systems and a lack of efficient data synchronization and verification mechanisms, which may result in the security and integrity of data not being fully guaranteed during cross-border transmission.

[0049] This application synchronizes the encrypted upgrade package file obtained after encrypting and signing the upgrade package source file to an off-site cloud storage bucket, and decrypts and verifies the encrypted upgrade package file through a secure dedicated line when a decryption call request is received, and encrypts and signs the decrypted off-site upgrade package file again and transmits it to the vehicle to be upgraded. This greatly enhances the security and confidentiality of data when transmitting upgrade packages between different regions or countries, while also ensuring the consistency and integrity of the data.

[0050] It should be noted that the execution subject of this embodiment may be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or an electronic device capable of realizing the above functions, an upgrade package transmission device, etc. The following takes the upgrade package transmission device as an example to illustrate this embodiment and the following embodiments.

[0051] Based on this, the present application embodiment provides a method for transmitting an upgrade package, referring to Figure 1 , Figure 1 This is a flow chart of the first embodiment of the upgrade package transmission method of the present application.

[0052] In this embodiment, the method described includes steps S10 to S40:

[0053] Step S10, encrypting and signing the upgrade package source file to obtain an encrypted upgrade package file;

[0054] It should be noted that in the process of transmitting data from China to foreign countries, it is necessary to ensure that the encryption and signature of the data are consistent and secure at all stages. This is crucial because data is vulnerable to interception and tampering in international networks. In this embodiment, the security and integrity of the transmitted data are ensured by using the PKI (Public Key Infrastructure) / KMS (Key Management SySTem) system to encrypt and sign the source file. When data is synchronized between cloud storage services in different countries, it is necessary to ensure the security and proper access control of the encrypted files. In this embodiment, by storing encrypted data in the cloud S3 storage bucket and using the data synchronization service to manage the synchronization of data at home and abroad, the security and privacy of the data are effectively guaranteed. After receiving the encrypted data abroad, it must be effectively decrypted and signed to confirm the integrity and consistency of the data. This embodiment designs a process of decrypting and signing by calling the domestic PKI system through a dedicated line, which not only enhances security, but also ensures the accuracy of data processing. After the data package is made through the OTA (Over-the-Air Technology) platform, it needs to be encrypted again and signed by the vehicle-side certificate to ensure the integrity and consistency of the software package. This embodiment includes the steps of decrypting and verifying the signature on the vehicle side according to the built-in SDK. This process ensures that every step from the domestic technical center to the overseas vehicle is safe and reliable. Through the method of this embodiment, not only the security of cross-border data transmission is improved, but also the consistency and reliability of data on a global scale are guaranteed, which is crucial for the expansion of international business and technical compliance. At the same time, it can meet strict international security standards and provide customers with safe and reliable data processing services.

[0055] It is understandable that when receiving an instruction to transfer the upgrade package source file to a foreign country or other region, the upgrade package source file is encrypted through the PKI / KMS system. Each upgrade package source will be assigned a unique encryption key, which is managed by KMS to ensure key security and access control. After encryption is completed, the PKI / KMS system will digitally sign the encrypted upgrade package source file. This step uses PKI technology to generate a signature to verify the integrity of the file and the legitimacy of the source. The final encrypted upgrade package file contains the signature information and the encrypted upgrade package source file.

[0056] Step S20, synchronizing the encrypted upgrade package file to a remote cloud storage bucket;

[0057] It should be noted that the off-site cloud storage bucket can be a foreign cloud s3 storage bucket or a cloud s3 storage bucket in other regions. In this embodiment, the foreign cloud s3 storage bucket or the cloud s3 storage bucket in other regions is the off-site cloud storage bucket. The cloud s3 storage bucket is the basic storage unit in the storage service provided by Amazon Web Services, with the characteristics of serverless architecture, high durability and high availability, scalability, multi-level storage options, security, etc.

[0058] It is understandable that after obtaining the encrypted upgrade package file, the encrypted upgrade package file is synchronized to a remote storage bucket in a different location through a secure data synchronization service.

[0059] In a feasible implementation manner, the step S20 includes: sending the encrypted upgrade package file to a target cloud storage bucket, and synchronizing the encrypted upgrade package file to a remote cloud storage bucket through the target cloud storage bucket.

[0060] It should be noted that the target cloud storage bucket can be a domestic cloud s3 storage bucket, or a cloud s3 storage bucket corresponding to a region different from the remote cloud storage bucket. After encrypting and signing the upgrade package source file, the encrypted upgrade package file is uploaded to the target cloud storage bucket. Through the secure domestic and foreign / regional cloud data synchronization service, the encrypted upgrade package file is synchronized to the remote cloud storage bucket. This data synchronization process uses end-to-end encryption technology to ensure the security of data during transmission. In this embodiment, both the target cloud storage bucket and the remote cloud storage bucket are configured with advanced security policies to prevent unauthorized access.

[0061] Step S30, upon receiving the decryption call request sent through the secure dedicated line, performing a decryption check on the encrypted upgrade package file in the remote cloud storage bucket to obtain the remote upgrade package file;

[0062] It should be noted that when the encrypted upgrade package file arrives at the off-site cloud storage bucket, a decryption call request can be issued to call the domestic PKI / KMS system through a secure dedicated line to decrypt and verify the files in the off-site cloud storage bucket. This process ensures that even if the data is transmitted abroad, it can still be safely processed through the domestic security infrastructure. The decrypted data will undergo integrity and consistency checks to verify that the data has not been tampered with during the transmission process. In this embodiment, the upgrade package file obtained after the decryption check of the encrypted upgrade package file is the off-site upgrade package file. In this embodiment, in order to ensure the high security and low latency of the data transmission process, a dedicated network connection (such as MPLSVPN, SD-WAN and other enterprise-level dedicated lines) is usually used. This connection is independent of the public Internet and provides a higher level of security and bandwidth guarantee to ensure the confidentiality and anti-interference ability of data when it is transmitted between domestic and foreign countries. The above-mentioned dedicated line is a secure dedicated line.

[0063] In a feasible implementation manner, step S30 may further include steps A11 to A14:

[0064] Step A11, upon receiving the decryption call request sent through the secure dedicated line, verifying the decryption call request, and decrypting the encrypted upgrade package file in the remote cloud storage bucket when the verification passes, to obtain a second upgrade package file and a decryption signature;

[0065] It should be noted that when a foreign server or application initiates a request to a domestic PKI / KMS system through a dedicated line, the PKI / KMS system first authenticates the decryption call request. This may include the use of pre-shared keys, certificates, or other authentication mechanisms to ensure that only authorized entities can call the decryption service. When the identity authentication is passed, the foreign end requests the decryption key from the domestic PKI / KMS system, and the PKI / KMS system decrypts the encrypted upgrade package file stored in the off-site cloud storage bucket to obtain the signature information contained in the encrypted upgrade file package and the encrypted upgrade package source file. In this embodiment, the signature information contained in the encrypted upgrade file package obtained after decryption is the decryption signature, and the file obtained after decrypting the encrypted upgrade package source file is the second upgrade package file.

[0066] Step A12, performing hash value calculation on the second upgrade package file to determine a file hash value of the second upgrade package file;

[0067] Step A13, performing a file integrity check according to the file hash value of the second upgrade package file and the decryption signature;

[0068] Step A14, when the file integrity check passes, obtaining a remote upgrade package file according to the second upgrade package file.

[0069] It should be noted that after decryption, the hash value of the second upgrade package file is recalculated to obtain the file hash value of the second upgrade package file, and the file hash value of the second upgrade package file is compared with the hash value of the upgrade package source file contained in the decryption signature to confirm that the data has not been tampered with and the source is reliable, indicating that the file integrity check has passed. At this time, it is indicated that the second upgrade package file has passed the inspection, indicating that the data has remained in its original state during the transmission process and has not been illegally tampered with, and the foreign end can safely use these data for subsequent processing or operation. In this embodiment, after the second upgrade package passes the inspection, the second upgrade package file is used as a remote upgrade package file.

[0070] In this implementation, upon receiving a decryption call request sent through a secure dedicated line, the decryption call request is verified, and when the verification is passed, the encrypted upgrade package file in the remote cloud storage bucket is decrypted to obtain a second upgrade package file and a decryption signature; a hash value is calculated for the second upgrade package file to determine the file hash value of the second upgrade package file; a file integrity check is performed based on the file hash value of the second upgrade package file and the decryption signature; when the file integrity check is passed, the remote upgrade package file is obtained based on the second upgrade package file. In the above manner, the integrity and consistency check of the data is guaranteed to verify that the data has not been tampered with during the transmission process.

[0071] Step S40, encrypt and sign the remote upgrade package file, generate a target upgrade package file and send the target upgrade package file to the vehicle to be upgraded.

[0072] It should be noted that after obtaining the off-site upgrade package file, the PKI / KMS system encrypts the upgrade package generated from the OTA platform. Similarly, the encryption key is managed by KMS to ensure its security. The encrypted software package will be further signed, and the vehicle-side certificate will be used to ensure that the receiving vehicle can verify the identity of the sender. In this embodiment, the off-site upgrade package file after encryption and signature is the target upgrade package file, and the target upgrade package file is sent to the vehicle to be upgraded.

[0073] In a feasible implementation manner, step S40 may further include steps B11 to B13:

[0074] Step B11, encrypting the remote upgrade package file according to the second encryption key to obtain a third upgrade package file;

[0075] Step B12, signing the third upgrade package file according to the second signature key to obtain a target upgrade package;

[0076] Step B13, sending the target upgrade package file to the vehicle to be upgraded, so that the vehicle to be upgraded performs software upgrade according to the target upgrade package file.

[0077] It should be noted that the PKI / KMS system will generate a one-time symmetric encryption key, and use this symmetric encryption key to encrypt the remote upgrade package, ensuring that the data cannot be read even if it is intercepted during transmission. The encrypted remote upgrade package is then encrypted with the symmetric key using the publisher's private key to form a ciphertext, so that only the recipient with the corresponding public key can decrypt the symmetric key and then decrypt the upgrade package. In this embodiment, the symmetric encryption key is the second encryption key, and the encrypted remote upgrade package file is the third upgrade package file.

[0078] It is understandable that the third upgrade package file is digitally signed using the software publisher's private key, and this signing process ensures that the recipient can verify the integrity and source of the data. In this embodiment, the file obtained after the third upgrade package file is digitally signed is the target upgrade package file.

[0079] In this implementation, the remote upgrade package file is encrypted according to the second encryption key to obtain a third upgrade package file; the third upgrade package file is signed according to the second signature key to obtain a target upgrade package; the target upgrade package file is sent to the vehicle to be upgraded, so that the vehicle to be upgraded performs software upgrade according to the target upgrade package file. In the above manner, the security of data transmission can be guaranteed.

[0080] In a feasible implementation, step B15 may also include: sending the target upgrade package file to the vehicle to be upgraded, so that the vehicle to be upgraded decrypts the target upgrade package file according to the target decryption key to obtain a fourth upgrade package file, and authenticates the fourth upgrade package file according to the target vehicle certificate, and when the identity authentication is passed, performs software upgrade according to the fourth upgrade package file.

[0081] It should be noted that after the vehicle to be upgraded receives the target upgrade package file, the SDK (Software Development Kit) of the vehicle to be upgraded uses the preset vehicle certificate to verify the digital signature and confirm the legitimacy of the software source and the data integrity. The vehicle to be upgraded uses its own private key to decrypt the symmetric key ciphertext encrypted by the public key of the software publisher. The decrypted symmetric key is used to decrypt the target upgrade package file to obtain the fourth upgrade package file. After decryption, the vehicle to be upgraded will also perform a hash check on the fourth upgrade package to ensure that the content has not been tampered with. After the identity authentication and integrity verification are passed, the vehicle to be upgraded uses the fourth upgrade package to perform software upgrades. In this embodiment, the private key of the vehicle to be upgraded is the target decryption key.

[0082] This embodiment provides a method for transmitting an upgrade package. This embodiment obtains an encrypted upgrade package file by encrypting and signing the upgrade package source file; synchronizing the encrypted upgrade package file to an off-site cloud storage bucket; upon receiving a decryption call request sent through a secure dedicated line, decrypting and verifying the encrypted upgrade package file in the off-site cloud storage bucket to obtain an off-site upgrade package file; encrypting and signing the off-site upgrade package file to generate a target upgrade package file and sending the target upgrade package file to the vehicle to be upgraded. In the above manner, the encrypted upgrade package file obtained after encrypting and signing the upgrade package source file is synchronized to an off-site cloud storage bucket, and upon receiving a decryption call request, the encrypted upgrade package file is decrypted and verified through a secure dedicated line, and the decrypted off-site upgrade package file is encrypted and signed again and transmitted to the vehicle to be upgraded, which greatly enhances the security and confidentiality of data when transmitting upgrade packages between different regions or countries, while also ensuring the consistency and integrity of data.

[0083] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the above-mentioned embodiment 1 can be referred to the above introduction, and will not be repeated in the following. Figure 2 In step S10, the upgrade package transmission method further includes steps S11 to S13:

[0084] Step S11, upon receiving a transmission instruction for an upgrade package source file, generating a first encryption key for the upgrade package source file;

[0085] It should be noted that when the PKI / KMS system receives the transmission instruction of the upgrade package source file, it will automatically generate a unique symmetric encryption key according to the request. This key is only used to encrypt and decrypt the specific file, ensuring the confidentiality of the data. In this embodiment, the generated symmetric encryption key is the first encryption key.

[0086] It is understandable that the generated first encryption key will be securely stored in KMS. KMS manages the life cycle of the key through strict access control policies and audit logs to ensure that the key is not accessed by unauthorized persons. When a file needs to be encrypted or decrypted, KMS will securely distribute the first encryption key to authorized users or services. This usually involves re-encapsulating the encryption key and encrypting it with the recipient's public key to ensure that only the recipient with the private key can decrypt and obtain the actual encrypted file key.

[0087] Step S12, encrypting the upgrade package source file according to the first encryption key to obtain a first upgrade package file;

[0088] It should be noted that the upgrade package source file is encrypted according to the first encryption key, and this process ensures the confidentiality of the file during transmission and storage. Even if the data is intercepted, the original content cannot be read without the corresponding key. In this embodiment, the encrypted upgrade package source file is the first upgrade package file.

[0089] Step S13: Sign the first upgrade package file according to the first signature key to obtain an encrypted upgrade package file.

[0090] It should be noted that after the file is encrypted, the private key in the PKI will be used to digitally sign the file. The private key here belongs to the software release and must be kept properly. The private key is used to create a signature to ensure the uniqueness and unforgeability of the signature. In this embodiment, the private key here is the first signature, and the first upgrade package file after the digital signature is the encrypted upgrade package file.

[0091] In a feasible implementation manner, in step S13, the upgrade package transmission method further includes steps C11 to C13:

[0092] Step C11, performing hash value calculation on the first upgrade package file to determine the file hash value of the first upgrade package file;

[0093] Step C12, encrypting the file hash value of the first upgrade package file according to the first signature key to obtain file signature information;

[0094] Step C13, obtaining an encrypted upgrade package according to the file signature information and the first upgrade package file.

[0095] It should be noted that, in the process of signing the first upgrade package, the file hash value of the first upgrade package file is calculated, and then the file hash value of the first upgrade package file is encrypted using the first signature key to form file signature information, and the encrypted upgrade package file is obtained through the file signature information and the first upgrade package file. If the hash values ​​match later, it means that the file has not been tampered with, and at the same time confirms that the file comes from the entity holding the corresponding private key, ensuring the integrity of the file and the legitimacy of the source.

[0096] In this implementation, the hash value of the first upgrade package file is calculated to determine the file hash value of the first upgrade package file; the file hash value of the first upgrade package file is encrypted according to the first signature key to obtain file signature information; and the encrypted upgrade package is obtained according to the file signature information and the first upgrade package file. In the above manner, the integrity of the file, the legitimacy of the source, and the security are guaranteed.

[0097] The above are only two feasible implementation methods of step S13 provided in this embodiment, and this embodiment does not specifically limit the specific implementation method of step S13.

[0098] This embodiment generates a first encryption key for the upgrade package source file upon receiving a transmission instruction for the upgrade package source file; encrypts the upgrade package source file according to the first encryption key to obtain a first upgrade package file; and signs the first upgrade package file according to the first signature key to obtain an encrypted upgrade package file. In this way, the integrity of the file, the legitimacy of the source, and the security are guaranteed.

[0099] For example, in order to help understand the implementation process of the upgrade package transmission method obtained by combining this embodiment with the above-mentioned embodiment 1, specifically:

[0100] The transmission method of the upgrade package implemented in this implementation mainly includes the following processes: 1. Data encryption and signature process: 1. Encryption and signature of source files: In the domestic part, the PKI / KMS system is used to encrypt the source files. Each file will be assigned a unique encryption key, which is managed by KMS to ensure the security and access control of the key. After encryption is completed, the system will digitally sign the file. This step uses PKI technology to generate a signature to verify the integrity of the file and the legitimacy of the source. 2. Cloud storage and data synchronization: The encrypted and signed files are uploaded to the domestic cloud S3 storage bucket. These storage buckets are configured with advanced security policies to prevent unauthorized access. Through secure domestic and foreign cloud data synchronization services, these encrypted files are synchronized to foreign S3 storage buckets. This data synchronization process uses end-to-end encryption technology to ensure the security of data during transmission. 2. Data decryption and signature verification process: 1. Foreign decryption and signature verification: When the encrypted file arrives at the foreign S3 storage bucket, the domestic PKI system is called through a dedicated line to decrypt and verify the file. This process ensures that even if the data is transmitted abroad, it can still be safely processed through the domestic security infrastructure. The decrypted data will undergo integrity and consistency checks to verify that the data has not been tampered with during transmission. 3. Software package encryption and issuance process: 1. Encryption and signing of OTA upgrade packages: Use the PKI / KMS system to encrypt the upgrade package generated from the OTA platform. Similarly, the encryption key is securely managed by KMS to ensure its security. The encrypted software package will be further signed, and the vehicle-side certificate will be used to ensure that the receiving vehicle can verify the identity of the sender. 2. Vehicle-side decryption and signature verification: After the vehicle-side device receives the upgrade package, it will use the built-in SDK to decrypt and verify the software package. This step ensures that the upgrade package maintains its integrity and consistency from the domestic technical center to the overseas vehicle. Through the vehicle-side signature verification process, the source and integrity of the upgrade package can be further confirmed to ensure the security of the upgrade process.

[0101] The method of this embodiment brings the following significant beneficial effects through a series of comprehensive encryption, data synchronization and security verification measures: 1. Enhanced data security and confidentiality: Application of advanced encryption technology: By adopting the PKI / KMS system to encrypt and sign data, the present invention can ensure that all transmitted data is in an encrypted state during storage and synchronization, greatly enhancing the confidentiality of the data. Even if the data is intercepted during transmission, the data content cannot be read without the corresponding decryption key, thereby effectively preventing data leakage. Dynamic key management: Using KMS for key management not only improves security, but also increases the flexibility and controllability of operations. The key rotation and instant revocation functions provided by KMS make the data protection mechanism more stringent and have higher adaptability to various security threats. 2. Ensuring data consistency and integrity: Full data integrity verification: Every step from the source to the destination is accompanied by a strict signature verification process, ensuring the consistency and integrity of the data during transmission and processing. By synchronizing encrypted files between domestic and foreign S3 storage buckets and decrypting and verifying signatures at the target location, it can be ensured that the data has not been tampered with throughout the entire transmission link. Structured data processing process: This technical solution provides a reliable operating framework for cross-border data transmission through standardized data encryption and decryption processes. This structured processing not only improves data processing efficiency, but also reduces security risks caused by improper operation. 3. Compliance of cross-border data transmission: Comply with international data transmission regulations: With the increasingly stringent data protection regulations, multinational companies are facing the challenge of processing data safely and legally on a global scale. This embodiment helps enterprises comply with international data protection regulations including GDPR through encrypted and compliant data processing processes, avoiding legal risks and economic losses caused by data leakage or improper processing. 4. Improve business continuity and flexibility: Support a variety of business scenarios: Whether it is cloud data storage, OTA software upgrades, or other data transmission scenarios that require high security, the method of this embodiment can provide strong support. The flexibility and adaptability of this technology enable enterprises to respond quickly to market changes and support new business needs. Reduce operation and maintenance costs: Through integrated encryption and key management solutions, the operation and maintenance burden of enterprises in data security is reduced. Automated data processing processes reduce the need for manual operations, reduce security incidents that may be caused by human errors, and also reduce related operating costs.

[0102] It should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the transmission method of the upgrade package of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.

[0103] This application also provides a transmission device for an upgrade package, please refer to Figure 3 , the transmission device of the upgrade package includes:

[0104] The encryption module 10 is used to encrypt and sign the upgrade package source file to obtain an encrypted upgrade package file;

[0105] A synchronization module 20, used to synchronize the encrypted upgrade package file to a remote cloud storage bucket;

[0106] The decryption module 30 is used to perform a decryption check on the encrypted upgrade package file in the remote cloud storage bucket upon receiving a decryption call request sent through the secure dedicated line to obtain the remote upgrade package file;

[0107] The encryption module 10 is also used to encrypt and sign the remote upgrade package file, generate a target upgrade package file and send the target upgrade package file to the vehicle to be upgraded.

[0108] Optionally, the encryption module 10 is further used for:

[0109] When a transmission instruction for an upgrade package source file is received, a first encryption key for the upgrade package source file is generated; the upgrade package source file is encrypted according to the first encryption key to obtain a first upgrade package file; and the first upgrade package file is signed according to a first signature key to obtain an encrypted upgrade package file.

[0110] Optionally, the encryption module 10 is further used for:

[0111] Perform a hash value calculation on the first upgrade package file to determine the file hash value of the first upgrade package file; encrypt the file hash value of the first upgrade package file according to a first signature key to obtain file signature information; and obtain an encrypted upgrade package according to the file signature information and the first upgrade package file.

[0112] Optionally, the synchronization module 20 is further used for:

[0113] The encrypted upgrade package file is sent to a target cloud storage bucket, and the encrypted upgrade package file is synchronized to a remote cloud storage bucket through the target cloud storage bucket.

[0114] Optionally, the decryption module 30 is further used for:

[0115] When a decryption call request sent through a secure dedicated line is received, the decryption call request is verified, and when the verification passes, the encrypted upgrade package file in the remote cloud storage bucket is decrypted to obtain a second upgrade package file and a decryption signature; a hash value is calculated for the second upgrade package file to determine a file hash value of the second upgrade package file; a file integrity check is performed based on the file hash value of the second upgrade package file and the decryption signature; when the file integrity check passes, the remote upgrade package file is obtained based on the second upgrade package file.

[0116] Optionally, the encryption module 10 is further used for:

[0117] The off-site upgrade package file is encrypted according to the second encryption key to obtain a third upgrade package file; the third upgrade package file is signed according to the second signature key to obtain a target upgrade package; the target upgrade package file is sent to the vehicle to be upgraded, so that the vehicle to be upgraded performs software upgrade according to the target upgrade package file.

[0118] Optionally, the encryption module 10 is further used for:

[0119] Send the target upgrade package file to the vehicle to be upgraded, so that the vehicle to be upgraded decrypts the target upgrade package file according to the target decryption key to obtain a fourth upgrade package file, and authenticates the fourth upgrade package file according to the target vehicle certificate. When the identity authentication is passed, perform software upgrade according to the fourth upgrade package file.

[0120] The upgrade package transmission device provided in the present application adopts the upgrade package transmission method in the above embodiment, which can solve the technical problem in the prior art that the security and integrity of data cannot be fully guaranteed during the cross-border transmission of the upgrade package. Compared with the prior art, the beneficial effects of the upgrade package transmission device provided in the present application are the same as the beneficial effects of the upgrade package transmission method provided in the above embodiment, and the other technical features in the upgrade package transmission device are the same as the features disclosed in the above embodiment method, which will not be repeated here.

[0121] The present application provides an upgrade package transmission device, the upgrade package transmission device comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the upgrade package transmission method in the above-mentioned embodiment one.

[0122] Reference below Figure 4, which shows a schematic diagram of the structure of a transmission device for the upgrade package used to implement the embodiment of the present application. The transmission device of the upgrade package in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 4 The transmission device of the upgrade package shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0123] like Figure 4 As shown, the transmission device of the upgrade package may include a processing device 1001 (such as a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM: Read Only Memory) 1002 or the program loaded from the storage device 1003 to the random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the transmission device of the upgrade package are also stored. The processing device 1001, ROM1002 and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the transmission device of the upgrade package to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows the transmission device of the upgrade package with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or provided instead.

[0124] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0125] The upgrade package transmission device provided by the present application adopts the upgrade package transmission method in the above embodiment, which can solve the technical problem in the prior art that the security and integrity of data cannot be fully guaranteed during the cross-border transmission of the upgrade package. Compared with the prior art, the beneficial effects of the upgrade package transmission device provided by the present application are the same as the beneficial effects of the upgrade package transmission method provided by the above embodiment, and the other technical features of the upgrade package transmission device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0126] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0127] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0128] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the upgrade package transmission method in the above-mentioned embodiment.

[0129] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0130] The computer-readable storage medium may be included in the transmission device of the upgrade package; or may exist independently without being installed in the transmission device of the upgrade package.

[0131] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the transmission device of the upgrade package, the transmission device of the upgrade package can transmit the upgrade package.

[0132] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0133] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0134] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0135] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned upgrade package transmission method, and can solve the technical problem in the prior art that the security and integrity of data cannot be fully guaranteed during the cross-border transmission of the upgrade package. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the upgrade package transmission method provided by the above-mentioned embodiment, and will not be repeated here.

[0136] The present application also provides a computer program product, including a computer program, which implements the steps of the upgrade package transmission method as described above when the computer program is executed by a processor.

[0137] The computer program product provided by the present application can solve the technical problem in the prior art that the security and integrity of data cannot be fully guaranteed during the cross-border transmission of the upgrade package. Compared with the prior art, the beneficial effects of the computer program product provided by the present application are the same as the beneficial effects of the upgrade package transmission method provided in the above embodiment, which will not be described in detail here.

[0138] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A method for transmitting an upgrade package, characterized in that: The upgrade package transmission method includes: Encrypt and sign the upgrade package source file to obtain the encrypted upgrade package file; Synchronize the encrypted upgrade package file to a remote cloud storage bucket; Upon receiving the decryption call request sent through the secure dedicated line, decrypt and verify the encrypted upgrade package file in the remote cloud storage bucket to obtain the remote upgrade package file; The off-site upgrade package file is encrypted and signed, a target upgrade package file is generated and sent to the vehicle end to be upgraded.

2. The method according to claim 1, characterized in that The step of encrypting and signing the upgrade package source file to obtain the encrypted upgrade package file includes: Upon receiving a transmission instruction for an upgrade package source file, generating a first encryption key for the upgrade package source file; Encrypt the upgrade package source file according to the first encryption key to obtain a first upgrade package file; The first upgrade package file is signed according to the first signature key to obtain an encrypted upgrade package file.

3. The method according to claim 2, characterized in that The step of signing the first upgrade package file according to the signature key to obtain an encrypted upgrade package file includes: Performing hash value calculation on the first upgrade package file to determine a file hash value of the first upgrade package file; Encrypting the file hash value of the first upgrade package file according to the first signature key to obtain file signature information; An encrypted upgrade package is obtained according to the file signature information and the first upgrade package file.

4. The method according to claim 1, characterized in that The step of synchronizing the encrypted upgrade package file to a remote cloud storage bucket includes: The encrypted upgrade package file is sent to a target cloud storage bucket, and the encrypted upgrade package file is synchronized to a remote cloud storage bucket through the target cloud storage bucket.

5. The method according to claim 1, characterized in that When receiving the decryption call request sent through the secure dedicated line, the encrypted upgrade package file in the remote cloud storage bucket is decrypted and verified to obtain the remote upgrade package file, including: When receiving a decryption call request sent through a secure dedicated line, verifying the decryption call request, and decrypting the encrypted upgrade package file in the remote cloud storage bucket when the verification passes, to obtain a second upgrade package file and a decryption signature; Performing hash value calculation on the second upgrade package file to determine a file hash value of the second upgrade package file; Performing a file integrity check according to the file hash value of the second upgrade package file and the decryption signature; When the file integrity check passes, the remote upgrade package file is obtained according to the second upgrade package file.

6. The method according to claim 1, characterized in that The step of encrypting and signing the remote upgrade package file, generating a target upgrade package file, and sending the target upgrade package file to the vehicle to be upgraded includes: Encrypt the remote upgrade package file according to the second encryption key to obtain a third upgrade package file; Sign the third upgrade package file according to the second signature key to obtain a target upgrade package; The target upgrade package file is sent to the vehicle end to be upgraded, so that the vehicle end to be upgraded performs software upgrade according to the target upgrade package file.

7. The method according to claim 6, characterized in that The sending of the target upgrade package file to the vehicle to be upgraded so that the vehicle to be upgraded performs software upgrade according to the target upgrade package file includes: Send the target upgrade package file to the vehicle to be upgraded, so that the vehicle to be upgraded decrypts the target upgrade package file according to the target decryption key to obtain a fourth upgrade package file, and authenticates the fourth upgrade package file according to the target vehicle certificate. When the identity authentication is passed, perform software upgrade according to the fourth upgrade package file.

8. A transmission device for an upgrade package, characterized in that: The transmission device of the upgrade package includes: The encryption module is used to encrypt and sign the upgrade package source file to obtain the encrypted upgrade package file; A synchronization module, used to synchronize the encrypted upgrade package file to a remote cloud storage bucket; A decryption module, configured to, upon receiving a decryption call request sent through a secure dedicated line, perform a decryption check on the encrypted upgrade package file in the remote cloud storage bucket to obtain a remote upgrade package file; The encryption module is also used to encrypt and sign the remote upgrade package file, generate a target upgrade package file and send the target upgrade package file to the vehicle to be upgraded.

9. A transmission device for an upgrade package, characterized in that: The upgrade package transmission device includes: a memory, a processor, and an upgrade package transmission program stored in the memory and executable on the processor, wherein the upgrade package transmission program is configured to implement the upgrade package transmission method according to any one of claims 1 to 7.

10. A storage medium, characterized in that: The storage medium stores an upgrade package transmission program, and when the upgrade package transmission program is executed by the processor, the upgrade package transmission method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • New-energy automobile control software remote upgrading method

    CN108762781A

  • OTA upgrading method and device

    CN112913189A

  • Vehicle system upgrading method, OTA upgrading file cloud processing method and electronic equipment

    CN117041048A

  • Upgrading method and device of target electronic control unit, equipment and storage medium

    CN117850846A

  • Cross-cloud platform migration system

    CN117850967A