Method and system for encrypted transmission of video data
By negotiating and generating a unique quantum key in a quantum channel between the sender and receiver, and then performing block segmentation and quantum encryption on video data, the problems of key leakage and network instability in encrypted video transmission are solved, thereby improving the security, stability, and real-time performance of video data transmission.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- E SURFING IOT CO LTD
- Filing Date
- 2024-11-22
- Publication Date
- 2026-07-07
AI Technical Summary
Existing video encryption transmission methods have a high probability of key leakage, resulting in low security for video data transmission. Furthermore, they suffer from poor real-time performance and stability when transmitted in complex and dynamically fluctuating network environments.
The system employs a unique quantum key generated through negotiation between the sender and receiver on a quantum channel. This key is used to segment and quantum encrypt video data into blocks. The encrypted video blocks are then transmitted through a classical channel and decrypted by the receiver using quantum technology. The system dynamically generates a unique quantum key by combining real-time updated segmentation strategies and block attribute information, making it adaptable to complex network environments.
It effectively reduces the possibility of key leakage, improves the security and stability of video data in classic channels, enhances the real-time performance of transmission, and adapts to the dynamic changes of complex network environments.
Smart Images

Figure CN119729054B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data communication technology, and in particular to a method and system for encrypted transmission of video data. Background Technology
[0002] With the rapid development of information technology, online video activities have become an important part of people's daily lives and work, and the security of online video transmission has received increasing attention.
[0003] Currently, traditional video encryption transmission methods are usually based on a key negotiated and determined by the sender and receiver in a classic communication network. The sender encrypts the video data to be encrypted using a symmetric or asymmetric encryption algorithm, and then transmits the encrypted video data to the receiver. This method is susceptible to key leakage, resulting in low security for video data transmission.
[0004] Therefore, the problems existing in the current technology still need to be solved and optimized. Summary of the Invention
[0005] To address at least one of the aforementioned technical problems, this application provides a method and system for encrypted transmission of video data, wherein the method can reduce the possibility of key leakage and improve the security of video data transmission.
[0006] According to a first aspect of this application, a method for encrypted transmission of video data is provided, comprising:
[0007] The sender obtains the video data to be encrypted and transmitted, and divides the video data into blocks to obtain several video blocks;
[0008] The sender obtains a unique quantum key, which is a publicly known quantum key generated by the sender and the receiver through a quantum channel. Each unique quantum key corresponds to a video block.
[0009] The sender performs quantum encryption on each video block according to the corresponding unique quantum key to obtain a number of encrypted video blocks, and sends all the encrypted video blocks to the receiver through a classical channel;
[0010] The receiver performs quantum decryption on all the video encryption blocks to obtain the video data.
[0011] In some embodiments, the step of segmenting the video data into blocks to obtain a plurality of video blocks includes:
[0012] Obtain the current partitioning strategy and the factors influencing the partitioning strategy;
[0013] Based on the factors influencing the block partitioning strategy, the current block partitioning strategy is optimized to obtain the target block partitioning strategy.
[0014] According to the target segmentation strategy, the video data is segmented into strategy blocks to obtain several video blocks.
[0015] In some embodiments, obtaining the unique quantum key corresponding to each video block includes:
[0016] Obtain the block attribute information of the video block and the encryption strategy information corresponding to the video block;
[0017] Based on the block attribute information and the encryption strategy information, several synchronization key blocks in the synchronization key library are assembled and padded to obtain the original quantum key. The synchronization key library is a quantum key library that is synchronously updated between the sender and the receiver.
[0018] The original quantum key is indexed to generate the unique quantum key.
[0019] In some embodiments, the method further includes:
[0020] The sender randomly generates a quantum state and transmits the quantum state to the receiver through the quantum channel.
[0021] The receiver performs quantum state measurement on the quantum state to obtain the quantum state measurement result, and returns the measurement basis information corresponding to the quantum state measurement result to the sender through the classical channel. The quantum state measurement result includes several quantum state measurement data at different measurement positions, and the measurement basis information corresponding to each quantum state measurement data is different.
[0022] The sender performs basis alignment and screening on all the measurement basis information according to the quantum state and the preparation basis information corresponding to the quantum state, and obtains the alignment and screening results. The alignment and screening results are used to characterize the measurement position of the correctly measured quantum state measurement data.
[0023] The receiver receives the comparison and screening results, and selects qubits from the quantum state measurement results based on the comparison and screening results to obtain the public key bits;
[0024] The sender receives the public key bits and performs consistency verification on the quantum state based on the public key bits to obtain the consistency verification result;
[0025] The sender updates the current synchronization keystore based on the consistency verification result, and obtains the updated synchronization keystore.
[0026] In some embodiments, the video block is quantum encrypted according to the corresponding unique quantum key to obtain a video encrypted block, including:
[0027] Obtain the block number, timestamp information, and encryption strategy information of the video block, as well as the quantum key index of the unique quantum key;
[0028] Based on the encryption strategy information and the unique quantum key, the video block is encrypted according to the strategy to obtain a strategy-encrypted block;
[0029] The strategy encryption block is encapsulated based on the block number, the timestamp information, and the quantum key index to obtain the video encryption block.
[0030] In some embodiments, the step of quantum decrypting all the video encryption blocks to obtain the video data includes:
[0031] All video encryption blocks are parsed to obtain the block number and data check code of each video encryption block;
[0032] Based on the block number, all the video encryption blocks are sorted to obtain an encryption block sequence;
[0033] Based on all the data check codes, the integrity of the encrypted block sequence is checked to obtain the integrity check result;
[0034] If the integrity verification result indicates that the encrypted block sequence is complete, then the encrypted block sequence is decrypted step by step using the key to obtain the video data.
[0035] In some embodiments, the stepwise key decryption of the encrypted block sequence to obtain the video data includes:
[0036] The current video encryption block in the encryption block sequence is used as the target encryption block, and the timestamp information, quantum key index, and decryption strategy information of the target encryption block are obtained, as well as the current decryption block sequence is obtained;
[0037] Based on the quantum key index, a quantum key search is performed on the synchronization key library to obtain the target quantum key corresponding to the target encryption block;
[0038] Based on the target quantum key and the decryption strategy information, the target encrypted block is decrypted to obtain the target decrypted block;
[0039] If at least one video encryption block in the encryption block sequence has not been decrypted according to the policy, the current decryption block sequence is updated according to the target decryption block, and then the process returns to the step of using the current video encryption block in the encryption block sequence as the target encryption block; or, if there is no video encryption block in the encryption block sequence that has not been decrypted according to the policy, the current decryption block sequence is updated according to the target decryption block to obtain the target decryption block sequence, and then all target decryption blocks in the target decryption block sequence are assembled according to all the timestamp information to obtain the video data.
[0040] According to a second aspect of this application, a method for encrypted transmission of video data is provided for a sender, the method comprising:
[0041] The video data to be encrypted and transmitted is obtained, and the video data is divided into blocks to obtain several video blocks;
[0042] Obtain a unique quantum key, which is a publicly known quantum key generated by the sender and the receiver through a quantum channel, and each unique quantum key corresponds to a video block;
[0043] Based on the corresponding unique quantum key, each video block is quantum encrypted to obtain several encrypted video blocks.
[0044] All the video encryption blocks are sent to the receiver via a classical channel, so that the receiver can perform quantum decryption on all the video encryption blocks to obtain the video data.
[0045] According to a third aspect of this application, a method for encrypted transmission of video data is provided for a receiver, the method comprising:
[0046] Receive several video encryption blocks sent by the sender, and perform quantum decryption on all the video encryption blocks to obtain video data;
[0047] The video encryption block is obtained through the following steps:
[0048] The sender obtains the video data to be encrypted and transmitted, and divides the video data into blocks to obtain several video blocks;
[0049] The sender obtains a unique quantum key, which is a publicly known quantum key negotiated between the sender and the receiver through a quantum channel. Each unique quantum key corresponds to a video block.
[0050] The sender performs quantum encryption on each video block according to the corresponding unique quantum key, thereby obtaining a number of encrypted video blocks.
[0051] According to a fourth aspect of this application, an encrypted transmission system for video data is provided, comprising a sender and a receiver;
[0052] The sender is configured to acquire video data to be encrypted and transmit, and to divide the video data into blocks to obtain several video blocks; acquire a unique quantum key, which is a publicly known quantum key generated by the sender and the receiver through a quantum channel, and each unique quantum key corresponds to one video block; perform quantum encryption on each video block according to the corresponding unique quantum key to obtain several encrypted video blocks, and send all the encrypted video blocks to the receiver through a classical channel;
[0053] The receiver is used to perform quantum decryption on all the video encryption blocks to obtain the video data.
[0054] The beneficial effects of the technical solutions provided in this application are:
[0055] This application provides a method and system for encrypted transmission of video data. The method involves the sender acquiring video data to be encrypted and dividing the video data into blocks to obtain several video blocks. The sender obtains a unique quantum key, which is a publicly known quantum key negotiated between the sender and the receiver via a quantum channel. Each unique quantum key corresponds to one video block. The sender performs quantum encryption on each video block according to the corresponding unique quantum key, obtaining several encrypted video blocks, and sends all the encrypted video blocks to the receiver via a classical channel. The receiver performs quantum decryption on all the encrypted video blocks to obtain the video data. This method, based on the unique quantum key negotiated between the sender and receiver via a quantum channel, effectively reduces the possibility of key leakage and significantly improves the security of video data transmission via classical channels by encrypting the video data to be encrypted and transmitting it to the receiver. Attached Figure Description
[0056] Figure 1 This application provides a flowchart of a method for encrypted transmission of video data.
[0057] Figure 2 A timing flowchart of a video data encryption transmission method provided in an embodiment of this application;
[0058] Figure 3 A detailed flowchart of step S110 provided for an embodiment of this application;
[0059] Figure 4 A detailed flowchart of step S120 provided for an embodiment of this application;
[0060] Figure 5 A schematic diagram of a quantum encryption process provided for an embodiment of this application;
[0061] Figure 6 A detailed flowchart of step S140 provided for an embodiment of this application;
[0062] Figure 7 A detailed flowchart of step D4 provided for an embodiment of this application;
[0063] Figure 8 A schematic flowchart of one optional method for encrypted transmission of video data provided in an embodiment of this application;
[0064] Figure 9 A schematic diagram of the framework of an encrypted video data transmission system provided in this application embodiment;
[0065] Figure 10 This is a structural block diagram of a computer device provided in an embodiment of this application. Detailed Implementation
[0066] The present application will be further described below with reference to the accompanying drawings and specific embodiments. The described embodiments should not be considered as limitations on the present application, and all other embodiments obtained by those skilled in the art without inventive effort are within the scope of protection of the present application.
[0067] In the following description, references are made to “some embodiments,” which describe a subset of all possible embodiments. However, it is understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0068] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.
[0069] Currently, traditional video encryption transmission methods typically rely on a key negotiated between the sender and receiver over a classic communication network. The sender encrypts the video data using symmetric or asymmetric encryption algorithms before transmitting the encrypted video data to the receiver. This method is susceptible to key leakage, resulting in low security for video data transmission. Furthermore, due to the often large volume of video data and the complex and dynamically fluctuating network environment, this method is prone to channel congestion and data loss, leading to unsatisfactory real-time performance and stability.
[0070] In view of this, embodiments of this application provide a method for encrypted transmission of video data. This method, based on a unique quantum key negotiated and generated by the sender and receiver in a quantum channel, encrypts the video data to be transmitted by the sender before transmitting it to the receiver. This reduces the possibility of key leakage and effectively improves the security of video data transmission in classical channels. Furthermore, by performing quantum encryption on video blocks separately before sending them to the receiver, this method mitigates the adverse effects of complex and dynamically fluctuating network environments on video data, improving the real-time performance and stability of video data transmission, as well as enhancing its security. Moreover, based on a real-time updated target segmentation strategy, this method divides the current video data into policy blocks and determines the corresponding unique quantum key based on the block attribute information of each video block. This allows for the dynamic generation of video blocks and their corresponding unique quantum keys according to complex and dynamically fluctuating network environments, better meeting the real-time performance and stability requirements of video data transmission.
[0071] The present application provides a method and system for encrypted transmission of video data, which can be specifically described through the following embodiments. First, a method for encrypted transmission of video data in the present application is described.
[0072] The video data encryption transmission method provided in this application can be applied to data communication application scenarios. In data communication application scenarios, data communication service providers can use the video data encryption transmission method provided in this application to encrypt and transmit the video data to be transmitted, which can reduce the possibility of key leakage, effectively improve the security of video data transmission in classic channels, and improve the real-time performance and stability of video data transmission.
[0073] This application can be used in a wide variety of general-purpose or special-purpose computer system environments or configurations. Examples include: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, and distributed computing environments including any of the above systems or devices. This application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform specific tasks or implement specific abstract data types. This application can also be practiced in distributed computing environments where tasks are performed by remote processing devices connected via a communication network. In distributed computing environments, program modules can reside in local and remote computer storage media, including storage devices.
[0074] Reference Figure 1 and Figure 2 , Figure 1 This is an optional flowchart of the first video data encryption transmission method provided in the embodiments of this application, which may include, but is not limited to, steps S110 to S140.
[0075] Step S110: The sender obtains the video data to be encrypted and transmitted, and divides the video data into blocks to obtain several video blocks;
[0076] In this embodiment of the application, after the sender obtains the video data to be encrypted and transmitted, the video data can first be preprocessed, specifically by using a video encoder to encode the data, thereby generating video data in video file format or video stream format.
[0077] It is understandable that the block segmentation in step S110 can be based on block segmentation conditions such as time, frame count, and data size to divide the video data into blocks, thereby obtaining several video blocks. Specifically, if the block segmentation condition is time, the video data can be divided into blocks based on time intervals such as 1 second, 5 seconds, and 60 seconds, thereby obtaining several video blocks; or, if the block segmentation condition is frame count, the video data can be divided according to the number of frames in the video data, for example, dividing the video data into blocks with each 60 frames as a video block, thereby obtaining several video blocks; or, if the block segmentation condition is data size, the video data can be divided according to the byte size of the video data, for example, dividing the video data into blocks with byte sizes such as 1MB, 10MB, and 1GB, thereby obtaining several video blocks.
[0078] It is worth mentioning that, for the video blocks obtained under the above block segmentation conditions, if the last video block does not meet the block segmentation conditions, the last video block can be padded to obtain a video block that meets the block segmentation conditions. For example, if the last video block has only 30 frames, and the corresponding block segmentation condition is that each video block is 60 frames, blank frames can be padded after the last 30 frames to make the last video block meet the block segmentation condition of each video block being 60 frames. This example is for illustration only and is not intended to limit this application.
[0079] Reference Figure 3 In some embodiments, step S110, which involves segmenting the video data into blocks to obtain several video blocks, includes:
[0080] A1. Obtain the current partitioning strategy and the factors influencing the partitioning strategy;
[0081] A2. Based on the factors influencing the block partitioning strategy, optimize the current block partitioning strategy to obtain the target block partitioning strategy;
[0082] A3. According to the target segmentation strategy, the video data is segmented into strategy blocks to obtain several video blocks.
[0083] In the embodiments of this application, the current segmentation strategy can be the segmentation strategy used by the sender to segment the video data into blocks. Specifically, if the sender is sending video data to the receiver for the first time, the current segmentation strategy can be the aforementioned block segmentation conditions; or, if the sender is sending video data to the receiver for the second or more times, the current segmentation strategy can be the target segmentation strategy of the previous time.
[0084] Understandably, the chunking strategy influencing factors in step A1 are used to dynamically adjust the sender's chunking strategy for video data in real time. These influencing factors include the current quantum key generation rate, the network bandwidth between the sender and receiver, the transmission signal strength between the sender and receiver, network fluctuation information, and the video frame rate of the video data.
[0085] It should be noted that step A2 can be based on the factors affecting the current segmentation strategy, and the current segmentation strategy can be optimized and adjusted in real time. For example, if the current quantum key generation rate is relatively slow, the segmentation time length of the video block in the current segmentation strategy can be increased to reduce the consumption of quantum keys and obtain the target segmentation strategy. Alternatively, if the current network fluctuation information indicates that the network is unstable and has large fluctuations, the segmentation data size of the video block in the current segmentation strategy can be adjusted to reduce the segmentation data stream of each video block and obtain the target segmentation strategy. The example in this application is only for illustration.
[0086] It is worth mentioning that step A3 can be based on the latest target segmentation strategy to divide the video data into strategy blocks, thereby obtaining several video blocks. Each video block has a block number and timestamp information. The block number can be a sequence number or a frame number, which is used to indicate the correct reassembly order when the receiver reassembles the data blocks. The timestamp information is used to characterize the position of the corresponding video block in the video stream.
[0087] Step S120: The sender obtains a unique quantum key, which is a publicly known quantum key generated by the sender through a quantum channel and negotiated with the receiver. Each unique quantum key corresponds to a video block.
[0088] In this embodiment, a unique quantum key can be obtained through negotiation and interaction between the sender and receiver in the quantum channel. This unique quantum key corresponds to a video block and is stored separately by the sender and receiver. Alternatively, the required unique quantum key can be obtained from a synchronization key library constructed during the negotiation and interaction between the sender and receiver in the quantum channel. Specifically, the quantum channel can be a channel in a quantum communication network used to transmit quantum states. The quantum communication network is established by the sender and receiver each configuring quantum key distribution devices and establishing them through optical fiber or free-space optical communication. Specific quantum key distribution devices include quantum light sources, modulators, detectors, synchronization clocks, and control modules, etc. This application does not limit the quantum channel.
[0089] Reference Figure 4 In some embodiments, step S120, obtaining a unique quantum key corresponding to each video block, includes:
[0090] B1. Obtain the block attribute information of the video block and the encryption strategy information corresponding to the video block;
[0091] B2. Based on the block attribute information and the encryption strategy information, several synchronization key blocks in the synchronization key library are assembled and padded to obtain the original quantum key. The synchronization key library is a quantum key library that is synchronously updated between the sender and the receiver.
[0092] B3. Index the original quantum key to generate the unique quantum key.
[0093] In the embodiments of this application, the block attribute information of the video block may be the data block length of the video block, the number of frames of the video block, the time interval corresponding to the video block, and other attribute information. The encryption strategy information may be the encryption algorithm applied at the sending end. Specifically, the encryption strategy information may be the AES (Advanced Encryption Standard) algorithm, etc. The example in this application is only for illustration.
[0094] It is understood that the synchronous key store can specifically be a quantum key store that is synchronously updated by the sender and the receiver based on the negotiation interaction of the quantum channel. This quantum key store records the quantum keys generated by the sender and the receiver in each negotiation interaction.
[0095] It should be noted that step B2 can first involve obtaining all unused or incompletely used quantum keys in the synchronization key library, and then filtering out several corresponding quantum keys (i.e., synchronization key blocks) based on block attribute information and / or encryption strategy information. Next, the filtered synchronization key blocks are concatenated or truncated to obtain the original quantum key. Step B3 can involve assigning a unique index number to each original quantum key. This index number maps to the corresponding key generation time, length, and usage status, including whether the key is used or not, thus obtaining the unique quantum key corresponding to that video block.
[0096] For example, if a synchronization key library contains all unused or incompletely used quantum keys including quantum key Q, quantum key W, and quantum key R, where quantum key Q is an incompletely used quantum key including used key block Q1 and unused key block Q2; and quantum key W includes unused key blocks W1 and W2. Specifically, if the block attribute information of a video block records the data block length, which is equal to the sum of the key lengths of quantum key W and key block Q2, step B2 can be to determine key blocks Q2, key blocks W1, and key blocks W2 as the synchronization key blocks corresponding to the video block, and then concatenate key blocks Q2, W1, and W2 to obtain the original quantum key, the key length of which corresponds to the data block length of the video block's block attribute information.
[0097] Alternatively, if the synchronization key block corresponding to a certain video block is a quantum key R, and the key length of the quantum key R is greater than the data block length corresponding to the block attribute information of the video block, then the quantum key R can be pruned based on the block attribute information to obtain two pruned key blocks. One pruned key block corresponding to the block attribute information of the video block is determined as the original quantum key, and the other pruned key block is determined as the unused key block in the quantum key R. The example in this application is only for illustration and is not intended to limit this application.
[0098] It is worth mentioning that, since the video block obtained in this embodiment is obtained by dividing the video data into policy blocks based on a real-time updated target segmentation strategy, the video block is a dynamically generated data block, which makes the block attribute information (such as data block length, frame number, time interval, etc.) of the video block change dynamically. The unique quantum key will also change dynamically to ensure that the generated unique quantum key matches the corresponding video block. Specifically, the key length of the unique quantum key can match the block attribute information of the video block. It can dynamically generate video blocks and corresponding unique quantum keys according to complex and dynamically fluctuating network environments and other factors, so as to better meet the real-time and stability requirements of video data transmission.
[0099] Step S130: The sender performs quantum encryption on each video block according to the corresponding unique quantum key to obtain several video encryption blocks, and sends all the video encryption blocks to the receiver through a classical channel;
[0100] In this embodiment, for a given video block, step 130 may involve using the corresponding unique quantum key from among all unique quantum keys to perform quantum encryption on the video block, thereby obtaining a video encryption block corresponding to the current video block. The same process is applied to the remaining video blocks, ultimately resulting in several video encryption blocks, each corresponding to one video block. Furthermore, after obtaining the video encryption block corresponding to each video block, the sender can send all video encryption blocks to the receiver via a classical channel based on any one of the following protocols: TCP, UDP, RTP / RTSP, etc.
[0101] It is understandable that a classic channel can be a communication channel in a traditional communication network. Specifically, the transmission of the video encryption block can be based on the TCP protocol, transmitting the data packets corresponding to the video encryption block sequentially to the receiver according to the block numbers contained within the video encryption block; or, it can be that the data packets corresponding to the video encryption block are sent to the receiver based on the UDP protocol. The examples in this application are for illustrative purposes only and do not constitute a limitation on this application. For instance, the Real-Time Transport (RTP) protocol can also be used to send the data packets corresponding to the video encryption block to the receiver according to the timing represented by the block numbers and timestamps contained within the video encryption block.
[0102] Reference Figure 5 In some embodiments, the video block is quantum encrypted using the corresponding unique quantum key to obtain a video encrypted block, including:
[0103] C1. Obtain the block number, timestamp information, and encryption strategy information of the video block, as well as the quantum key index of the unique quantum key;
[0104] C2. Based on the encryption strategy information and the unique quantum key, the video block is encrypted according to the strategy to obtain a strategy-encrypted block;
[0105] C3. Based on the block number, the timestamp information, and the quantum key index, the strategy encryption block is encapsulated to obtain the video encryption block.
[0106] In this embodiment, for a specific video block, the block number, timestamp information, and encryption policy information corresponding to the video block, as well as the quantum key index of the unique quantum key corresponding to the video block, can be obtained first. Step C2 can involve using the unique quantum key and the encryption algorithm indicated by the encryption policy information to perform policy encryption on the corresponding video block, thereby obtaining a policy-encrypted block corresponding to the video block. Specifically, this can involve using the unique quantum key and the AES algorithm to encrypt the video block. It is understood that step C3 can involve adding the block number, timestamp information, and quantum key index corresponding to the video block to the policy-encrypted block, thereby obtaining a video encrypted block in data packet form.
[0107] Step S140: The receiver performs quantum decryption on all the video encryption blocks to obtain the video data.
[0108] In this embodiment, after receiving the video encryption block, the receiver can perform quantum decryption on the obtained video encryption block based on the unique quantum key known to both the sender and receiver in the quantum channel, and determine the video data based on each decrypted video encryption block. Specifically, the receiver can receive the video encryption blocks one by one and perform quantum decryption on each received video encryption block; or the receiver can perform quantum decryption on all video encryption blocks separately after receiving all video encryption blocks.
[0109] Reference Figure 6 In some embodiments, step S140, performing quantum decryption on all the video encryption blocks to obtain the video data, includes:
[0110] D1. Perform encryption block parsing on all video encryption blocks to obtain the block number and data check code of each video encryption block;
[0111] D2. Sort all the video encryption blocks according to the block number to obtain the encryption block sequence;
[0112] D3. Perform integrity verification on the encrypted block sequence based on all the data verification codes to obtain the integrity verification result;
[0113] In this embodiment of the application, for a certain video encryption block, step D1 may be to decapsulate the video encryption block in the form of a data packet to obtain the block code and data check code corresponding to each video encryption block. The data check code can be used to ensure the integrity of the video encryption block and that the video encryption block in the form of a data packet has not been tampered with. The data check code may specifically include a checksum or a message authentication code (MAC).
[0114] Understandably, step D2 can be performed by sorting all video encrypted blocks according to the block number corresponding to each video encrypted block, thereby obtaining an encrypted block sequence. This encrypted block sequence includes several sorted video encrypted blocks, and adjacent video encrypted blocks in the sequence have adjacent block numbers. Step D3 can be performed by performing an integrity check on the encrypted block sequence based on the data checksum corresponding to each sorted video encrypted block, thereby obtaining an integrity check result.
[0115] It should be noted that if the integrity check result indicates that the video encryption blocks in the encryption block sequence are incomplete, meaning that packet loss occurred during the transmission of the video encryption blocks, or that there are missing video encryption blocks or discontinuous block numbers in the encryption block sequence, the receiver can request the sender to retransmit the missing video encryption blocks, or recover the missing video encryption blocks through forward error correction (FEC) technology. Alternatively, if the integrity check result indicates that the video encryption blocks in the encryption block sequence are incomplete, it means that at least one received video encryption block has been erroneous or tampered with during transmission, and in this case, the receiver can request the sender to retransmit the incomplete video encryption blocks.
[0116] D4. If the integrity verification result indicates that the encrypted block sequence is complete, then the encrypted block sequence is decrypted step by step using the key to obtain the video data.
[0117] Reference Figure 7 Furthermore, step D4, which involves progressively decrypting the encrypted block sequence to obtain the video data, includes:
[0118] D41. Using the current video encryption block in the encryption block sequence as the target encryption block, obtain the timestamp information, quantum key index, and decryption strategy information of the target encryption block, and obtain the current decryption block sequence;
[0119] D42. Based on the quantum key index, perform a quantum key search on the synchronization key library to obtain the target quantum key corresponding to the target encryption block;
[0120] D43. Based on the target quantum key and the decryption strategy information, perform strategy decryption on the target encrypted block to obtain the target decrypted block;
[0121] D44. If at least one video encryption block in the encryption block sequence has not been decrypted according to the policy, then the current decryption block sequence is updated according to the target decryption block, and then the process returns to the step of using the current video encryption block in the encryption block sequence as the target encryption block.
[0122] Alternatively, D45, if the encrypted block sequence does not contain any video encrypted blocks that have not been decrypted using the policy, then the current decryption block sequence is updated according to the target decryption block to obtain the target decryption block sequence. Then, based on all the timestamp information, all the target decryption blocks in the target decryption block sequence are assembled to obtain the video data.
[0123] In this embodiment of the application, for a certain key decryption process, step D41 may involve determining the video encryption block corresponding to the current key decryption process in the encryption block sequence as the target encryption block, and obtaining the timestamp information, quantum key index, and decryption strategy information of the target encryption block. Furthermore, the current decryption block sequence in step D41 may be the target decryption block sequence obtained in the previous key decryption process. Specifically, if the current key decryption process is the receiver's first key decryption process, then the current decryption block sequence may be a blank decryption block sequence; or, if the current key decryption process is the receiver's second or higher-level key decryption process, then the current decryption block sequence may be the target decryption block sequence from the previous key decryption process.
[0124] Understandably, step D42 can be the receiver searching for a unique quantum key in the synchronization key block based on the quantum key index, and determining the unique quantum key obtained from the search as the target quantum key; step D43 can be based on the target quantum key, using the decryption policy information corresponding to the encryption policy information to decrypt the target encrypted block, thereby obtaining the decrypted target encrypted block, and determining the decrypted target encrypted block as the target decrypted block. Specifically, if the encryption policy information is the encryption process in the ABS algorithm, then the corresponding decryption policy information is the decryption process in the ABS algorithm.
[0125] It should be noted that if at least one video encryption block in the encryption block sequence has not been decrypted according to the policy, the current decryption block sequence is updated according to the target decryption block to obtain a target decryption block sequence corresponding to the current key decryption process. This target decryption block sequence is then determined as the current decryption block sequence in the next key decryption process, with the current video encryption block in the encryption block sequence serving as the target encryption block. Alternatively, if there are no video encryption blocks in the encryption block sequence that have not been decrypted according to the policy, the current decryption block sequence can be updated according to the target decryption block to obtain a final target decryption block sequence. Each decryption block in this target decryption block sequence corresponds to one encryption block in the encryption block sequence. Then, based on the timestamp information corresponding to each target decryption block and the sorting information in the decryption block sequence, all target decryption blocks are assembled into video data.
[0126] Reference Figure 8 In some embodiments, the method further includes
[0127] E1. The sender randomly generates a quantum state and sends the quantum state to the receiver through the quantum channel;
[0128] E2. The receiver performs quantum state measurement on the quantum state to obtain the quantum state measurement result, and returns the measurement basis information corresponding to the quantum state measurement result to the sender through the classical channel. The quantum state measurement result includes several quantum state measurement data at different measurement positions, and the measurement basis information corresponding to each quantum state measurement data is different.
[0129] E3. The sender performs basis comparison and screening on all the measurement basis information according to the quantum state and the preparation basis information corresponding to the quantum state, and obtains the comparison and screening results. The comparison and screening results are used to characterize the measurement position of the correctly measured quantum state measurement data.
[0130] E4. The receiver receives the comparison and screening results, and selects qubits from the quantum state measurement results based on the comparison and screening results to obtain the public key bits;
[0131] E5. The sender receives the public key bit and performs consistency verification on the quantum state based on the public key bit to obtain the consistency verification result;
[0132] E6. The sender updates the current synchronization keystore based on the consistency verification result to obtain the updated synchronization keystore.
[0133] In this embodiment, both the sender and receiver are equipped with quantum key distribution devices. The preparation basis and measurement basis are a set of orthogonal basis vectors used in the quantum state preparation or measurement process. Step E1 may involve the sender generating a series of random quantum states using a quantum light source and sending the modulated quantum states to the receiver via a quantum channel. For example, based on the BB84 protocol, the sender randomly selects and modulates any one of four quantum polarization states (horizontal, vertical, 45-degree stacked, 135-degree diagonal) and sends the modulated quantum states to the receiver via a quantum channel. Step E2 may involve the receiver randomly selecting a measurement basis and measuring the received quantum states to obtain quantum state measurement results. These results include several quantum state measurement data at different measurement positions, each measured by a randomly selected measurement basis. Then, based on the obtained quantum state measurement results, the receiver sends the measurement basis information corresponding to each quantum state measurement data to the sender.
[0134] Understandably, the sender can record the preparation basis information used when randomly generating quantum states. Step E3 can first involve the sender comparing all received measurement basis information based on the previously recorded preparation basis information, determining the measurement basis information corresponding to the preparation basis information as the target measurement basis information, and filtering the target quantum state from the original quantum state based on the target measurement basis information. This target quantum state is the quantum state correctly measured by the receiver in the series of quantum states sent by the sender, that is, the quantum state measurement data correctly measured by the receiver using the corresponding measurement basis. Then, the sender generates a comparison and filtering result based on the quantum state measurement data corresponding to the target measurement basis information and the measurement position carried by the target measurement basis information, and sends the generated comparison and filtering result to the receiver.
[0135] It should be noted that after receiving the comparison and filtering results, the receiver can first filter all quantum state measurement data in the quantum state measurement results, retaining the correctly measured quantum state measurement data, which can be used as the initial key string. Then, a portion of the qubits in the initial key string are randomly selected, and the selected qubits are determined as the public key bits, which are then transmitted to the sender. Step E5 can first calculate the bit error rate of the quantum channel between the sender and receiver based on the public key bits and the corresponding qubits in the target quantum state. Then, the bit error rate is compared with a preset threshold (such as any one of 0.05, 0.11, 0.16, etc.) to obtain the consistency verification result. Specifically, if the bit error rate is less than the preset threshold, a consistency verification result indicating that the consistency verification has passed is obtained; or, if the bit error rate is greater than or equal to the preset threshold, a consistency verification result indicating that the consistency verification has failed is obtained.
[0136] It is worth noting that if the consensus verification result is a failure, step E6 may not involve any operation on the current synchronization keystore. Alternatively, if the consensus verification result is a success, step E6 may involve the sender constructing the final quantum key based on the qubits in the target quantum state excluding the public key bit, and adding this final quantum key to the current synchronization keystore, thus obtaining an updated synchronization keystore. Or, if the consensus verification result is a success, step E6 may also involve the sender sending the consensus verification result to the receiver, who then constructs the final quantum key based on the qubits in the initial key string excluding the public key bit, and adds this final quantum key to the current synchronization keystore, thus obtaining an updated synchronization keystore.
[0137] In some embodiments, this application also provides a method for encrypted transmission of video data for a sender, which may include, but is not limited to, steps S210 to S240.
[0138] Step S210: Obtain the video data to be encrypted and transmitted, and divide the video data into blocks to obtain several video blocks;
[0139] Step S220: Obtain a unique quantum key. The unique quantum key is a publicly known quantum key generated by the sender and the receiver through a quantum channel. Each unique quantum key corresponds to a video block.
[0140] Step S230: Based on the corresponding unique quantum key, perform quantum encryption on each video block to obtain several encrypted video blocks.
[0141] Step S240: Send all the video encryption blocks to the receiver via a classical channel so that the receiver can perform quantum decryption on all the video encryption blocks to obtain the video data.
[0142] In the embodiments of this application, the contents of steps S210 to S240 are similar to those of the aforementioned steps S110 to S140, and can be easily deduced by analogy. This application will not repeat them here.
[0143] In some embodiments, this application also provides a method for encrypted transmission of video data for a receiver, which may include, but is not limited to, step S310.
[0144] Step S310: Receive several video encryption blocks sent by the sender, and perform quantum decryption on all the video encryption blocks to obtain video data;
[0145] The video encryption block is obtained through the following steps:
[0146] The sender obtains the video data to be encrypted and transmitted, and divides the video data into blocks to obtain several video blocks;
[0147] The sender obtains a unique quantum key, which is a publicly known quantum key negotiated between the sender and the receiver through a quantum channel. Each unique quantum key corresponds to a video block.
[0148] The sender performs quantum encryption on each video block according to the corresponding unique quantum key, thereby obtaining a number of encrypted video blocks.
[0149] In the embodiments of this application, the content of step S310 is similar to that of the aforementioned steps S110 to S140, and can be easily deduced by analogy. Therefore, this application will not repeat it here.
[0150] Figure 9 A schematic diagram of the framework of an encrypted video data transmission system provided in this application embodiment, including a sender and a receiver;
[0151] The sender 810 is configured to acquire video data to be encrypted and transmit, and to divide the video data into blocks to obtain several video blocks; acquire a unique quantum key, which is a publicly known quantum key generated by the sender and the receiver through a quantum channel, and each unique quantum key corresponds to one video block; perform quantum encryption on each video block according to the corresponding unique quantum key to obtain several encrypted video blocks, and send all the encrypted video blocks to the receiver through a classical channel;
[0152] The receiver 820 is used to perform quantum decryption on all the video encryption blocks to obtain the video data.
[0153] It is understood that the content of the above method embodiments is applicable to this system embodiment. The specific functions implemented in this system embodiment are the same as those in the above method embodiments, and the beneficial effects achieved are also the same as those achieved in the above method embodiments.
[0154] Figure 10 A schematic diagram of the structure of a computer device provided in this application embodiment includes:
[0155] At least one processor 980;
[0156] At least one memory 920 is used to store at least one program;
[0157] When the at least one program is executed by the at least one processor 980, the at least one processor 980 performs the method as described in the foregoing embodiments.
[0158] This application also provides a computer-readable storage medium storing a processor-executable program, which, when executed by the processor 980, is used to implement the methods described in the foregoing embodiments.
[0159] Specifically, computer equipment can be either a user terminal or a server.
[0160] This application uses a computer device as a user terminal as an example, as detailed below:
[0161] like Figure 10As shown, the computer device 900 may include an RF (Radio Frequency) circuit 910, a memory 920 including one or more computer-readable storage media, an input unit 930, a display unit 940, a sensor 950, an audio circuit 960, a WiFi module 970, a processor 980 including one or more processing cores, and a power supply 990, among other components. Those skilled in the art will understand that... Figure 10 The device structure shown does not constitute a limitation on the electronic device and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0162] The RF circuit 910 can be used for receiving and transmitting signals during information transmission or calls. Specifically, it receives downlink information from the base station and hands it over to one or more processors 980 for processing; additionally, it transmits uplink data to the base station. Typically, the RF circuit 910 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, an LNA (Low Noise Amplifier), a duplexer, etc. Furthermore, the RF circuit 910 can also communicate wirelessly with networks and other devices. Wireless communication can use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communication), GPRS (General Packet Radio Service), CDMA (Code Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), LTE (Long Term Evolution), email, SMS (Short Messaging Service), etc.
[0163] The memory 920 can be used to store software programs and modules. The processor 980 executes various functional applications and data processing by running the software programs and modules stored in the memory 920. The memory 920 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, application programs required for at least one function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created according to the use of the device 900 (such as audio data, telephone directory, etc.). In addition, the memory 920 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 920 may also include a memory controller to provide access to the memory 920 for the processor 980 and the input unit 930. Although Figure 10 The RF circuit 910 is shown, but it is understood that it is not a necessary component of the device 900 and can be omitted as needed without changing the nature of the invention.
[0164] The input unit 930 can be used to receive input digital or character information, and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control. Specifically, the input unit 930 may include a touch-sensitive surface 932 and other input devices 931. The touch-sensitive surface 932, also known as a touch display screen or touchpad, can collect touch operations performed by the user on or near it (such as operations performed by the user using a finger, stylus, or any suitable object or accessory on or near the touch-sensitive surface 932), and drive the corresponding connection device according to a pre-set program. Optionally, the touch-sensitive surface 932 may include two parts: a touch detection device and a touch controller. The touch detection device detects the user's touch position and the signal generated by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into touch point coordinates, sends it to the processor 980, and can receive and execute commands from the processor 980. In addition, the touch-sensitive surface 932 can be implemented using various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch-sensitive surface 932, the input unit 930 may also include other input devices 931. Specifically, other input devices 931 may include, but are not limited to, one or more of the following: physical keyboard, function keys (such as volume control buttons, power buttons, etc.), trackball, mouse, joystick, etc.
[0165] Display unit 940 can be used to display information input by the user or information provided to the user, as well as various graphical user interfaces for controlling 900. These graphical user interfaces can be composed of graphics, text, icons, video, and any combination thereof. Display unit 940 may include display panel 941, optionally configured as LCD (Liquid Crystal Display), OLED (Organic Light-Emitting Diode), etc. Further, touch-sensitive surface 932 may cover display panel 941. When touch-sensitive surface 932 detects a touch operation on or near it, it transmits the information to processor 980 to determine the type of touch event. Subsequently, processor 980 provides corresponding visual output on display panel 941 according to the type of touch event. Although in Figure 10 In this embodiment, the touch-sensitive surface 932 and the display panel 941 are implemented as two separate components to realize input and output functions. However, in some embodiments, the touch-sensitive surface 932 and the display panel 941 can be integrated to realize input and output functions.
[0166] The computer device 900 may also include at least one sensor 950, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display panel 941 according to the ambient light level, and the proximity sensor can turn off the display panel 941 and / or backlight when the device 900 is moved to the ear. As a type of motion sensor, a gravity acceleration sensor can detect the magnitude of acceleration in various directions (generally three axes). When stationary, it can detect the magnitude and direction of gravity and can be used for applications that recognize the phone's posture (such as landscape / portrait switching, related games, magnetometer posture calibration), vibration recognition-related functions (such as pedometers, taps), etc. Other sensors that the device 900 may be equipped with, such as gyroscopes, barometers, hygrometers, thermometers, and infrared sensors, will not be described in detail here.
[0167] Audio circuitry 960, speaker 961, and microphone 962 provide an audio interface between the user and device 900. Audio circuitry 960 converts received audio data into electrical signals, which are then transmitted to speaker 961, where they are converted into sound signals for output. Conversely, microphone 962 converts collected sound signals into electrical signals, which are received by audio circuitry 960, converted back into audio data, and then processed by processor 980 before being transmitted via RF circuitry 910 to another control device, or output to memory 920 for further processing. Audio circuitry 960 may also include an earphone jack to facilitate communication between peripheral headphones and device 900.
[0168] Device 900 can transmit information with the wireless transmission module set up on the battle equipment via WiFi module 970.
[0169] Processor 980 is the control center of device 900. It connects various parts of the control device via various interfaces and lines. By running or executing software programs and / or modules stored in memory 920, and by calling data stored in memory 920, it performs various functions of device 900 and processes data, thereby providing overall monitoring of the control device. Optionally, processor 980 may include one or more processing cores; optionally, processor 980 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, while the modem processor mainly handles wireless communication. It is understood that the aforementioned modem processor may not be integrated into processor 950.
[0170] The device 900 also includes a power supply 990 (such as a battery) that supplies power to the various components. Preferably, the power supply can be logically connected to the processor 980 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. The power supply 990 may also include one or more DC or AC power supplies, recharging systems, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0171] Although not shown, device 900 may also include a camera, Bluetooth module, etc., which will not be described in detail here.
[0172] This application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, causes the processor to perform the methods described in the foregoing embodiments.
[0173] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented, for example, in orders other than those illustrated or described herein. Furthermore, the terms “comprising” and “having,” and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatuses.
[0174] It should be understood that in this application, "at least one (item)" means one or more, and "more than" means two or more. "And / or" is used to describe the relationship between related objects, indicating that three relationships can exist. For example, "A and / or B" can represent three cases: only A exists, only B exists, and both A and B exist simultaneously, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one (item) of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one (item) of a, b, or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.
[0175] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection between apparatuses or units through some interfaces, and may be electrical, mechanical, or other forms.
[0176] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0177] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0178] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0179] The step numbers in the above method embodiments are set only for ease of explanation and do not limit the order of the steps. The execution order of each step in the embodiments can be adaptively adjusted according to the understanding of those skilled in the art.
[0180] The above is a detailed description of the preferred embodiments of this application, but this application is not limited to the embodiments described. Those skilled in the art can make various equivalent modifications or substitutions without departing from the spirit of this application, and these equivalent modifications or substitutions are all included within the scope defined by the claims of this application.
Claims
1. A method for encrypted transmission of video data, characterized in that, include: The sender obtains the video data to be encrypted and transmitted, and divides the video data into blocks to obtain several video blocks; The sender obtains a unique quantum key, which is a publicly known quantum key generated by the sender and the receiver through a quantum channel. Each unique quantum key corresponds to a video block. The sender performs quantum encryption on each video block according to the corresponding unique quantum key to obtain a number of encrypted video blocks, and sends all the encrypted video blocks to the receiver through a classical channel; The receiver performs quantum decryption on all the video encryption blocks to obtain the video data; The video data is segmented into blocks to obtain several video blocks, including: Obtain the current partitioning strategy and the factors influencing the partitioning strategy; Based on the factors influencing the block partitioning strategy, the current block partitioning strategy is optimized to obtain the target block partitioning strategy. According to the target segmentation strategy, the video data is segmented into strategy blocks to obtain several video blocks; The process of obtaining the unique quantum key corresponding to each video block includes: Obtain the block attribute information of the video block and the encryption strategy information corresponding to the video block; Based on the block attribute information and the encryption strategy information, several synchronization key blocks in the synchronization key library are assembled and truncated to obtain the original quantum key. The synchronization key library is a quantum key library that is synchronously updated between the sender and the receiver. The key length of the original quantum key corresponds to the data block length in the block attribute information. The original quantum key is indexed to generate the unique quantum key.
2. The method according to claim 1, characterized in that, The method further includes: The sender randomly generates a quantum state and transmits the quantum state to the receiver through the quantum channel. The receiver performs quantum state measurement on the quantum state to obtain the quantum state measurement result, and returns the measurement basis information corresponding to the quantum state measurement result to the sender through the classical channel. The quantum state measurement result includes several quantum state measurement data at different measurement positions, and the measurement basis information corresponding to each quantum state measurement data is different. The sender performs basis alignment and screening on all the measurement basis information according to the quantum state and the preparation basis information corresponding to the quantum state, and obtains the alignment and screening results. The alignment and screening results are used to characterize the measurement position of the correctly measured quantum state measurement data. The receiver receives the comparison and screening results, and selects qubits from the quantum state measurement results based on the comparison and screening results to obtain the public key bits; The sender receives the public key bits and performs consistency verification on the quantum state based on the public key bits to obtain the consistency verification result; The sender updates the current synchronization keystore based on the consistency verification result, and obtains the updated synchronization keystore.
3. The method according to claim 1, characterized in that, Based on the corresponding unique quantum key, the video block is quantum encrypted to obtain a video encrypted block, including: Obtain the block number, timestamp information, and encryption strategy information of the video block, as well as the quantum key index of the unique quantum key; Based on the encryption strategy information and the unique quantum key, the video block is encrypted according to the strategy to obtain a strategy-encrypted block; The strategy encryption block is encapsulated based on the block number, the timestamp information, and the quantum key index to obtain the video encryption block.
4. The method according to claim 1, characterized in that, The process of quantum decrypting all the video encryption blocks to obtain the video data includes: All video encryption blocks are parsed to obtain the block number and data check code of each video encryption block; Based on the block number, all the video encryption blocks are sorted to obtain an encryption block sequence; Based on all the data check codes, the integrity of the encrypted block sequence is checked to obtain the integrity check result; If the integrity verification result indicates that the encrypted block sequence is complete, then the encrypted block sequence is decrypted step by step using the key to obtain the video data.
5. The method according to claim 4, characterized in that, The step-by-step key decryption of the encrypted block sequence to obtain the video data includes: The current video encryption block in the encryption block sequence is used as the target encryption block, and the timestamp information, quantum key index, and decryption strategy information of the target encryption block are obtained, as well as the current decryption block sequence is obtained; Based on the quantum key index, a quantum key search is performed on the synchronization key library to obtain the target quantum key corresponding to the target encryption block; Based on the target quantum key and the decryption strategy information, the target encrypted block is decrypted to obtain the target decrypted block; If at least one video encryption block in the encryption block sequence has not been decrypted according to the policy, the current decryption block sequence is updated according to the target decryption block, and then the process returns to the step of using the current video encryption block in the encryption block sequence as the target encryption block; or, if there is no video encryption block in the encryption block sequence that has not been decrypted according to the policy, the current decryption block sequence is updated according to the target decryption block to obtain the target decryption block sequence, and then all target decryption blocks in the target decryption block sequence are assembled according to all the timestamp information to obtain the video data.
6. A method for encrypted transmission of video data, characterized in that, For the sender, the method includes: The video data to be encrypted and transmitted is obtained, and the video data is divided into blocks to obtain several video blocks; Obtain a unique quantum key, which is a publicly known quantum key generated by the sender and the receiver through a quantum channel, and each unique quantum key corresponds to a video block; Based on the corresponding unique quantum key, each video block is quantum encrypted to obtain several encrypted video blocks. All the video encryption blocks are sent to the receiver via a classical channel, so that the receiver can perform quantum decryption on all the video encryption blocks to obtain the video data; The video data is segmented into blocks to obtain several video blocks, including: Obtain the current partitioning strategy and the factors influencing the partitioning strategy; Based on the factors influencing the block partitioning strategy, the current block partitioning strategy is optimized to obtain the target block partitioning strategy. According to the target segmentation strategy, the video data is segmented into strategy blocks to obtain several video blocks; The process of obtaining the unique quantum key corresponding to each video block includes: Obtain the block attribute information of the video block and the encryption strategy information corresponding to the video block; Based on the block attribute information and the encryption strategy information, several synchronization key blocks in the synchronization key library are assembled and truncated to obtain the original quantum key. The synchronization key library is a quantum key library that is synchronously updated between the sender and the receiver. The key length of the original quantum key corresponds to the data block length in the block attribute information. The original quantum key is indexed to generate the unique quantum key.
7. A method for encrypted transmission of video data, characterized in that, For the receiver, the method includes: Receive several video encryption blocks sent by the sender, and perform quantum decryption on all the video encryption blocks to obtain video data; The video encryption block is obtained through the following steps: The sender obtains the video data to be encrypted and transmitted, and divides the video data into blocks to obtain several video blocks; The sender obtains a unique quantum key, which is a publicly known quantum key negotiated between the sender and the receiver through a quantum channel. Each unique quantum key corresponds to a video block. The sender performs quantum encryption on each video block according to the corresponding unique quantum key, thereby obtaining a plurality of video encryption blocks; The video data is segmented into blocks to obtain several video blocks, including: Obtain the current partitioning strategy and the factors influencing the partitioning strategy; Based on the factors influencing the block partitioning strategy, the current block partitioning strategy is optimized to obtain the target block partitioning strategy. According to the target segmentation strategy, the video data is segmented into strategy blocks to obtain several video blocks; The process of obtaining the unique quantum key corresponding to each video block includes: Obtain the block attribute information of the video block and the encryption strategy information corresponding to the video block; Based on the block attribute information and the encryption strategy information, several synchronization key blocks in the synchronization key library are assembled and truncated to obtain the original quantum key. The synchronization key library is a quantum key library that is synchronously updated between the sender and the receiver. The key length of the original quantum key corresponds to the data block length in the block attribute information. The original quantum key is indexed to generate the unique quantum key.
8. A video data encryption transmission system, characterized in that, Including the sender and the receiver; The sender is configured to acquire video data to be encrypted and transmit, and to divide the video data into blocks to obtain several video blocks; acquire a unique quantum key, which is a publicly known quantum key generated by the sender and the receiver through a quantum channel, and each unique quantum key corresponds to one video block; perform quantum encryption on each video block according to the corresponding unique quantum key to obtain several encrypted video blocks, and send all the encrypted video blocks to the receiver through a classical channel; The receiver is configured to perform quantum decryption on all the video encryption blocks to obtain the video data; The video data is segmented into blocks to obtain several video blocks, including: Obtain the current partitioning strategy and the factors influencing the partitioning strategy; Based on the factors influencing the block partitioning strategy, the current block partitioning strategy is optimized to obtain the target block partitioning strategy. According to the target segmentation strategy, the video data is segmented into strategy blocks to obtain several video blocks; The process of obtaining the unique quantum key corresponding to each video block includes: Obtain the block attribute information of the video block and the encryption strategy information corresponding to the video block; Based on the block attribute information and the encryption strategy information, several synchronization key blocks in the synchronization key library are assembled and truncated to obtain the original quantum key. The synchronization key library is a quantum key library that is synchronously updated between the sender and the receiver. The key length of the original quantum key corresponds to the data block length in the block attribute information. The original quantum key is indexed to generate the unique quantum key.