Mirror image file transmission method and device and storage medium

The image file is encrypted with the secret key generated by the quantum secure communication system, which solves the problem of low security of asymmetric encryption algorithms in the existing technology, achieves high security of image file transmission, and adapts to the threat of quantum computers.

CN118694525AActive Publication Date: 2024-09-24CHINA UNITED NETWORK COMM GRP CO LTD

Patent Information

Application Number
CN202410903477.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-05
Publication Date
2024-09-24
Estimated Expiration
2044-07-05

AI Technical Summary

Technical Problem

The existing asymmetric encryption algorithm based on public keys has low security during the image file transmission process, especially after the emergence of quantum computers, it is easy to be cracked, resulting in the encryption of image files being not secure enough.

Method used

The secret key generated by the quantum secure communication system is used for encryption, the image file is encrypted through a symmetric encryption algorithm, and the encrypted secret key is encrypted again to generate encrypted data for transmission to ensure high security of the image file.

Benefits of technology

Encryption with the secret key generated by the quantum secure communication system significantly improves the security of the image file, avoids the risk of quantum computers cracking the asymmetric encryption algorithm, and ensures the security of data transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118694525A
    Figure CN118694525A
Patent Text Reader

Abstract

The invention provides a mirror image file transmission method and device and a storage medium, relates to the technical field of information security, and can solve the problem of low security when a mirror image file is encrypted through an asymmetric encryption algorithm based on a public key. The method comprises the following steps: a first device sends a first instruction to a quantum secret communication system to request a first secret key; the second device also sends a second instruction to the quantum secure communication system requesting the first key. The first device generates, based on the requested first key, encrypted data including a mirror image file encrypted based on the second key and the second key encrypted based on the first key, and sends the encrypted data. And the second device obtains the encrypted data, decrypts the encrypted data based on the requested first secret key, and determines the mirror image file. According to the invention, the encryption security of the mirror image file can be greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of information security technology, and in particular to a mirror file transmission method, device and storage medium. Background Art

[0002] With the development of cloud computing, container technology has become the preferred way for enterprises to package, deploy and manage cloud applications. Container technology can package the files that applications depend on into image files.

[0003] In the transmission process of the image file, in order to ensure the security of the image file, the image storage encryption technology is usually used to encrypt the image file to ensure the security of the image file during the transmission process.

[0004] At present, image storage encryption technology usually uses asymmetric encryption algorithms based on public keys to encrypt image files. It takes a lot of time to crack asymmetric encryption algorithms, so the security of asymmetric encryption algorithms is guaranteed. However, quantum computers can greatly reduce the time required to crack asymmetric encryption algorithms, which greatly reduces the security of current asymmetric encryption algorithms. Summary of the invention

[0005] The present application provides a mirror file transmission method, device and storage medium, which solves the problem of low security when encrypting mirror files through an asymmetric encryption algorithm based on a public key, and can greatly improve the security of mirror file encryption.

[0006] In order to achieve the above objectives, this application adopts the following technical solutions:

[0007] In a first aspect, the present application provides a mirror file transmission method, which is applied to a first device, and the method includes: sending a first instruction to a quantum secure communication system; the first instruction is used to request a first key; the first key is a key generated based on quantum cryptography; receiving the first key from the quantum secure communication system; based on the first key, generating encrypted data; the encrypted data includes a mirror file encrypted based on a second key, and a second key encrypted based on the first key; sending the encrypted data.

[0008] In combination with the above-mentioned first aspect, in a possible implementation method, the method also includes: generating a second key; the second key is a randomly generated key; encrypting the image file based on the second key and the first encryption algorithm; encrypting the second key based on the first key and the second encryption algorithm; determining the encrypted data based on the encrypted image file and the encrypted second key.

[0009] In combination with the above first aspect, in a possible implementation manner, the method further includes: uploading the encrypted data to an image repository.

[0010] In combination with the above-mentioned first aspect, in a possible implementation manner, the first encryption algorithm is a symmetric encryption algorithm; the second encryption algorithm is a symmetric encryption algorithm.

[0011] In combination with the above first aspect, in a possible implementation manner, the first key obtained by the first device is the same as the first key obtained by the second device; the first device and the second device are two devices that transmit the image file.

[0012] In the second aspect, the present application provides a mirror file transmission method, which is applied to a second device, and the method includes: sending a second instruction to a quantum secure communication system; the second instruction is used to request a first key; the first key is a key generated based on quantum cryptography; receiving the first key from the quantum secure communication system; obtaining encrypted data; the encrypted data includes a mirror file encrypted based on the second key, and a second key encrypted based on the first key; based on the first key, decrypting the encrypted data to determine the mirror file.

[0013] In combination with the above-mentioned second aspect, in a possible implementation manner, the method further includes: decrypting the second key encrypted based on the first key based on the first key; decrypting the image file encrypted based on the second key based on the decrypted second key to determine the image file.

[0014] In combination with the second aspect above, in a possible implementation manner, the method further includes: obtaining encrypted data from an image repository.

[0015] In a third aspect, the present application provides a communication system, which includes: a first device, a second device and a quantum secure communication system; the first device is configured to: send a first instruction to the quantum secure communication system; the first instruction is used to request a first key; the first key is a key generated based on quantum cryptography; the second device is configured to: send a second instruction to the quantum secure communication system; the second instruction is used to request the first key; the quantum secure communication system is configured to: send the first key based on the first instruction; send the first key based on the second instruction; the first device is also configured to: receive the first key from the quantum secure communication system; generate encrypted data based on the first key; send the encrypted data; the encrypted data includes a mirror file encrypted based on the second key, and a second key encrypted based on the first key; the second device is also configured to: receive the first key from the quantum secure communication system; obtain the encrypted data; decrypt the encrypted data based on the first key to determine the mirror file.

[0016] In combination with the above-mentioned third aspect, in a possible implementation method, a quantum secure communication system includes a first quantum secure communication device and a first quantum key distribution node; the first device is specifically configured to: send a first instruction to the first quantum secure communication device; the first quantum secure communication device is configured to: send a first instruction to the first quantum key distribution node; the first quantum key distribution node is configured to: send a first key based on the first instruction; the first quantum secure communication device is also configured to: receive the first key and send the first key.

[0017] In combination with the above-mentioned third aspect, in a possible implementation method, the quantum secure communication system also includes a second quantum secure communication device and a second quantum key distribution node; the second device is specifically configured to: send a first instruction to the second quantum secure communication device; the second quantum secure communication device is configured to: send a second instruction to the second quantum key distribution node; the second quantum key distribution node is configured to: send a first key based on the second instruction; the first key in the second quantum key distribution node is shared with the first key of the first quantum key distribution node; the second quantum secure communication device is also configured to: receive the first key and send the first key.

[0018] In a fourth aspect, the present application provides an image file transmission device, which includes: a communication unit and a processing unit; the communication unit is used to send a first instruction to a quantum secure communication system; the first instruction is used to request a first key; the first key is a key generated based on quantum cryptography; the communication unit is also used to receive the first key from the quantum secure communication system; the processing unit is used to generate encrypted data based on the first key; the encrypted data includes an image file encrypted based on a second key, and a second key encrypted based on the first key; the communication unit is also used to send encrypted data.

[0019] In combination with the fourth aspect above, in a possible implementation method, the processing unit is specifically used to: generate a second key; the second key is a randomly generated key; encrypt the image file based on the second key and the first encryption algorithm; encrypt the second key based on the first key and the second encryption algorithm; determine the encrypted data based on the encrypted image file and the encrypted second key.

[0020] In combination with the fourth aspect, in a possible implementation manner, the communication unit is specifically used to: upload the encrypted data to the image repository.

[0021] In combination with the fourth aspect above, in a possible implementation, the first encryption algorithm is a symmetric encryption algorithm; the second encryption algorithm is a symmetric encryption algorithm.

[0022] In combination with the fourth aspect, in a possible implementation manner, the first key obtained by the first device is the same as the first key obtained by the second device; the first device and the second device are two devices that transmit the image file.

[0023] In a fifth aspect, the present application provides a mirror file transmission device, which includes: a communication unit and a processing unit; the communication unit is used to send a second instruction to a quantum secure communication system; the second instruction is used to request a first key; the first key is a key generated based on quantum cryptography; the communication unit is also used to receive the first key from the quantum secure communication system; the communication unit is also used to obtain encrypted data; the encrypted data includes a mirror file encrypted based on the second key, and a second key encrypted based on the first key; the processing unit is used to decrypt the encrypted data based on the first key to determine the mirror file.

[0024] In combination with the fifth aspect, in a possible implementation, the processing unit is specifically used to: decrypt the second key encrypted based on the first key based on the first key; decrypt the image file encrypted based on the second key based on the decrypted second key to determine the image file.

[0025] In combination with the fifth aspect, in a possible implementation manner, the communication unit is specifically used to: obtain encrypted data from the image repository.

[0026] In a sixth aspect, the present application provides an image file transmission device, comprising: a processor and a communication interface; the communication interface and the processor are coupled, and the processor is used to run a computer program or instruction to implement the image file transmission method described in the first aspect, any possible implementation of the first aspect, the second aspect, and any possible implementation of the second aspect.

[0027] In the seventh aspect, the present application provides a computer-readable storage medium, which stores instructions. When the instructions are executed on a terminal, the terminal executes the image file transmission method described in the first aspect, any possible implementation of the first aspect, the second aspect, and any possible implementation of the second aspect.

[0028] In an eighth aspect, the present application provides a computer program product comprising instructions. When the computer program product is run on an image file transmission device, the image file transmission device performs the image file transmission method described in the first aspect, any possible implementation of the first aspect, the second aspect, and any possible implementation of the second aspect.

[0029] In a ninth aspect, the present application provides a chip, the chip comprising a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run a computer program or instructions to implement the image file transmission method described in the first aspect, any possible implementation of the first aspect, the second aspect, and any possible implementation of the second aspect.

[0030] Specifically, the chip provided in the present application also includes a memory for storing computer programs or instructions.

[0031] It should be noted that the above computer instructions may be stored in whole or in part on a computer-readable storage medium, wherein the computer-readable storage medium may be packaged together with the processor of the device, or may be packaged separately from the processor of the device, which is not limited in this application.

[0032] The descriptions of the second to ninth aspects of the present application can refer to the detailed description of the first aspect; and the beneficial effects of the descriptions of the second to ninth aspects can refer to the beneficial effect analysis of the first aspect, which will not be repeated here.

[0033] In this application, the name of the above-mentioned image file transmission device does not limit the device or functional module itself. In actual implementation, these devices or functional modules may appear with other names. As long as the functions of each device or functional module are similar to those of this application, they fall within the scope of the claims of this application and their equivalent technologies.

[0034] These and other aspects of the present application will become more apparent from the following description.

[0035] The above scheme brings at least the following beneficial effects: Based on the above technical scheme, in the image file transmission method provided by the present application, the first device sends a first instruction to the quantum secure communication system to request a first secret key. The second device also sends a second instruction to the quantum secure communication system to request the first secret key. Based on the requested first secret key, the first device generates a mirror file encrypted based on the second secret key, and encrypted data of the second secret key encrypted based on the first secret key, and sends the encrypted data. The second device obtains the encrypted data, and decrypts the encrypted data based on the requested first secret key to determine the image file. Since the first secret key is a key generated based on quantum cryptography, based on the true random characteristics of quantum cryptography, the security of encryption can be fundamentally guaranteed. Compared with the current asymmetric encryption algorithm based on the public key, the time required to crack the asymmetric encryption algorithm will be reduced, resulting in the problem of low security. The above technical scheme can greatly improve the security of image file encryption. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] Figure 1 A schematic diagram of a mirror image composition provided in an embodiment of the present application;

[0037] Figure 2 A schematic diagram of determining a mirror model provided in an embodiment of the present application;

[0038] Figure 3 A schematic diagram of another method for determining a mirror model provided in an embodiment of the present application;

[0039] Figure 4 A schematic diagram of the architecture of a quantum secure communication system provided in an embodiment of the present application;

[0040] Figure 5 A schematic diagram of image file transmission provided in an embodiment of the present application;

[0041] Figure 6 A schematic diagram of the architecture of a communication system provided in an embodiment of the present application;

[0042] Figure 7 A schematic diagram of the architecture of another communication system provided in an embodiment of the present application;

[0043] Figure 8 A schematic diagram of the hardware structure of a mirror file transmission device provided in an embodiment of the present application;

[0044] Fig. 9 A flowchart of a method for transmitting an image file provided in an embodiment of the present application;

[0045] Fig.10 A schematic diagram of a mirror file transmission method provided in an embodiment of the present application;

[0046] Fig.11 A flowchart of another image file transmission method provided in an embodiment of the present application;

[0047] Fig.12 A schematic diagram of the structure of a mirror file transmission device provided in an embodiment of the present application;

[0048] Fig.13 A schematic diagram of the structure of another image file transmission device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0049] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0050] The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0051] The terms "first" and "second" and the like in the specification and drawings of this application are used to distinguish different objects, or to distinguish different processing of the same object, rather than to describe a specific order of objects.

[0052] In addition, the terms "including" and "having" and any variations thereof mentioned in the description of the present application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but may optionally include other steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.

[0053] It should be noted that, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0054] In the description of the present application, unless otherwise specified, “plurality” means two or more.

[0055] The following explains the terms involved in the embodiments of the present application to facilitate the reader's understanding.

[0056] (1) Open Container Initiative (OCI) image specifications

[0057] Images can be generated according to different specifications. Common image specifications include the open source application container engine (Docker) image specification and the OCI image specification. Docker has developed the image specification v2 and implemented this specification in the 1.10 version of the application container engine (Docker 1.10). Image specification v2 has become the de facto standard. The OCI image specification 1.0 released by OCI is essentially based on the image specification v2, so the two have compatible or similar features in most cases. In addition to developing image specifications, OCI has also developed runtime specifications (runtime spec) and image distribution specifications (distribution-spec). The establishment of the OCI image specification is of great significance in promoting the openness and cooperation, standardization and interoperability of container images.

[0058] The OCI image specification states that an image consists of an image index, a manifest, a configuration, and an image layer file. The following describes each part of the image in detail:

[0059] Image index: The format is application / vnd.oci.image.index.v1+json. The image index is optional. It specifies a set of related images that support different architecture platforms (such as arm processors and amd processors, linux architecture systems and windows architecture systems), applicable to one or more platforms. Users do not need to specify the operating system and platform, and can completely rely on the client to obtain the correct version of the image.

[0060] Manifest: The format is application / vnd.oci.image.manifest.v1+json. The manifest is a description file in JSON format that lists the configuration and layer files of the image. The image manifest specification has three main goals. The first goal is image content addressing, hashing the image content to generate a unique identity document (ID), the second goal is to allow multi-architecture images, and the third goal is to convert to the OCI runtime specification.

[0061] Configuration: The format is application / vnd.oci.image.config.v1+json. The configuration is a description file in JSON format, which describes some basic information about the container image, such as creation date, author, etc. Locally, the summary of the configuration is used as the identifier of the local image.

[0062] Layer files: The formats are application / vnd.oci.image.layer.v1.tar (tar format), application / vnd.oci.image.layer.v1.tar+gzip (gzip compression), and application / vnd.oci.image.Layer.v1.tar+zstd (zstd compression). Layer files are the contents of the image, that is, the files contained in the image, generally in binary data file format. An image can have one or more layer files, and these image layers together constitute the image file.

[0063] The image index is the entry for the image reference file, such as Figure 1 As shown, the manifests of different platforms can be found through the guidance of the image index file, and the configuration and layer files of the image can be guided in the manifest of the corresponding platform.

[0064] (2) Container Image

[0065] The container image can be built by building a text file (dockerfile) of the image to build the image of the Linux architecture system, and the container image can be saved locally using a tool for moving images (skopeo).

[0066] The contents of the dockerfile are as follows:

[0067] FROM scratch #Create based on an empty image

[0068] MAINTAINER Tintin #Mirror maker information

[0069] ADD. / rootfs-CentOS7.9.tar.gz / #Add compressed files to the root directory

[0070] Based on my-centos7.9:v0, build my-centos7.9:v1 through the following Dockerfile file:

[0071] FROM my-centos7.9:v0 #Created based on my-centos7.9:v0

[0072] MAINTAINER Tintin-1 #Image maker information

[0073] RUN echo "Hello Tintin"> / root / tintin.txt#Create layer file 2tintin.txt in the root directory

[0074] like Figure 2 As shown, the process of determining the image model of my-centos7.9:v0 may include: first determining the index (index.json), then determining the corresponding manifest (manifest), and further determining the configuration and layer files from the manifest.

[0075] Among them, the name of the manifest can be: 3de3dac6627775e0ee21a735c289b3d2, b2714792285caf93f06044999178fb3. The name of the configuration can be: 1015af5913b2f4e8236a4a8f8c3d9cf178, 5d7de05327f7358d26bfb1cd37af. The name of the layer file can be: 211aef66f65333821c90a1f7ab4cc, 552233351ff4bd4da23acfed46e613a096f.

[0076] like Figure 3 As shown, the process of determining the image model of my-centos7.9:v1 may include: based on the image model of my-centos7.9:v0, based on the generation process of layer file 1, generating layer file 2 parallel to layer file 1.

[0077] The name of the layer file 2 may be 876be2c729783dc484d672e6a3cbb9dfc70183ff339844a219a6a99a158c23ec.

[0078] Comparing the image model of my-centos7.9:v0 with the image model of my-centos7.9:v1, we can find that the content and name of layer file 1 have not changed. Decompress the newly added layer file 2 to get the content of layer file 2, that is, root / tintin.txt.

[0079] (3) Quantum Key Distribution Technology

[0080] Quantum secure communication based on quantum key distribution (QKD) can cope with the security challenges brought by quantum computing and has now entered the stage of industrial-scale application. QKD is a quantum communication technology that has been tested in theory and practice, is very mature and practical. It can achieve secure distribution of secret keys by transmitting quantum states between the communicating parties and has been proven to have "information-theoretic security" (also known as "unconditional security"). As long as the basic principles of quantum physics are not violated, no matter how powerful the attacker's computing power (including quantum computers) is, it cannot affect the security of QKD.

[0081] like Figure 4 As shown in the figure, the quantum secure communication system consists of two parts: the QKD network layer and the user network layer. In the QKD network layer, multiple QKD nodes are connected through QKD links to form a QKD network. QKD links are usually built on the basis of public optical fiber networks or satellite links to provide the required quantum channels and classical channels for long-distance negotiation of quantum keys. The quantum channel transmits optical quantum signals that carry quantum state information, and the classical channel transmits classical signals related to post-key processing operations such as basis vector comparison and error correction. QKD nodes obtain end-to-end symmetric keys through QKD key negotiation and trusted key relay processing and perform key management throughout the life cycle, meeting the needs of upper-layer users for confidential communication in large-scale environments such as wide area and metropolitan areas.

[0082] like Figure 4 As shown in the figure, when data information is securely transmitted, the quantum secure communication device A at the user network layer accesses the corresponding QKD service node (i.e., QKD node A) through the access key (Ak) interface, and the quantum secure communication device B accesses the corresponding QKD service node (i.e., QKD node B) through the Ak interface to request the session key Ks required for communication with the other end. Afterwards, the quantum secure communication device A and the quantum secure communication device B can verify the authenticity of the identity of the other end user based on the session key Ks, and encrypt and protect the source plaintext data sent by the user, ensuring the communication security of user information on the public channel of the traditional network.

[0083] With the development of cloud computing, cloud native technology has entered a period of rapid development. Today, in the digital business environment of various industries, cloud native technologies represented by containers, immutable infrastructure, microservices, service mesh, and declarative application programming interface (API) are widely adopted. Among them, container technology has become the preferred way for enterprises to package, deploy, and manage cloud applications. Container technology can package and encapsulate the files that applications depend on into image files. With the help of container technology, the startup, deployment, and operation of applications are becoming more and more convenient.

[0084] Container technology specifically packages the engine, system libraries, configuration files, and workloads running on the container required for the application to run into an image file. The key technologies used in the design of image files include layered storage, copy-on-write, content addressing, and joint mounting. The above key technologies make container technology have the advantages of fast download and easy deployment, including the advantages of convenient portability, lightweight, and high stability.

[0085] The advantages of convenient transplantation, lightweight and high stability are explained below.

[0086] (1) Convenient transplantation

[0087] Container technology packages and encapsulates all the files that the application depends on to run. Therefore, the image file has the feature of being easily transplanted in the computing environment, reducing the complex environment adaptation process.

[0088] (2) Lightweight

[0089] Since image files are stored in layers, different image layers can share the underlying image layer files. The copy-on-write and joint mount technology of image files allows image files to be changed by only modifying the top image layer, thereby saving storage space and quickly copying container image files.

[0090] (3) High stability

[0091] Image files are content-addressed, which avoids conflicts among image files and achieves mutual isolation between different images. At the same time, after the image file is built, it becomes a read-only file and is part of the immutable infrastructure, ensuring the stability of the image.

[0092] The security risks of image files can be divided into image security risks, image management risks and image repository risks.

[0093] Among them, in view of the security risks of the image itself, the leakage of sensitive information in the image is getting worse. At present, researchers have found tens of thousands of exposed sensitive data and source code images in the public image warehouse (docker hub). After analyzing the images of some source code, multiple valid private keys and API keys were found in the images of some source code. The leaked sensitive data may lead to man-in-the-middle attacks, identity forgery and other consequences.

[0094] In the process of image file transmission, in order to ensure the security of image files, image storage encryption technology is usually used to encrypt container image files. To ensure the security of image files during transmission. Image storage encryption technology is an important means to protect the security of users' private data. Encrypting image files can ensure the confidentiality of their data. From the construction stage to the operation stage, the data of the image file is confidential. Even if the release process is damaged, the content of the image file remains confidential. This mechanism can be used to protect transaction ciphertext or other confidential materials. In addition, when image encryption is combined with key management, authorization and credential distribution, it can be required that the image can only be run on a specific platform to achieve safe and controllable image distribution authorization.

[0095] At present, image storage encryption technology usually uses asymmetric encryption algorithms based on public keys to encrypt image files. With the development of quantum technology, the security of asymmetric encryption algorithms based on public keys faces huge challenges. Asymmetric encryption algorithms are based on the security of large integer factorization. That is, on a classical computer, cracking an asymmetric encryption algorithm, that is, decomposing the product of two large prime numbers, is very time-consuming, so it is extremely difficult to crack, which ensures the security of the asymmetric encryption algorithm. However, the Shor algorithm in the quantum algorithm can solve this problem on a quantum computer with polynomial time complexity. Once a sufficiently large and stable quantum computer is put into practical use, the time required to crack an asymmetric encryption algorithm can be greatly reduced. Asymmetric encryption algorithms based on public keys and other cryptographic systems that rely on the problem of large number factorization will no longer be secure, resulting in a significant reduction in the security of current asymmetric encryption algorithms.

[0096] Moreover, the encryption process of the current scheme is cumbersome. The keys used in the process include private key, public key, content encryption key (CEK) and symmetric encryption key (LEK). The encryption algorithms used include AES-CTR algorithm, RSA-OAEP algorithm and AES-GCM algorithm. The encryption process is relatively cumbersome. In addition, the key information is stored in the image manifest file, which poses a security risk. Hackers can attack the encrypted image based on the stored key information.

[0097] The following is an introduction to the transmission process of an image file based on an asymmetric encryption algorithm with a public key.

[0098] The container image contains index, manifest, configuration and layer files, among which the image layer files occupy the largest amount of data. In order to improve the efficiency of image encryption without reducing the security of image encryption, a symmetric encryption algorithm is used to encrypt the image layer data, and an asymmetric encryption algorithm is used to encrypt the above symmetric encryption key. The encrypted key is then saved in the manifest file and uploaded to the image repository together with the image layer file.

[0099] like Figure 5 As shown, device A creates a public key and a private key for asymmetric encryption. Figure 5In the process, device B transmits the encrypted image to device A. Device B needs to obtain the public key of device A and randomly generate a 256-bit symmetric encryption key (LEK), that is, use the symmetric encryption algorithm (AES CTR) to encrypt the image layer to obtain the encrypted image layer file. Then, device B uses the public key of device A and an asymmetric encryption algorithm (RSA-OAEP) to encrypt the LEK to obtain the encrypted LEK, that is, (Wrapped Key). Device B stores the encrypted LEK in the Manifest file. Device B uploads the encrypted image data (including the Manifest file and the encrypted image layer file) to the image repository. Device A downloads the encrypted image data from the image repository, uses the private key to decrypt the Manifest file to obtain the LEK, and then uses the LEK to decrypt the encrypted image layer file to obtain the image layer file.

[0100] In view of this, the image file transmission method provided by the present application is that the first device sends a first instruction to the quantum secure communication system to request a first secret key. The second device also sends a second instruction to the quantum secure communication system to request the first secret key. Based on the requested first secret key, the first device generates a mirror file encrypted based on the second secret key, and encrypted data of the second secret key encrypted based on the first secret key, and sends the encrypted data. The second device obtains the encrypted data, and decrypts the encrypted data based on the requested first secret key to determine the image file. Since the first secret key is a key generated based on quantum cryptography, based on the true random characteristics of quantum cryptography, the security of encryption can be fundamentally guaranteed. Compared with the current asymmetric encryption algorithm based on the public key, the time required to crack the asymmetric encryption algorithm will be reduced, resulting in the problem of low security. The above technical solution can greatly improve the security of image file encryption.

[0101] The implementation of the embodiments of the present application will be described in detail below in conjunction with the accompanying drawings.

[0102] Figure 6 The following is a schematic diagram of the architecture of a communication system provided in an embodiment of the present application. Figure 6 As shown, the communication system includes: a first device 601, a second device 602 and a quantum secure communication system 603.

[0103] The first device 601 and the quantum secure communication system 603 are connected via a communication link. The second device 602 and the quantum secure communication system 603 are connected via a communication link. The communication link may be a wired communication link or a wireless communication link, which is not limited in this application.

[0104] Exemplarily, the first device 601 and the second device 602 involved in this application example can be a terminal or a server. Of course, the above is only an exemplary description of the first device 601 and the second device 602. The first device 601 and the second device 602 can also be other devices in the future, and this application embodiment does not impose any limitation on this.

[0105] Optionally, the first device and the second device are two devices for transmitting the image file, and the first key obtained by the first device is the same as the first key obtained by the second device.

[0106] In a possible implementation, the terminal in the embodiment of the present application may also be an entity on the user side for receiving a signal, or sending a signal, or receiving and sending a signal. The terminal is used to provide one or more of a voice service and a data connectivity service to the user. The terminal may also be referred to as a user equipment (UE), a terminal, an access terminal, a user unit, a user station, a mobile station, a remote station, a remote terminal, a mobile device, a user terminal, a wireless communication device, a user agent or a user device. The terminal 101 may be a vehicle to everything (V2X) device, for example, a smart car (smart car or intelligent car), a digital car (digital car), an unmanned car (unmanned car or driverless car or pilotless car or automobile), an automatic car (self-driving car or autonomous car), a pure electric vehicle (pure EV or Battery EV), a hybrid electric vehicle (hybrid electric vehicle, HEV), a range extended EV (range extended EV, REEV), a plug-in hybrid electric vehicle (plug-in HEV, PHEV), a new energy vehicle (new energy vehicle), etc. The terminal may also be a device to device (D2D) device, such as an electricity meter, a water meter, etc.

[0107] The terminal may also be a mobile station (MS), a subscriber unit, a drone, an Internet of Things (IoT) device, a station (ST) in a WLAN, a cellular phone, a smart phone, a cordless phone, a wireless data card, a tablet computer, a session initiation protocol (SIP) phone, a wireless local loop (WLL) station, a personal digital assistant (PDA) device, a laptop computer, a machine type communication (MTC) terminal, a handheld device with wireless communication function, a computing device or other processing device connected to a wireless modem, a vehicle-mounted device, a wearable device (also referred to as a wearable smart device). The terminal may also be a terminal device in a next-generation communication system, for example, a terminal device in a 5G system or a terminal device in a future evolved PLMN, a terminal device in an NR system, etc.

[0108] The first device 601 is described in detail below.

[0109] In a possible implementation, the first device 601 is used to send a first instruction to the quantum secure communication system 603 to request a first key. The first device 601 receives the first key from the quantum secure communication system 603, and generates encrypted data based on the first key, and then sends the encrypted data.

[0110] Optionally, the first device 601 is also used to generate a second key (e.g., a 256-bit data encryption key L). The first device 601 encrypts the image file using the second key, and encrypts the second key using the first key. Then, the image file encrypted based on the second key and the second key encrypted based on the first key are packaged and encapsulated as encrypted data.

[0111] The second device 602 is described in detail below.

[0112] In a possible implementation, the second device 602 is used to send a second instruction to the quantum secure communication system 603 to request the first key. The second device 602 receives the first key from the quantum secure communication system and obtains the encrypted data. The second device 602 decrypts the encrypted data based on the first key to determine the image file.

[0113] The following is a detailed introduction to the quantum secure communication system 603.

[0114] In a possible implementation, the quantum secure communication system 603 is used to send the first secret key based on the first instruction. The quantum secure communication system 603 is also used to send the first secret key based on the second instruction.

[0115] Optional, such as Figure 7 As shown, the quantum secure communication system 603 includes a first quantum secure communication device 6031 and a first quantum key distribution node 6032.

[0116] The first quantum secure communication device 6031 is connected to the first device 601 via a communication link. The first quantum secure communication device 6031 is connected to the first quantum key distribution node 6032 via a communication link.

[0117] In a possible implementation, the first quantum secure communication device 6031 receives the first instruction from the first device 601, and based on the first instruction, sends the first instruction to the first quantum key distribution node 6032. The first quantum key distribution node 6032 sends the first key based on the first instruction. The first quantum secure communication device 6031 receives the first key and sends the first key.

[0118] Optional, such as Figure 7 As shown, the quantum secure communication system also includes a second quantum secure communication device 6033 and a second quantum key distribution node 6034.

[0119] Among them, the second quantum secure communication device 6033 is connected to the second device 602 through a communication link. The second quantum secure communication device 6033 is connected to the second quantum key distribution node 6034 through a communication link. The second quantum secure communication device 6033 is connected to the first quantum secure communication device 6031 through a communication link. The second quantum key distribution node 6034 is connected to the first quantum key distribution node 6032 through a communication link.

[0120] In a possible implementation, the second quantum secure communication device 6033 receives the second instruction from the second device 602, and based on the second instruction, sends the second instruction to the second quantum key distribution node 6034. The second quantum key distribution node 6034 sends the first key based on the second instruction. The second quantum secure communication device 6033 receives the first key and sends the first key.

[0121] It should be noted that the first key in the second quantum key distribution node 6034 is shared with the first key in the first quantum key distribution node.

[0122] Optional, such as Figure 7As shown, the communication system may further include an image repository 604 .

[0123] The image warehouse 604 is connected to the first device 601 via a communication link. The image warehouse 604 is connected to the second device 602 via a communication link.

[0124] In a possible implementation, the image repository 604 is used to store the encrypted data sent by the first device 601. The image repository 604 is also used to send the encrypted data to the second device 602.

[0125] Exemplarily, the image warehouse 604 involved in this application example can be a public image warehouse or a private image warehouse. Of course, the above is only an exemplary description of the image warehouse 604. The image warehouse 604 can also be other image warehouses or storage devices with image storage functions in the future, and the present application embodiment does not impose any restrictions on this.

[0126] When implemented by hardware, the various modules in the communication system can be integrated into Figure 8 The hardware structure of the image file transmission device shown in FIG. Figure 8 As shown, the basic hardware structure of the image file transmission device is introduced.

[0127] Figure 8 The hardware structure diagram of a mirror file transmission device provided in an embodiment of the present application is shown in FIG. Figure 8 As shown, the image file transmission device includes at least one processor 801, a communication line 802, and at least one communication interface 804, and may also include a memory 803. The processor 801, the memory 803 and the communication interface 804 may be connected via the communication line 802.

[0128] The processor 801 may be a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application, such as one or more digital signal processors (DSP), or one or more field programmable gate arrays (FPGA).

[0129] The communication link 802 may include a path for transmitting information between the above-mentioned components.

[0130] The communication interface 804 is used to communicate with other devices or communication networks, and can use any transceiver-like device, such as Ethernet, radio access network (RAN), wireless local area network (WLAN), etc.

[0131] The memory 803 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to include or store desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to these.

[0132] In one possible design, the memory 803 can exist independently of the processor 801, that is, the memory 803 can be a memory outside the processor 801. In this case, the memory 803 can be connected to the processor 801 through the communication line 802, and is used to store execution instructions or application code, and the execution is controlled by the processor 801 to implement the image file transmission method provided in the following embodiment of the present application. In another possible design, the memory 803 can also be integrated with the processor 801, that is, the memory 803 can be the internal memory of the processor 801, for example, the memory 803 is a high-speed cache, which can be used to temporarily store some data and instruction information.

[0133] As a possible implementation, the processor 801 may include one or more CPUs, for example Figure 8 As another possible implementation, the image file transmission device may include multiple processors, such as Figure 8 As another possible implementation, the image file transmission apparatus may further include an output device 805 and an input device 806.

[0134] It should be pointed out that the various embodiments of the present application can refer to each other, for example, the same or similar steps, method embodiments, system embodiments and device embodiments can refer to each other without limitation.

[0135] Fig. 9 A flowchart of a method for transmitting an image file provided in an embodiment of the present application, which can be applied to Figure 6 In the communication system shown in FIG. Fig. 9 As shown, the method includes the following S901-S907.

[0136] S901: A first device sends a first instruction to a quantum secure communication system. Correspondingly, the quantum secure communication system receives the first instruction from the first device.

[0137] The first instruction is used to request a first secret key; the first secret key is a secret key generated based on quantum cryptography.

[0138] Optionally, the first key may be a 256-bit customer master key (CMK) generated based on quantum cryptography.

[0139] In a possible implementation, the implementation process of S901 may be: Fig.10 As shown, the first device sends a first instruction to the first quantum security communication device in the quantum security communication system. Correspondingly, the first quantum security device receives the first instruction.

[0140] In another possible implementation, the implementation process of S901 may be: the first device sends a first instruction to the access network device. The access network device receives the first instruction and sends the first instruction to the quantum secure communication system.

[0141] Further, in some possible implementations, the access network device may send the first instruction to the quantum secure communication system by transparent transmission. Alternatively, the access network device may send the first instruction to the quantum secure communication system by relay transmission. Alternatively, the access network device may send the first instruction to the quantum secure communication system by encrypted transmission.

[0142] In another possible implementation, there is a communication link between the first device and the quantum secure communication system that can communicate directly, and the first device can send a first instruction to the quantum secure communication system through the direct communication link without the need for information transfer through an access network device.

[0143] Of course, the above is only an exemplary description of transmitting the first instruction. The implementation process of transmitting the first instruction can also be implemented through other transmission methods in the future, and the embodiments of the present application do not impose any limitations on this.

[0144] S902: The quantum secure communication system sends a first key to the first device based on the first instruction. Correspondingly, the first device receives the first key from the quantum secure communication system.

[0145] In one possible implementation, Fig.10 As shown, when the first device sends a first instruction to the first quantum secure communication device in the quantum secure communication system, the first quantum secure communication device sends the first instruction to the first quantum key distribution node. Accordingly, the first quantum key distribution node receives the first instruction from the first quantum secure communication device. The first quantum key distribution node sends the first key based on the first instruction. Accordingly, the first quantum secure communication device receives the first key. The first quantum secure communication device sends the first key. Accordingly, the first device receives the first key.

[0146] In another possible implementation, the quantum secure communication system sends the first secret key to the access network device. The access network device receives the first secret key and sends the first secret key to the first device. The first device receives the first secret key.

[0147] S903. The first device generates encrypted data based on the first secret key.

[0148] The encrypted data includes an image file encrypted based on the second key and a second key encrypted based on the first key.

[0149] In one possible implementation, Fig.10 As shown, the first device randomly generates a second key. The first device encrypts the image file based on the second key and the first encryption algorithm. The first device encrypts the second key based on the first key and the second encryption algorithm. The first device determines the encrypted data based on the encrypted image file and the encrypted second key.

[0150] Specifically, the specific process of the first device determining the encrypted data can refer to the embodiments shown in S1101-S1104, which will not be repeated here.

[0151] In another possible implementation, the first device may directly encrypt the image file based on the first secret key, and determine that the encrypted image file is encrypted data.

[0152] Optionally, after the first device generates the encrypted data, an encryption identifier is added to an annotation parameter in an image manifest corresponding to the image file to identify that the image file is encrypted.

[0153] Among them, the encryption identifier includes a field identifier of the source of the key (for example, the key comes from a quantum secure communication system), a length identifier of the key (for example, the length of the key can be 256 bits), and a character string of the encrypted second key.

[0154] Optionally, the image file is an image layer file in the image data, and the image data also includes an image index, an image list, and a configuration file.

[0155] Optionally, the image file may also be all the data in the image data including image layer files, image indexes, image manifests, and configuration files.

[0156] S904: The first device sends the encrypted data, and the second device obtains the encrypted data accordingly.

[0157] In one possible implementation, Fig.10 As shown, the first device uploads the encrypted data to the image warehouse, and the second device obtains the encrypted data from the image warehouse.

[0158] Optionally, the first device may upload the encrypted data, the image index, the image list, and the configuration file to the image repository, and the second device obtains the encrypted data, the image index, the image list, and the configuration file from the image repository.

[0159] Optionally, the first device may also upload the encrypted data to a device such as a memory device. Correspondingly, the second device may also obtain the encrypted data from the memory device, which is not limited in this application.

[0160] S905: The second device sends a second instruction to the quantum secure communication system. Correspondingly, the quantum secure communication system receives the second instruction from the second device.

[0161] The second instruction is used to request a first secret key; the first secret key is a secret key generated based on quantum cryptography.

[0162] In a possible implementation, the implementation process of S905 may be: Fig.10 As shown, the second device sends a second instruction to a second quantum security communication device in the quantum security communication system. Correspondingly, the second quantum security device receives the second instruction.

[0163] In another possible implementation, the implementation process of S905 may be: the second device sends the second instruction to the access network device. The access network device receives the second instruction and sends the second instruction to the quantum secure communication system.

[0164] Further, in some possible implementations, the access network device may send the second instruction to the quantum secure communication system by transparent transmission. Alternatively, the access network device may also send the second instruction to the quantum secure communication system by relay transmission. Alternatively, the access network device may also send the second instruction to the quantum secure communication system by encrypted transmission.

[0165] In another possible implementation, there is a communication link between the second device and the quantum secure communication system that can communicate directly, and the second device can send a second instruction to the quantum secure communication system through the direct communication link without the need for information transfer through an access network device.

[0166] Of course, the above is only an exemplary description of transmitting the second instruction. The implementation process of transmitting the second instruction can also be implemented through other transmission methods in the future, and the embodiments of the present application do not impose any limitations on this.

[0167] S906: The quantum secure communication system sends the first secret key to the second device based on the second instruction. Correspondingly, the second device receives the first secret key from the quantum secure communication system.

[0168] In one possible implementation, Fig.10 As shown, when the second device sends a second instruction to the second quantum secure communication device in the quantum secure communication system, the second quantum secure communication device sends the second instruction to the second quantum key distribution node. Accordingly, the second quantum key distribution node receives the second instruction from the second quantum secure communication device. The second quantum key distribution node sends the first key based on the second instruction. Accordingly, the second quantum secure communication device receives the first key. The second quantum secure communication device sends the first key. Accordingly, the second device receives the first key.

[0169] In another possible implementation, the quantum secure communication system sends a first secret key to an access network device. The access network device receives the first secret key and sends the first secret key to a second device. The second device receives the first secret key.

[0170] S907: The second device decrypts the encrypted data based on the first secret key to determine the image file.

[0171] Optionally, before the second device decrypts the encrypted data, the second device determines that the image file is an encrypted image based on the encryption identifier of the annotation parameter in the encrypted data. After determining that the image file is an encrypted image, the second device decrypts the encrypted data based on the first secret key to determine the image file. The image file, image index, image list, and configuration file together form complete image data.

[0172] In a possible implementation, in S907, the second device decrypts the encrypted data based on the first key, and the process of determining the image file can be specifically implemented by following steps 1-2.

[0173] Step 1: The second device decrypts the second key encrypted based on the first key based on the first key.

[0174] In a possible implementation, the second device decrypts the second key encrypted based on the first key based on the first key and the first encryption algorithm.

[0175] Exemplarily, the first encryption algorithm includes at least one of the following: a packet counting mode algorithm, an asymmetric encryption padding algorithm and a symmetric encryption algorithm, an advanced encryption standard algorithm, a second set of encryption standard core algorithms, or a third set of encryption standard core algorithms. Of course, the above is only an exemplary description of the first encryption algorithm, and the first encryption algorithm may also include other algorithms, such as a symmetric algorithm, an international data encryption algorithm, a digital signature algorithm, an asymmetric encryption algorithm, a hash algorithm, etc., and the embodiments of the present application do not impose any restrictions on this.

[0176] It is understandable that the Advanced Encryption Standard algorithm, the second set of encryption standard core algorithms, or the third set of encryption standard core algorithms are all symmetric algorithms, that is, when using the above three algorithms, the same key is required for encryption and decryption.

[0177] Step 2: The second device decrypts the image file encrypted based on the second secret key based on the decrypted second secret key to determine the image file.

[0178] In one possible implementation, Fig.10 As shown, the second device decrypts the image file encrypted based on the second key by using a second encryption algorithm based on the decrypted second key to determine the unencrypted image file.

[0179] It can be understood that the second encryption algorithm can be the same as the first encryption algorithm in step 1 of S907 above. The description of the first encryption algorithm in step 1 of S907 above can be referred to for understanding, and the second encryption algorithm will not be described in detail here.

[0180] In another possible implementation, the process in S907 whereby the second device decrypts the encrypted data based on the first key and determines the image file may also include: when the encrypted data only includes the image file encrypted based on the first key, the second device decrypts the encrypted data based on the first key and determines the image file.

[0181] Based on the above technical solution, the image file transmission method provided by the present application, the first device sends a first instruction to the quantum secure communication system to request a first secret key. The second device also sends a second instruction to the quantum secure communication system to request the first secret key. Based on the requested first secret key, the first device generates an image file encrypted based on the second secret key, and encrypted data of the second secret key encrypted based on the first secret key, and sends the encrypted data. The second device obtains the encrypted data, and decrypts the encrypted data based on the requested first secret key to determine the image file. Since the first secret key is a secret key generated based on quantum cryptography, the quantum secure communication system uses random numbers and various keys, which are generated based on the principles of quantum cryptography and have the characteristics of "true randomness", which can fundamentally guarantee the security of the cryptographic system. Compared with the current asymmetric encryption algorithm based on the public key, the time required to crack the asymmetric encryption algorithm will be reduced, resulting in the problem of low security. The above technical solution can greatly improve the security of image file encryption.

[0182] As a possible embodiment of the present application, Fig. 9 ,like Fig.11 As shown, the process of the first device generating encrypted data based on the first secret key in the above S903 can be specifically implemented through the following S1101-S1104.

[0183] S1101. The first device generates a second key.

[0184] The second key is a randomly generated key. The second key is a randomly generated 256-bit data encryption key.

[0185] In one possible implementation, the first device randomly generates a second key (e.g., a 256-bit data encryption key) through a key management system. Of course, the above is only an exemplary method for generating the second key. The second key can also be generated by the mkpasswd utility, the dd command, and other data encryption key generation methods, which are not limited in this application.

[0186] S1102: The first device encrypts the image file based on the second key and the first encryption algorithm.

[0187] Among them, the explanation of the first encryption algorithm can be understood by referring to the description of the first encryption algorithm in S901 above, and the first encryption algorithm will not be described again here.

[0188] In one possible implementation, when the image file is an image layer file in the image data, and the image data also includes an image index, an image list, and a configuration file, in order to meet the requirements of the OCI image format, the first device only encrypts the image file in the image data based on the second key and the first encryption algorithm.

[0189] In another possible implementation, when the image file may also be all data in the image data including image layer files, image indexes, image lists, and configuration files, the first device encrypts all data in the image data based on the second key and the first encryption algorithm.

[0190] S1103. The first device encrypts the second key based on the first key and the second encryption algorithm.

[0191] Among them, the second encryption algorithm can be the same as the first encryption algorithm in step 1 of S907 above. You can refer to the description of the first encryption algorithm in step 1 of S907 above for understanding, and the second encryption algorithm will not be repeated here.

[0192] In one possible implementation, the first device encrypts the second key based on the first key and the second encryption algorithm.

[0193] S1104: The first device determines encrypted data based on the encrypted image file and the encrypted second key.

[0194] In a possible implementation, the first device packages and encapsulates the encrypted image file and the encrypted second key to determine the encrypted data, and packages the encrypted data with the image index, the image list, and the configuration file again to form the image data.

[0195] Based on the above technical solution, the first device generates a second key. The first device encrypts the image file based on the second key and the first encryption algorithm. The first device encrypts the second key based on the first key and the second encryption algorithm. The first device determines the encrypted data based on the encrypted image file and the encrypted second key. Compared with the current storage of key information in the image list file, there is a security risk. The above technical solution can encrypt the second key by quantum key. Although it is still stored in the image warehouse, based on the security of the quantum security system, the security of the key in the image warehouse can be greatly improved.

[0196] The embodiment of the present application can divide the image file transmission device into functional modules or functional units according to the above method example. For example, each functional module or functional unit can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules or functional units. Among them, the division of modules or units in the embodiment of the present application is schematic, which is only a logical function division. There may be other division methods in actual implementation.

[0197] like Fig.12, which is a schematic diagram of the structure of an image file transmission device 120 provided in an embodiment of the present application, the image file transmission device 120 includes: a communication unit 1201 and a processing unit 1202 .

[0198] The communication unit 1201 is used to send a first instruction to the quantum secure communication system; the first instruction is used to request a first secret key; the first secret key is a secret key generated based on quantum cryptography.

[0199] The communication unit 1201 is also used to receive the first secret key from the quantum secure communication system.

[0200] The processing unit 1202 is used to generate encrypted data based on the first key; the encrypted data includes the image file encrypted based on the second key and the second key encrypted based on the first key.

[0201] The communication unit 1201 is also used to send encrypted data.

[0202] In one possible implementation, the processing unit 1202 is specifically used to: generate a second key; the second key is a randomly generated key; encrypt the image file based on the second key and the first encryption algorithm; encrypt the second key based on the first key and the second encryption algorithm; determine the encrypted data based on the encrypted image file and the encrypted second key.

[0203] In a possible implementation, the communication unit 1201 is specifically configured to upload the encrypted data to the image repository.

[0204] In a possible implementation, the first encryption algorithm is a symmetric encryption algorithm; the second encryption algorithm is a symmetric encryption algorithm.

[0205] In a possible implementation, the first key acquired by the first device is the same as the first key acquired by the second device; the first device and the second device are two devices for transmitting the image file.

[0206] In a possible implementation, the image file transmission device 120 may further include a storage unit 1203 ( Fig.12 The storage unit 1203 stores a program or instruction. When the processing unit 1202 executes the program or instruction, the image file transmission device 120 can execute the image file transmission method described in the above method embodiment.

[0207] like Fig.13 , which is a schematic diagram of the structure of an image file transmission device 130 provided in an embodiment of the present application, the image file transmission device 130 includes: a communication unit 1301 and a processing unit 1302 .

[0208] The communication unit 1301 is used to send a second instruction to the quantum secure communication system; the second instruction is used to request a first secret key; the first secret key is a secret key generated based on quantum cryptography.

[0209] The communication unit 1301 is also used to receive the first secret key from the quantum secure communication system.

[0210] The communication unit 1301 is also used to obtain encrypted data; the encrypted data includes the image file encrypted based on the second key and the second key encrypted based on the first key.

[0211] The processing unit 1302 is used to decrypt the encrypted data based on the first secret key to determine the image file.

[0212] In a possible implementation, the processing unit 1302 is specifically configured to: decrypt, based on the first key, the second key encrypted based on the first key; and decrypt, based on the decrypted second key, the image file encrypted based on the second key to determine the image file.

[0213] In a possible implementation, the communication unit 1301 is specifically configured to obtain encrypted data from an image repository.

[0214] In a possible implementation, the image file transmission device 130 may further include a storage unit 1303 ( Fig.13 The storage unit 1303 stores a program or instruction. When the processing unit 1302 executes the program or instruction, the image file transmission device 130 can execute the image file transmission method described in the above method embodiment.

[0215] Through the description of the above implementation methods, technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0216] An embodiment of the present application provides a computer program product including instructions. When the computer program product is run on a computer, the computer is enabled to execute the image file transmission method in the above method embodiment.

[0217] The embodiment of the present application also provides a computer-readable storage medium, in which instructions are stored. When the instructions are executed on a computer, the computer executes the image file transmission method in the method flow shown in the above method embodiment.

[0218] Among them, the computer readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer readable storage media (a non-exhaustive list) include: 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), a register, a hard disk, 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, or any other form of computer readable storage medium known in the art. An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an application-specific integrated circuit (ASIC). In the embodiments of the present application, a computer-readable storage medium may be any tangible medium that contains or stores a program, which may be used by or in conjunction with an instruction execution system, apparatus, or device.

[0219] Since the image file transmission device, computer-readable storage medium, and computer program product in the embodiments of the present application can be applied to the above method, the technical effects that can be obtained can also refer to the above method embodiments, and the embodiments of the present application will not be repeated here.

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

[0221] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of this disclosure can be achieved, and this document is not limited here.

[0222] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

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

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

[0225] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application 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.

Claims

1. A method for transmitting an image file, characterized in that: Applied to a first device, the method includes: Sending a first instruction to a quantum secure communication system; the first instruction is used to request a first secret key; the first secret key is a secret key generated based on quantum cryptography; Receiving the first secret key from the quantum secure communication system; Generate encrypted data based on the first key; the encrypted data includes an image file encrypted based on the second key, and the second key encrypted based on the first key; The encrypted data is sent.

2. The method according to claim 1, characterized in that The step of generating encrypted data based on the first secret key includes: Generate the second secret key; the second secret key is a randomly generated key; Encrypting the image file based on the second secret key and the first encryption algorithm; Encrypting the second key based on the first key and the second encryption algorithm; The encrypted data is determined based on the encrypted image file and the encrypted second key.

3. The method according to claim 1, characterized in that The sending of the encrypted data comprises: The encrypted data is uploaded to the image repository.

4. The method according to claim 2, characterized in that: The first encryption algorithm is a symmetric encryption algorithm; the second encryption algorithm is the symmetric encryption algorithm.

5. The method according to claim 1, characterized in that The first key acquired by the first device is the same as the first key acquired by the second device; the first device and the second device are two devices that transmit the image file.

6. A method for transmitting an image file, characterized in that: Applied to the second device, the method includes: Sending a second instruction to the quantum secure communication system; the second instruction is used to request a first secret key; the first secret key is a secret key generated based on quantum cryptography; Receiving the first secret key from the quantum secure communication system; Acquire encrypted data; the encrypted data includes an image file encrypted based on a second key, and the second key encrypted based on the first key; The encrypted data is decrypted based on the first secret key to determine the image file.

7. The method according to claim 6, characterized in that The decrypting the encrypted data based on the first secret key includes: Based on the first key, decrypting the second key encrypted based on the first key; Based on the decrypted second key, the image file encrypted based on the second key is decrypted to determine the image file.

8. The method according to claim 6, characterized in that The obtaining of encrypted data comprises: The encrypted data is obtained from the image repository.

9. A communication system, characterized in that: The system includes a first device, a second device and a quantum secure communication system; The first device is configured to: send a first instruction to the quantum secure communication system; the first instruction is used to request a first secret key; the first secret key is a secret key generated based on quantum cryptography; The second device is configured to: send a second instruction to the quantum secure communication system; the second instruction is used to request the first secret key; The quantum secure communication system is configured to: send the first secret key based on the first instruction; send the first secret key based on the second instruction; The first device is further configured to: receive the first secret key from the quantum secure communication system; generate encrypted data based on the first secret key; and send the encrypted data; the encrypted data includes an image file encrypted based on the second secret key and the second secret key encrypted based on the first secret key; The second device is further configured to: receive the first secret key from the quantum secure communication system; obtain encrypted data; and decrypt the encrypted data based on the first secret key to determine the image file.

10. The system according to claim 9, characterized in that The quantum secure communication system includes a first quantum secure communication device and a first quantum key distribution node; The first device is specifically configured to: send a first instruction to the first quantum secure communication device; The first quantum secure communication device is configured to: send the first instruction to the first quantum key distribution node; The first quantum key distribution node is configured to: send the first key based on the first instruction; The first quantum secure communication device is further configured to: receive the first secret key and send the first secret key.

11. The system according to claim 10, characterized in that The quantum secure communication system also includes a second quantum secure communication device and a second quantum key distribution node; The second device is specifically configured to: send a first instruction to the second quantum secure communication device; The second quantum secure communication device is configured to: send the second instruction to the second quantum key distribution node; The second quantum key distribution node is configured to: send the first key based on the second instruction; the first key in the second quantum key distribution node is shared with the first key in the first quantum key distribution node; The second quantum secure communication device is further configured to: receive the first secret key and send the first secret key.

12. A mirror file transmission device, characterized in that: The device comprises a communication unit and a processing unit; The communication unit is used to send a first instruction to the quantum secure communication system; the first instruction is used to request a first secret key; the first secret key is a secret key generated based on quantum cryptography; The communication unit is further configured to receive the first secret key from the quantum secure communication system; The processing unit is configured to generate encrypted data based on the first key; the encrypted data includes an image file encrypted based on the second key, and the second key encrypted based on the first key; The communication unit is further used to send the encrypted data.

13. A mirror file transmission device, characterized in that: The device comprises a communication unit and a processing unit; The communication unit is used to send a second instruction to the quantum secure communication system; the second instruction is used to request a first secret key; the first secret key is a secret key generated based on quantum cryptography; The communication unit is further configured to receive the first secret key from the quantum secure communication system; The communication unit is further used to obtain encrypted data; the encrypted data includes an image file encrypted based on the second key, and the second key encrypted based on the first key; The processing unit is used to decrypt the encrypted data based on the first secret key to determine the image file.

14. A mirror file transmission device, characterized in that: include: A processor and a communication interface; the communication interface is coupled to the processor, and the processor is used to run a computer program or instruction to implement the image file transmission method as described in any one of claims 1-5 or claims 6-8.

15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions. When a computer executes the instructions, the computer executes the image file transmission method according to any one of claims 1 to 5 or claims 6 to 8.

16. A computer program product, characterized in that The computer program product comprises computer instructions, and when the computer instructions are executed on a computer, the computer is enabled to execute the image file transmission method according to any one of claims 1 to 5 or claims 6 to 8.

Citation Information

Patent Citations

  • File signature method and device of operating system and file verification method and device of operating system

    CN105989306A

  • Firmware security loading method and device, computer equipment and storage medium

    CN109583189A

  • Mirror image file transmission method and device, equipment and storage medium

    CN113900772A

  • Container mirror image construction method and device

    CN114995949A

  • Data transmission method and device, equipment and storage medium

    CN117640083A

Cited By

  • K8s mirror image volume optimization upgrading method based on multi-container separation architecture

    CN119718357A