A transparent proxy encryption storage system based on IPC surveillance video

By introducing a transparent proxy encryption storage system into the video surveillance system, the problem of poor compatibility and repeated construction of video storage encryption and integrity protection in the existing technology is solved, and the confidentiality and integrity protection of video data are achieved without affecting users. usage habits.

CN118200621BActive Publication Date: 2024-09-20SHENZHEN OLYM INFORMATION SECURITY TECHOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410605363.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-16
Publication Date
2024-09-20
Estimated Expiration
2044-05-16

AI Technical Summary

Technical Problem

When existing video surveillance systems perform video storage encryption and integrity protection, they need to replace part or all of the existing system, which leads to repeated construction, long cycles, changes in user habits, and poor compatibility, and cannot be replaced without modification. Ensure the confidentiality and integrity of video data.

Method used

Adopt a transparent proxy encryption storage system based on IPC surveillance video, including IPC monitoring end, proxy encryption end and storage end. The proxy encryption end has preset key generation algorithm and key. By encrypting and signing the video data, the video data is ensured. Confidentiality and integrity during storage without changing user usage habits.

Benefits of technology

Without the need to modify the existing video surveillance system, it ensures the confidentiality and integrity of video data in storage, avoids duplication of construction and changes in user habits, and maintains the normal functions of real-time video surveillance and historical video playback.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118200621B
    Figure CN118200621B
Patent Text Reader

Abstract

The present application provides a transparent proxy encryption storage system based on IPC monitoring video, wherein the proxy encryption end and the storage end are in a transparent proxy relationship; the proxy encryption end is used to determine the first payload data according to the first video data when receiving the first video data sent by the IPC monitoring end, and determine the key frame header of the first video data according to the first video data; generate the first encrypted payload data according to the first payload data and the first key; generate the first key according to the first key generation algorithm, and generate the first encryption key according to the first key and the second key; determine the first encrypted video data according to the first video data, the first payload data, the first encrypted payload data, the first encryption key and the key frame header of the first video data, and send the first encrypted video data to the storage end. The problem of repeated construction, long cycle, need to change user usage habits and poor compatibility in the prior art is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of monitoring technology, and in particular to a transparent proxy encryption storage system based on IPC monitoring video. Background Art

[0002] The video surveillance system includes a network camera and storage. The video surveillance system is generally an integrated hardware and software device and does not have the ability to encrypt video storage, making it inconvenient to directly modify it.

[0003] When modifying a video surveillance system that does not have video storage encryption capabilities, the existing solution requires partial or complete replacement of the existing video surveillance system, which results in problems such as duplicate construction, long cycles, the need to change user usage habits, and poor compatibility. Summary of the invention

[0004] In view of the above problems, the present application is proposed to provide a transparent proxy encryption storage system based on IPC surveillance video that overcomes the above problems or at least partially solves the above problems.

[0005] The present application discloses a transparent proxy encryption storage system based on IPC monitoring video, the system comprises an IPC monitoring end, a proxy encryption end and a storage end; the storage end is at least one of an NVR, a CVR and an EVS; the proxy encryption end and the storage end are in a transparent proxy relationship; the proxy encryption end is preset with a first key generation algorithm and a second key;

[0006] The system comprises:

[0007] The IPC monitoring end is used to send the first video data to the proxy encryption end;

[0008] The proxy encryption end is used to determine the first payload data according to the first video data when receiving the first video data sent by the IPC monitoring end, and to determine the key frame header of the first video data according to the first video data;

[0009] The proxy encryption end is also used to generate first encrypted payload data according to the first payload data and the first key;

[0010] The proxy encryption end is further used to generate a first key according to the first key generation algorithm, and to generate a first encryption key according to the first key and the second key;

[0011] The proxy encryption end is further used to determine the first encrypted video data according to the first video data, the first payload data, the first encrypted payload data, the first encryption key and the key frame header of the first video data, and send the first encrypted video data to the storage end;

[0012] The storage end is used to store the first encrypted video data.

[0013] Preferably, the proxy encryption end is further used to determine the first encrypted video data according to the first video data, the first payload data, the first encrypted payload data, the first encryption key and the key frame header of the first video data;

[0014] in,

[0015] The proxy encryption end is also used to generate a first signature value according to the first encrypted payload data;

[0016] The proxy encryption end is further used to determine the payload data of the first video data according to the first video data;

[0017] The proxy encryption end is also used to update the payload data of the first video data to the first encrypted payload data, write the first signature value and the first encryption key into the key frame header of the first video data, and determine the first encrypted video data.

[0018] Preferably, the proxy encryption end is further used to generate a first signature value according to the first encrypted payload data;

[0019] in,

[0020] The proxy encryption end is further used to perform a hash operation on the first encrypted payload data to generate a first hash value;

[0021] The proxy encryption end is further used to perform a signature operation on the first hash value to generate the first signature value.

[0022] Preferably, the system further comprises a user terminal;

[0023] The system comprises:

[0024] The user end is used to send video request data to the proxy encryption end;

[0025] The proxy encryption end is also used to send the video request data to the storage end when receiving the video request data sent by the user end;

[0026] The storage end is also used for determining the second encrypted video data corresponding to the video request data according to the video request data when the storage end receives the video request data sent by the proxy encryption end, and sending the second encrypted video data to the proxy encryption end;

[0027] The proxy encryption end is also used to generate the second video data according to the second encrypted video data when receiving the second encrypted video data sent by the storage end, and send the second video data to the user end.

[0028] Preferably, the proxy encryption end is further used to generate the second video data according to the second encrypted video data;

[0029] in,

[0030] The proxy encryption end is further used to determine the second encrypted payload data and the key frame header of the second encrypted video data according to the second encrypted video data; the key frame header of the second encrypted video data includes: a frame header signature value;

[0031] The proxy encryption end is further used to perform a hash operation according to the second encrypted payload data to generate a second hash value;

[0032] The proxy encryption end is further used to perform a signature operation on the second hash value to generate a second signature value;

[0033] The proxy encryption end is also used to perform a verification signature operation on the frame header signature value and the second signature value:

[0034] The proxy encryption end is further used to determine a third key according to the key frame header of the second encrypted video data and the second key if the signature verification operation passes;

[0035] The proxy encryption end is further used to determine the second payload data according to the second encrypted payload data and the third key;

[0036] The proxy encryption end is also used to generate second video data according to the second encrypted video data and the second payload data;

[0037] The proxy encryption end is also used to stop generating the second video data based on the second encrypted video data if the signature verification operation fails.

[0038] Preferably, the proxy encryption end is further used to determine a third key according to the key frame header of the second encrypted video data and the second key;

[0039] in,

[0040] The proxy encryption end is further used to determine the second encryption key in the key frame header of the second encrypted video data according to the key frame header of the second encrypted video data;

[0041] The proxy encryption end is further used to determine the third key based on the second encryption key and the second key.

[0042] Preferably, the proxy encryption end is further used to determine the second video data according to the second encrypted video data and the second payload data;

[0043] in,

[0044] The proxy encryption end is further used to determine the payload data of the second encrypted video data according to the second encrypted video data;

[0045] The proxy encryption end is further used to replace the payload data of the second encrypted video data with the second payload data, and determine the second video data.

[0046] Preferably, the third key includes an SM4 algorithm key;

[0047] The proxy encryption end is further used to determine the second payload data according to the second encrypted payload data and the third key;

[0048] in,

[0049] The proxy encryption end is also used to determine the second payload data according to the second encrypted payload data and the third key through the SM4 algorithm.

[0050] Preferably, the first key includes an SM4 algorithm key;

[0051] The proxy encryption end is also used to generate first encrypted payload data according to the first payload data and the first key;

[0052] in,

[0053] The proxy encryption end is also used to generate first encrypted payload data according to the first payload data and the first key through an SM4 algorithm.

[0054] Preferably, the second key includes an SM4 algorithm key;

[0055] The proxy encryption end is also used to generate a first encryption key based on the first key and the second key;

[0056] in,

[0057] The proxy encryption end is also used to generate a first encryption key based on the first key and the second key through the SM4 algorithm.

[0058] This application has the following advantages:

[0059] In an embodiment of the present application, compared with the existing video surveillance system modification plan which requires partial or complete replacement of the existing video surveillance system, the present application provides a transparent proxy encryption storage system based on IPC monitoring video, the system comprising an IPC monitoring end, a proxy encryption end and a storage end; the storage end is at least one of NVR, CVR and EVS; the proxy encryption end and the storage end are in a transparent proxy relationship; the proxy encryption end is preset with a first key generation algorithm and a second key; the system comprises: the IPC monitoring end is used to send first video data to the proxy encryption end; the proxy encryption end is used to, when receiving the first video data sent by the IPC monitoring end, generate a first key based on the first video data The first payload data is determined according to the first video data, and the key frame header of the first video data is determined according to the first video data; the proxy encryption end is also used to generate the first encrypted payload data according to the first payload data and the first key; the proxy encryption end is also used to generate the first key according to the first key generation algorithm, and generate the first encryption key according to the first key and the second key; the proxy encryption end is also used to determine the first encrypted video data according to the first video data, the first payload data, the first encrypted payload data, the first encryption key and the key frame header of the first video data, and send the first encrypted video data to the storage end; the storage end is used to store the first encrypted video data. The present application solves the problems of the prior art of partially or completely replacing the existing video surveillance system, such as duplicate construction, long cycle, need to change user usage habits and poor compatibility, and achieves the technical effect of ensuring the confidentiality and integrity of video data in video storage without the need to transform and adjust the existing video surveillance system, without changing user usage habits and without affecting users' real-time video monitoring and historical video playback. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] In order to more clearly illustrate the technical solution of the present application, the drawings required for use in the description of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0061] Figure 1 This is a structural framework diagram of a transparent proxy encryption storage system based on IPC monitoring video provided by an embodiment of the present application;

[0062] Figure 2 It is another structural framework diagram of a transparent proxy encryption storage system based on IPC monitoring video provided by an embodiment of the present application;

[0063] Figure 3This is a system framework diagram of a video storage encryption system according to a specific embodiment of the present application;

[0064] Figure 4 is a flowchart of video data encryption and signing in a specific embodiment of the present application;

[0065] Figure 5 This is a flowchart of video data decryption and signature verification in a specific embodiment of the present application;

[0066] Figure 6 is a simplified structural diagram of a monitoring system provided by an embodiment of the present application;

[0067] Figure 7 It is a structural diagram of a computer device provided in one embodiment of the present application.

[0068] 601, network camera; 602, host device; 603, storage; 604, terminal device. DETAILED DESCRIPTION

[0069] In order to make the objects, features and advantages of the present application more obvious and understandable, the present application is further described in detail below in conjunction with the accompanying drawings and specific implementation methods. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

[0070] The inventors have analyzed the prior art and found that the existing technical solutions for implementing video storage encryption and integrity protection mainly include the following three:

[0071] First, refer to the GB35114 standard to implement a whole new video surveillance system including: a camera with security capabilities (IPC), a video surveillance platform with security capabilities (including storage servers), a surveillance client with security capabilities, and the corresponding cryptographic infrastructure. Video data begins to be encrypted and signed on the IPC side, is securely transmitted to the video surveillance platform via the network, and is stored on the storage server. The video is stored in the storage server in ciphertext form, and the surveillance client side decrypts and verifies the ciphertext video;

[0072] Second, combining the existing video storage system (NVR / CVR / EVS) and encryption algorithm technology, design and produce integrated video storage devices and corresponding monitoring clients with video encryption and integrity protection capabilities. When video data enters the integrated video storage device, it is encrypted and integrity protected. The video data is decrypted, viewed, and integrity tested on the monitoring client.

[0073] Third, without changing the existing video surveillance system (IPC, NVR / CVR / EVS, monitoring client), deploy a video security gateway before the NVR / CVR / EVS. Users need to export video files through the video security gateway agent, and encrypt and package the exported video files. Users need to enter the correct password to decrypt and view the encrypted video files. The video files stored in the NVR / CVR / EVS are still in plain text.

[0074] However, since the existing video surveillance systems are generally composed of mature hardware and software integrated special equipment, it is difficult to directly modify them. Therefore, the existing technical solutions require partial or complete replacement of the existing video surveillance systems, which has problems such as repeated construction, long cycle, change of user habits, poor compatibility, etc.; and the solutions that do not change the existing video surveillance systems cannot truly achieve the encryption and integrity protection of video data stored on disk.

[0075] Based on the above systematic analysis of the prior art, the inventors believe that: on the video storage side (NVR / CVR / EVS), based on the national secret algorithm and transparent network proxy technology, it is possible to ensure the confidentiality and integrity of video data in video storage without the need to modify and adjust the existing video surveillance system, so as to solve the problems of video data leakage and tampering at the storage end.

[0076] Reference Figure 1 , shows a transparent proxy encryption storage system based on IPC monitoring video provided by an embodiment of the present application, the system includes an IPC monitoring end, a proxy encryption end and a storage end; the storage end is at least one of NVR, CVR and EVS; the proxy encryption end and the storage end are in a transparent proxy relationship; the proxy encryption end is preset with a first key generation algorithm and a second key;

[0077] The system comprises:

[0078] The IPC monitoring end is used to send the first video data to the proxy encryption end;

[0079] The proxy encryption end is used to determine the first payload data according to the first video data when receiving the first video data sent by the IPC monitoring end, and to determine the key frame header of the first video data according to the first video data;

[0080] The proxy encryption end is also used to generate first encrypted payload data according to the first payload data and the first key;

[0081] The proxy encryption end is further used to generate a first key according to the first key generation algorithm, and to generate a first encryption key according to the first key and the second key;

[0082] The proxy encryption end is further used to determine the first encrypted video data according to the first video data, the first payload data, the first encrypted payload data, the first encryption key and the key frame header of the first video data, and send the first encrypted video data to the storage end;

[0083] The storage end is used to store the first encrypted video data.

[0084] In an embodiment of the present application, compared with the existing video surveillance system modification plan which requires partial or complete replacement of the existing video surveillance system, the present application provides a transparent proxy encryption storage system based on IPC monitoring video, the system comprising an IPC monitoring end, a proxy encryption end and a storage end; the storage end is at least one of NVR, CVR and EVS; the proxy encryption end and the storage end are in a transparent proxy relationship; the proxy encryption end is preset with a first key generation algorithm and a second key; the system comprises: the IPC monitoring end is used to send first video data to the proxy encryption end; the proxy encryption end is used to, when receiving the first video data sent by the IPC monitoring end, generate a first key based on the first video data The first payload data is determined according to the first video data, and the key frame header of the first video data is determined according to the first video data; the proxy encryption end is also used to generate the first encrypted payload data according to the first payload data and the first key; the proxy encryption end is also used to generate the first key according to the first key generation algorithm, and generate the first encryption key according to the first key and the second key; the proxy encryption end is also used to determine the first encrypted video data according to the first video data, the first payload data, the first encrypted payload data, the first encryption key and the key frame header of the first video data, and send the first encrypted video data to the storage end; the storage end is used to store the first encrypted video data. The present application solves the problems of the prior art of partially or completely replacing the existing video surveillance system, such as duplicate construction, long cycle, need to change user usage habits and poor compatibility, and achieves the technical effect of ensuring the confidentiality and integrity of video data in video storage without the need to transform and adjust the existing video surveillance system, without changing user usage habits and without affecting users' real-time video monitoring and historical video playback.

[0085] Next, a transparent proxy encryption storage system based on IPC surveillance video in this exemplary embodiment will be further described.

[0086] It should be noted that during the data transmission process, since the proxy encryption end encrypts the video data of the IPC monitoring end, the storage end always stores the encrypted video data. Therefore, when it is necessary to obtain the first encrypted video data in the storage end, the proxy encryption end is required to perform corresponding decryption on the first encrypted video data to achieve confidentiality and integrity protection of the video storage, prevent the leakage and tampering of sensitive videos, and improve the security of the video surveillance system.

[0087] Reference Figure 3 The various ends of the system can communicate through the following communication protocols: RTSP, ONVIF, GB / T28181, Hikvision-Dahua private protocol; the first video data can be an H.264 / H.265 plaintext video stream; the first encrypted video data can be an H.264 / H.265 ciphertext video stream; the proxy encryption end implements the corresponding video encoding processing function.

[0088] As stated in “the system includes an IPC monitoring terminal, an agent encryption terminal and a storage terminal; the storage terminal is at least one of NVR, CVR and EVS”, specifically:

[0089] The IPC monitoring terminal (which can be IPC, IP Camera, i.e., network camera) is used to collect video data in the monitoring scene. The storage terminal is used to store video data encrypted by the proxy encryption terminal. The full name of NVR is Network Video Recorder, i.e., network video recorder; the full name of CVR is Central Video Recorder, i.e., video center storage; the full name of EVS is Elastic Volume Service, i.e., cloud hard disk.

[0090] As stated in “the proxy encryption end and the storage end are in a transparent proxy relationship”, specifically:

[0091] The proxy encryption end may use Linux iptables tproxy transparent proxy technology. Linux tproxy is a transparent proxy technology supported by the Linux system kernel. After Linux kernel version 2.6.28, tproxy has become a part of the Linux kernel. The core principle of Linux tproxy is to receive network data packets routed by netfilter (configured through iptables) and then process the network packets.

[0092] The proxy encryption end does not need to modify or adjust the already built IPC monitoring end and storage end itself when acting as a transparent proxy. The proxy encryption end can be embedded in the already built video monitoring system without perception.

[0093] The proxy encryption end can be deployed in series before the storage end through a network cable; the proxy encryption end can also be deployed in a bypass manner, and the policy routing is configured through a 3-layer managed switch in a video surveillance environment to achieve traffic diversion.

[0094] The proxy encryption end can be configured on a host or server under an x86 or arm architecture, using linux / embedded linux as an operating system.

[0095] For example, “the proxy encryption end is preset with a first key generation algorithm and a second key;” and “the proxy encryption end is further used to generate a first key according to the first key generation algorithm, and to generate a first encryption key according to the first key and the second key;”, specifically:

[0096] It should be noted that the first key may be randomly generated by the proxy encryption end according to the first key generation algorithm.

[0097] The proxy encryption end may use the SM4 algorithm to encrypt the video data, and the keys involved may include:

[0098] Video encryption key (VEK): SM4 algorithm key, which is used to encrypt video key frame data; the first key may be a video encryption key (VEK);

[0099] Video key encryption key (VKEK): SM4 algorithm key, which is used to encrypt VEK. The proxy encryption end can configure a different VKEK for each network camera (IPC); the second key can be a video key encryption key (VKEK);

[0100] Proxy encryption end encryption key (GEK): SM2 or SM9 algorithm key, used to protect VKEK, each proxy encryption end is configured with a different GEK; the proxy encryption end may be preset with a GEK;

[0101] The proxy encryption end can also use the SM2 (or SM9) or SM3 algorithm to sign the video data. The keys involved may include:

[0102] Proxy encryption end signature key (GSK): SM2 or SM9 algorithm key. The proxy encryption end can configure different GSKs for multiple storage ends (NVR / CVR / EVS). The proxy encryption end can use GSK to digitally sign video key frames.

[0103] As described in “the proxy encryption end is used to determine the first payload data according to the first video data when receiving the first video data sent by the IPC monitoring end, and determine the key frame header of the first video data according to the first video data”, specifically:

[0104] The first video data may be transmitted over the network using the RTP protocol, and the proxy encryption end may analyze and parse the H.264 / H.265 video data carried by the RTP protocol data packet according to the RTP protocol data packet;

[0105] Among them, the RTP data packet includes: an RTP header and an RTP payload (PayLoad), the RTP payload (PayLoad) contains H.264 / H.265 encoded video data; the H.264 / H.265 encoded video data organizes the video data according to the NALU (H.264 / H.265 standard definition) structure; the NALU includes a NALU header and RBSP (Raw Byte SequencePayload), the RBSP part is the video frame data; the NALU header contains the nal_unit_type definition, according to the definition of H.264 / H.265, when nal_unit_type=5, it means that this video frame is a video key frame.

[0106] In a specific embodiment of the present application, the proxy encryption end is further used to capture and parse the RTP data packet of the first video data, and extract the RTP payload according to the RTP data packet;

[0107] The proxy encryption end is also used to parse the RTP payload according to the definition of the NALU unit, and determine whether the nal_unit_type of the NALU header represents a video key frame;

[0108] The proxy encryption end is further used for extracting the video key frame corresponding to the RBSP part if yes;

[0109] The proxy encryption end is also used to continue parsing the nal_unit_type of the NALU header if no.

[0110] In one embodiment of the present application, the proxy encryption end is further used to determine the first encrypted video data based on the first video data, the first payload data, the first encrypted payload data, the first encryption key, and the key frame header of the first video data;

[0111] in,

[0112] The proxy encryption end is also used to generate a first signature value according to the first encrypted payload data;

[0113] The proxy encryption end is further used to determine the payload data of the first video data according to the first video data;

[0114] The proxy encryption end is also used to update the payload data of the first video data to the first encrypted payload data, write the first signature value and the first encryption key into the key frame header of the first video data, and determine the first encrypted video data.

[0115] It should be noted that the proxy encryption end can be used to use the SM4 algorithm to encrypt the first encrypted payload data to obtain first encrypted payload data, hash the first encrypted payload data using the SM3 algorithm to obtain a first hash value, use the SM2 or SM9 algorithm to perform signature calculation on the first hash value to generate a first signature value, update the first signature value to the key frame header of the first video data, and use the first encrypted payload data as the payload data of the first encrypted video data.

[0116] In one embodiment of the present application, the proxy encryption end is further used to generate a first signature value based on the first encrypted payload data;

[0117] in,

[0118] The proxy encryption end is further used to perform a hash operation on the first encrypted payload data to generate a first hash value;

[0119] The proxy encryption end is further used to perform a signature operation on the first hash value to generate the first signature value.

[0120] It should be noted that the hash operation may be a hash operation.

[0121] Reference Figure 2 In one embodiment of the present application, the system further includes a user terminal;

[0122] The system comprises:

[0123] The user end is used to send video request data to the proxy encryption end;

[0124] The proxy encryption end is also used to send the video request data to the storage end when receiving the video request data sent by the user end;

[0125] The storage end is also used for determining the second encrypted video data corresponding to the video request data according to the video request data when the storage end receives the video request data sent by the proxy encryption end, and sending the second encrypted video data to the proxy encryption end;

[0126] The proxy encryption end is also used to generate the second video data according to the second encrypted video data when receiving the second encrypted video data sent by the storage end, and send the second video data to the user end.

[0127] It should be noted that the second encrypted video data corresponding to the video request data includes any video data encrypted at any time and stored in the storage end, and the second encrypted video data may be real-time video data stored in real time in the storage end, and / or historical video data previously stored in the storage end. The technical effect of this embodiment is that the user's usage habits are not changed, and the user still uses the original hardware equipment, software program and usage method, which does not affect the user's function of watching real-time video monitoring and historical video playback.

[0128] In an embodiment of the present application, the proxy encryption end is further used to generate the second video data according to the second encrypted video data;

[0129] in,

[0130] The proxy encryption end is further used to determine the second encrypted payload data and the key frame header of the second encrypted video data according to the second encrypted video data; the key frame header of the second encrypted video data includes: a frame header signature value;

[0131] The proxy encryption end is further used to perform a hash operation according to the second encrypted payload data to generate a second hash value;

[0132] The proxy encryption end is further used to perform a signature operation on the second hash value to generate a second signature value;

[0133] The proxy encryption end is also used to perform a verification signature operation on the frame header signature value and the second signature value:

[0134] The proxy encryption end is further used to determine a third key according to the key frame header of the second encrypted video data and the second key if the signature verification operation passes;

[0135] The proxy encryption end is further used to determine the second payload data according to the second encrypted payload data and the third key;

[0136] The proxy encryption end is also used to generate second video data according to the second encrypted video data and the second payload data;

[0137] The proxy encryption end is also used to stop generating the second video data based on the second encrypted video data if the signature verification operation fails.

[0138] It should be noted that the frame header signature value may be written by the proxy encryption end; the third key may be a video encryption key (VEK) used to decrypt the second encrypted payload data. The third key is used to decrypt the second encrypted payload data.

[0139] In one embodiment of the present application, the proxy encryption end is further used to determine a third key based on a key frame header of the second encrypted video data and the second key;

[0140] in,

[0141] The proxy encryption end is further used to determine the second encryption key in the key frame header of the second encrypted video data according to the key frame header of the second encrypted video data;

[0142] The proxy encryption end is further used to determine the third key based on the second encryption key and the second key.

[0143] It should be noted that the second encryption key can be obtained by the proxy encryption end by encrypting VEK through VKEK.

[0144] In an embodiment of the present application, the proxy encryption end is further used to determine the second video data according to the second encrypted video data and the second payload data;

[0145] in,

[0146] The proxy encryption end is further used to determine the payload data of the second encrypted video data according to the second encrypted video data;

[0147] The proxy encryption end is further used to replace the payload data of the second encrypted video data with the second payload data, and determine the second video data.

[0148] In one embodiment of the present application, the third key includes an SM4 algorithm key;

[0149] The proxy encryption end is further used to determine the second payload data according to the second encrypted payload data and the third key;

[0150] in,

[0151] The proxy encryption end is also used to determine the second payload data according to the second encrypted payload data and the third key through the SM4 algorithm.

[0152] In one embodiment of the present application, the first key includes an SM4 algorithm key;

[0153] The proxy encryption end is also used to generate first encrypted payload data according to the first payload data and the first key;

[0154] in,

[0155] The proxy encryption end is also used to generate first encrypted payload data according to the first payload data and the first key through an SM4 algorithm.

[0156] In one embodiment of the present application, the second key includes an SM4 algorithm key;

[0157] The proxy encryption end is also used to generate a first encryption key based on the first key and the second key;

[0158] in,

[0159] The proxy encryption end is also used to generate a first encryption key based on the first key and the second key through the SM4 algorithm.

[0160] Reference Figure 3 , shows a system framework diagram of a video storage encryption system of a specific embodiment of the present invention, wherein when the video storage (NVR / CVR / EVS) pulls the H.264 / H.265 plaintext video stream from the network camera (IPC) through the video surveillance protocol (RTSP, ONVIF, GB / T28181, Hikvision Dahua private protocol), it will first pass through the video storage encryption system. The video storage encryption system analyzes the video data content in the video surveillance protocol in real time, extracts the video key frame header and payload data therein, encrypts and signs the video key frame payload data using the national secret encryption and signature algorithm, and updates the signature value to the video key frame header, then replaces the original plaintext data in the video surveillance protocol with the processed ciphertext video key frame payload data, and then transparently forwards it to the video storage (NVR / CVR / EVS), and finally the video storage stores the encrypted video data on the disk.

[0161] When the monitoring client views the real-time video monitoring screen and historical monitoring playback screen through the video monitoring protocol (RTSP, ONVIF, GB / T28181, Hikvision Dahua private protocol), the video storage (NVR / CVR / EVS) returns the corresponding encrypted video data. This data is transmitted in the video monitoring protocol and also passes through the video storage encryption system. The video storage encryption system analyzes the video data content in the video monitoring protocol in real time, extracts the video key frames and payload data, and uses the national secret encryption and signature algorithm to decrypt and compare the video key frame payload data. The processed plaintext data replaces the original ciphertext data in the video monitoring protocol, and then transparently forwards it to the monitoring client. Finally, the monitoring client displays the plaintext video data to the user for viewing.

[0162] The video storage encryption system includes: "transparent network processing module", "encryption and decryption strategy module", "video surveillance protocol processing module", "video encoding processing module", and "video encryption and decryption and signature verification module".

[0163] Transparent network processing module: Using Linux iptables tproxy transparent proxy technology, according to the encryption and decryption policy information provided by the "encryption and decryption policy module", pull the plaintext video stream data sent by the IPC to the video storage to be encrypted and signed, and hand it over to the "video surveillance protocol processing module" for further processing; pull the ciphertext video stream sent by the video storage to the monitoring client to be decrypted and signed, and hand it over to the "video surveillance protocol processing module" for further processing;

[0164] Encryption and decryption strategy module: contains encryption strategy and decryption strategy. The encryption strategy is the IP address list information of the IPC to be encrypted and stored, and the decryption strategy is the IP address list information of the monitoring client to be decrypted to view real-time video monitoring and historical playback; the "transparent network processing module" pulls the corresponding video stream data to be encrypted and signed, and the video stream data to be decrypted and signed according to the information provided by the encryption and decryption strategy module;

[0165] Video surveillance protocol processing module: Receives video stream data to be encrypted and signed, decrypted and verified pulled by the transparent network processing module, automatically identifies and parses video surveillance protocol types: RTSP, ONVIF, GB / T28181, Hikvision Dahua private protocol, extracts H.264 / H.265 video data after unpacking and passes it to the "video encoding processing module" for further processing. In addition, after the module receives the encrypted and signed, decrypted and verified video data processed by the "video encoding processing module" and the "video encryption, decryption and signature verification module", it re-packs it according to the original video surveillance protocol and passes it to the "transparent network processing module" for further processing;

[0166] Video encoding processing module: receives H.264 / H.265 video data extracted by the "video surveillance protocol processing module", automatically analyzes and identifies video key frames, extracts the frame header and payload data of the key frames and hands them over to the "video encryption and decryption and signature verification module" for further processing. In addition, the module receives the video key frame data encrypted and signed or decrypted and verified by the "video encryption and decryption and signature verification module" and re-encodes it, and hands it over to the "video surveillance protocol processing module" for further processing;

[0167] Video encryption and decryption and signature verification module: includes "video frame data encryption and signature" and "video frame data decryption and signature verification". The module receives the video key frame header and payload data extracted by the "video encoding processing module", and determines whether "encryption and signature" or "decryption and signature verification" is required based on the frame header information. Among them, the "encryption and signature" process is: use the SM4 algorithm to encrypt the payload data to obtain the ciphertext, use the SM3 algorithm to hash the ciphertext data to obtain the hash value, use the SM2 or SM9 algorithm to sign the hash value to obtain the signature value, update the signature value to the frame header of the video key frame, use the ciphertext as the payload data of the video key frame, and hand it over to the "video encoding processing module" for further processing. The "decryption and signature verification" process is: use the SM3 algorithm to hash the ciphertext payload data to obtain the hash value, use the SM2 or SM9 algorithm to verify the signature value stored in the hash value and the key frame header. If the signature verification operation passes, it means that the video has not been tampered with. If the signature verification operation fails, it means that the video has been tampered with.

[0168] Reference Figure 4 , shows a flowchart of video data encryption and signing according to a specific embodiment of the present invention, which specifically includes the following steps:

[0169] 1. The video storage encryption system parses the video surveillance protocol, obtains the plaintext video key frame data, and further parses to obtain the frame header and plaintext payload data of the video key frame;

[0170] 2. Use VEK to encrypt the plaintext payload data obtained in the previous step to obtain the ciphertext payload data;

[0171] 3. Use the SM3 algorithm to perform a hash operation on the ciphertext payload generated in the previous step to obtain the hash value of the ciphertext payload;

[0172] 4. Use GSK to perform a signature operation on the hash value of the ciphertext payload generated in the previous step to obtain the signature value;

[0173] 5. Use VKEK to encrypt VEK and obtain the ciphertext VEK key;

[0174] 6. Use the ciphertext payload generated in step 2 to update the plaintext payload of the original video key frame, and write the signature value generated in step 4 and the ciphertext VEK generated in step 5 into the frame header of the original plaintext video key frame to complete the encryption and signing of the video data.

[0175] Reference Figure 5 , shows a flowchart of video data decryption and signature verification according to a specific embodiment of the present invention, which specifically includes the following steps:

[0176] 1. The video storage encryption system parses the video surveillance protocol, obtains the ciphertext video key frame data, and further parses to obtain the frame header and ciphertext payload data of the video key frame;

[0177] 2. Use the SM3 algorithm to perform a hash operation on the ciphertext payload obtained in the previous step to obtain the hash value of the ciphertext payload;

[0178] 3. Use GSK to perform a signature verification operation on the hash value of the ciphertext payload generated in the previous step and the signature value in the frame header obtained in step 1. If the signature verification operation passes, it means that the video has not been tampered with, and the video data continues to be decrypted. If the signature verification operation fails, it means that the video has been tampered with, and the video data decryption stops;

[0179] 4. Use VKEK to decrypt the ciphertext VEK in the frame header obtained in step 1 to obtain the plaintext VEK key;

[0180] 5. Use VEK to decrypt the ciphertext payload data obtained in step 1 to obtain the plaintext payload data;

[0181] 6. Use the plaintext payload generated by the previous decryption step to update the ciphertext payload of the original video key frame to complete the decryption and signature verification of the video data.

[0182] Reference Figure 6 , showing a monitoring system provided by an embodiment of the present invention, the monitoring system is used to implement the function of the transparent proxy encryption storage system based on IPC monitoring video as described in any embodiment of the present application;

[0183] The monitoring system includes: a network camera 601 for realizing the function of the IPC monitoring terminal, a host device 602 for realizing the function of the proxy encryption terminal, a memory 603 for realizing the function of the storage terminal, and a terminal device 604 for realizing the function of the user terminal;

[0184] Among them, the network camera 601 includes at least one; the memory 603 includes at least one; and the terminal device 604 includes at least one.

[0185] It should be noted that the host device 602 can be a host or server under the x86 or arm architecture, and the operating system running can be linux / embedded linux. The host device 602 can include at least two network ports (electrical ports / optical ports) and a physical password card that has passed the national encryption certification.

[0186] Reference Figure 7 , shows a computer device according to an embodiment of the present application, which may specifically include the following:

[0187] The computer device 12 is in the form of a general-purpose computing device, and the components of the computer device 12 may include but are not limited to: one or more processors or processing units 16, a memory 28, and a bus 18 connecting different system components (including the memory 28 and the processing unit 16).

[0188] The bus 18 represents one or more of several types of bus 18 structures, including a memory bus 18 or memory controller, a peripheral bus 18, an accelerated graphics port, a processor, or a local bus 18 using any of a variety of bus 18 architectures. These architectures include, by way of example, but are not limited to, an Industry Standard Architecture (ISA) bus 18, a Micro Channel Architecture (MAC) bus 18, an Enhanced ISA bus 18, an Audio Video Electronics Standards Association (VESA) local bus 18, and a Peripheral Component Interconnect (PCI) bus 18.

[0189] The computer device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the computer device 12, including volatile and non-volatile media, removable and non-removable media.

[0190] Memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. Computer device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 34 may be used to read and write to non-removable, non-volatile magnetic media (commonly referred to as a "hard drive"). Although Figure 7 Not shown, a disk drive for reading and writing to a removable non-volatile disk (such as a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (such as a CD-ROM, DVD-ROM or other optical medium) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The memory may include at least one program product having a set (e.g., at least one) of program modules 42, which are configured to perform the functions of various embodiments of the present invention.

[0191] A program / utility 40 having a set (at least one) of program modules 42 may be stored in, for example, a memory, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules 42, and program data, each of which or some combination may include an implementation of a network environment. The program modules 42 generally perform the functions and / or methods of the embodiments described herein.

[0192] The computer device 12 may also communicate with one or more external devices 14 (e.g., keyboards, pointing devices, displays 24, cameras, etc.), one or more devices that enable a user to interact with the computer device 12, and / or any device that enables the computer device 12 to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed via an input / output (I / O) interface 22. Furthermore, the computer device 12 may also communicate with one or more networks (e.g., local area networks (LANs)), wide area networks (WANs), and / or public networks (e.g., the Internet) via a network adapter 20. Figure 7 As shown, the network adapter 20 communicates with other modules of the computer device 12 via the bus 18. It should be understood that although Figure 7 Not shown, other hardware and / or software modules may be used in conjunction with the computer device 12, including but not limited to: microcode, device drivers, redundant processing units 16, external disk drive arrays, RAID systems, tape drives, and data backup storage systems 34, etc.

[0193] The processing unit 16 executes various functional applications and data processing by running the programs stored in the memory 28, for example, realizing the function of the proxy encryption terminal in a transparent proxy encryption storage system based on IPC monitoring video provided in an embodiment of the present invention.

[0194] That is, when the processing unit 16 executes the program: it is used to determine the first payload data according to the first video data, and determine the key frame header of the first video data according to the first video data;

[0195] Used to generate first encrypted payload data according to the first payload data and the first key;

[0196] used to generate a first encryption key based on the first key and the second key;

[0197] Used to determine first encrypted video data based on the first video data, the first payload data, the first encrypted payload data, the first encryption key and the key frame header of the first video data, and send the first encrypted video data to the storage end.

[0198] In an embodiment of the present invention, the present invention further provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the function of the proxy encryption end in a transparent proxy encryption storage system based on IPC monitoring video provided in all embodiments of the present application is implemented:

[0199] That is, when the program is executed by the processor: it is used to determine the first payload data according to the first video data, and determine the key frame header of the first video data according to the first video data;

[0200] Used to generate first encrypted payload data according to the first payload data and the first key;

[0201] used to generate a first encryption key based on the first key and the second key;

[0202] Used to determine first encrypted video data based on the first video data, the first payload data, the first encrypted payload data, the first encryption key and the key frame header of the first video data, and send the first encrypted video data to the storage end.

[0203] Any combination of one or more computer-readable media may be used. A computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared or semiconductor system, device or device, or any combination thereof. 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 or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, device or device.

[0204] Computer-readable signal media may include a data signal propagated in baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0205] The computer program code for performing the operation of the present invention can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages, such as Java, Go, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet). The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can be referred to each other.

[0206] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present application.

[0207] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.

[0208] The above is a detailed introduction to a transparent proxy encrypted storage system based on IPC surveillance video provided by the present application. This article uses specific examples to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the idea of ​​the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A transparent proxy encryption storage system based on IPC surveillance video, characterized in that: The system includes an IPC monitoring terminal, a user terminal, an agent encryption terminal and a storage terminal; the storage terminal is at least one of an NVR, a CVR and an EVS; the agent encryption terminal and the storage terminal are in a transparent proxy relationship; the agent encryption terminal and the user terminal are in a transparent proxy relationship; the agent encryption terminal is used to be embedded in the established video monitoring system to form the transparent agent encryption storage system based on the IPC monitoring video; The proxy encryption end is preset with a first key generation algorithm and a second key; The system comprises: The IPC monitoring end is used to send the first video data to the proxy encryption end; The proxy encryption end is used to determine the first payload data according to the first video data when receiving the first video data sent by the IPC monitoring end, and to determine the key frame header of the first video data according to the first video data; The proxy encryption end is also used to generate first encrypted payload data according to the first payload data and the first key; The proxy encryption end is further used to generate a first key according to the first key generation algorithm, and to generate a first encryption key according to the first key and the second key; The proxy encryption end is further used to determine the first encrypted video data according to the first video data, the first payload data, the first encrypted payload data, the first encryption key and the key frame header of the first video data, and send the first encrypted video data to the storage end; The storage end is used to store the first encrypted video data; The user end is used to send video request data to the proxy encryption end; The proxy encryption end is also used to send the video request data to the storage end when receiving the video request data sent by the user end; The storage end is also used for determining the second encrypted video data corresponding to the video request data according to the video request data when the storage end receives the video request data sent by the proxy encryption end, and sending the second encrypted video data to the proxy encryption end; The proxy encryption end is also used to generate second video data based on the second encrypted video data when receiving the second encrypted video data sent by the storage end, and send the second video data to the user end.

2. The system according to claim 1, characterized in that The proxy encryption end is further used to determine the first encrypted video data according to the first video data, the first payload data, the first encrypted payload data, the first encryption key and the key frame header of the first video data; in, The proxy encryption end is also used to generate a first signature value according to the first encrypted payload data; The proxy encryption end is further used to determine the payload data of the first video data according to the first video data; The proxy encryption end is also used to update the payload data of the first video data to the first encrypted payload data, write the first signature value and the first encryption key into the key frame header of the first video data, and determine the first encrypted video data.

3. The system according to claim 2, characterized in that The proxy encryption end is also used to generate a first signature value according to the first encrypted payload data; in, The proxy encryption end is further used to perform a hash operation on the first encrypted payload data to generate a first hash value; The proxy encryption end is further used to perform a signature operation on the first hash value to generate the first signature value.

4. The system according to claim 1, characterized in that The proxy encryption end is also used to generate the second video data according to the second encrypted video data; in, The proxy encryption end is further used to determine the second encrypted payload data and the key frame header of the second encrypted video data according to the second encrypted video data; the key frame header of the second encrypted video data includes: a frame header signature value; The proxy encryption end is further used to perform a hash operation according to the second encrypted payload data to generate a second hash value; The proxy encryption end is further used to perform a signature operation on the second hash value to generate a second signature value; The proxy encryption end is also used to perform a verification signature operation on the frame header signature value and the second signature value: The proxy encryption end is further used to determine a third key according to the key frame header of the second encrypted video data and the second key if the signature verification operation passes; The proxy encryption end is further used to determine the second payload data according to the second encrypted payload data and the third key; The proxy encryption end is also used to generate second video data according to the second encrypted video data and the second payload data; The proxy encryption end is also used to stop generating the second video data based on the second encrypted video data if the signature verification operation fails.

5. The system according to claim 4, characterized in that The proxy encryption end is further used to determine a third key according to the key frame header of the second encrypted video data and the second key; in, The proxy encryption end is further used to determine the second encryption key in the key frame header of the second encrypted video data according to the key frame header of the second encrypted video data; The proxy encryption end is further used to determine the third key based on the second encryption key and the second key.

6. The system according to claim 4, characterized in that The proxy encryption end is further used to determine the second video data according to the second encrypted video data and the second payload data; in, The proxy encryption end is further used to determine the payload data of the second encrypted video data according to the second encrypted video data; The proxy encryption end is further used to replace the payload data of the second encrypted video data with the second payload data, and determine the second video data.

7. The system according to claim 4, characterized in that The third key includes an SM4 algorithm key; The proxy encryption end is further used to determine the second payload data according to the second encrypted payload data and the third key; in, The proxy encryption end is also used to determine the second payload data according to the second encrypted payload data and the third key through the SM4 algorithm.

8. The system according to claim 1, characterized in that The first key includes an SM4 algorithm key; The proxy encryption end is also used to generate first encrypted payload data according to the first payload data and the first key; in, The proxy encryption end is also used to generate first encrypted payload data according to the first payload data and the first key through an SM4 algorithm.

9. The system according to claim 1, characterized in that The second key includes an SM4 algorithm key; The proxy encryption end is also used to generate a first encryption key based on the first key and the second key; in, The proxy encryption end is also used to generate a first encryption key based on the first key and the second key through the SM4 algorithm.