Compliance method for NAL layer encryption and transmission of H.264 or H.265 media stream data

By adopting the NAL layer encryption and transmission method based on H.264 or H.265 media stream data in the monitoring system, the problem that the existing technology cannot meet the SVAC encoding requirements is solved, and the H.264 and H.265 code streams are realized. Encrypted transmission and anti-tampering ensure data integrity and security within the network security domain.

CN113225534BActive Publication Date: 2024-09-06SHANGHAI XINJIYI DIGITAL TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110491961.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-05-06
Publication Date
2024-09-06
Estimated Expiration
2041-05-06

AI Technical Summary

Technical Problem

Existing monitoring equipment and systems cannot meet the SVAC encoding requirements and require a lot of resources to be modified. There is also a lack of SVAC encoding and decoding hardware equipment that complies with GB/T35114-2017.

Method used

Using the NAL layer encryption and transmission method based on H.264 or H.265 media stream data, the front-end camera data is converted into encrypted data that complies with the GB35114 protocol through the full Netcom security encryption machine, and authority authentication is performed through the secure access management machine For data communication, AES128 encryption and SHA256 digest verification are used, combined with the video resource security gateway for authorized decryption to ensure safe data transmission.

Benefits of technology

It realizes tamper-proof and encrypted transmission of H.264 and H.265 code streams, and complies with the GB/T35114-2017 specification, ensuring that data in the network security domain is tamper-proof and attack-proof, and prevents sensitive data from being leaked.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113225534B
    Figure CN113225534B
Patent Text Reader

Abstract

The invention discloses a conformity method for NAL layer encryption and transmission of H.264 or H.265 media stream data, comprising the following steps: the video and structured data of a data acquisition platform are connected to a full-network security encryption machine through a GB / T28181 or GA / T1400 protocol, and the full-network security encryption machine converts the GB / T28181 or GA / T1400 protocol data of a front-end camera into encrypted data conforming to the GB35114 protocol; the invention improves the encryption algorithms, video stream data signatures and data encapsulation methods of various code streams such as H.264 and 265, realizes the tamper-proof and encrypted transmission of the code stream, and at the same time, fully complies with the encryption system required by the GB / T35114-2017 specification, ensures the tamper-proof and attack-proof in the non-security domain of the network, and prevents the leakage of various sensitive data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and in particular to a compliance method based on NAL layer encryption and transmission of H.264 or H.265 media stream data. Background Art

[0002] Most of the existing monitoring equipment and systems cannot meet the SVAC coding requirements. To transform all of them to GB / T35114-2017 according to the requirements of GB / T25724-2017 requires a huge amount of resources and SVAC encoding and decoding hardware equipment. Summary of the invention

[0003] The technical problem solved by the present invention is to provide a compliance method for NAL layer encryption and transmission of H.264 or H.265 media stream data to solve the problems raised in the above background technology.

[0004] The technical problem solved by the present invention is achieved by adopting the following technical solution: a conformity method based on NAL layer encryption and transmission of H.264 or H.265 media stream data, comprising the following steps:

[0005] Step (1). The video and structured data of the data acquisition platform are connected to the all-network security encryption machine through the GB / T28181 or GA / T1400 protocol, and the all-network security encryption machine converts the GB / T28181 or GA / T1400 protocol data of the front-end camera into encrypted data that complies with the GB35114 protocol;

[0006] Step (2). Communicate with the security access management machine through the operator link / dedicated line / bare fiber transmission to complete access authority authentication, system equipment registration and verification, and data communication port aggregation and multiple data security communication transmission functions;

[0007] Step (3). The video and face and license plate smart cameras of the front-end cameras and the data server are obtained through the security access management machine, and then one-way access is made to the public security image perception network through the security transparent transmission function of the comprehensive video resource security gateway. The video data aggregation security gateway is then authorized in conjunction with the certificate key system, decrypted and restored to the GB / T28181 or GA / T1400 protocol, and connected to the superior intelligent monitoring platform.

[0008] The all-network security encryption machine completes the legality authentication of the equipment and the encryption of the signaling and audio and video streams of the front-end equipment or system. The central convergence security gateway device is responsible for security authentication and decryption, and at the same time provides GB / T28181 and GA / T1400 networking services for other non-encrypted platform systems in the center.

[0009] The encryption method of the all-network security encryption machine is to perform AES128 encryption on the entire I frame data. After the server receives the above data and decrypts it, it needs to compare the SHA256 summary, user token, video token, and channelID for legitimacy verification. If the four do not match, the entire GOP data is discarded.

[0010] The video token and user token are valid for 1 hour. Before expiration, the streaming device needs to refresh or re-request the token in the signaling communication with the server and use it in the next I frame.

[0011] The all-network security encryption machine retains the original NAL structure and RBSP data of the H264 and 265 code streams, and adds security parameter set NAL, digital signature NAL and absolute time extension information to the H264 and 265 data streams in accordance with the requirements of GB / T35114-2017 and GB / T25724-2017, thereby realizing anti-hijacking and anti-tampering of the H264 and 265 code streams.

[0012] The all-network security encryption machine retains the original NAL structure data of the H264 and 265 code streams, and uses the encryption syntax described by the newly added security parameter set NAL to encrypt the video coding slice RBSP data of the H264 and 265 data streams in accordance with the requirements of GB / T35114-2017 and GB / T25724-2017 to generate new encrypted coding slice RBSP data, thereby realizing the encryption of the H264 and 265 video streams.

[0013] The all-network security encryption machine generates encrypted audio data using the VEK and IV of video encryption according to the encryption algorithm requirements specified in GB / T35114-2017; it adopts scalable and selectable encryption extensions, with three options: RBSP encryption / decryption of coding slices of video I frames, RBSP encryption / decryption of coding slices of video global domain, and encryption / decryption of video + audio global domain, which can selectively reduce the algorithm's occupancy of the CPU, reduce the time consumption of encryption / decryption of video streams, and reduce the delay of video encryption transmission.

[0014] The video structured data encryption of the all-network security encryption machine: the image data is encrypted according to the encryption algorithm requirements specified in GB / T35114-2017, and the control signaling part retains the communication method of GA / T1400.

[0015] Compared with the prior art, the beneficial effects of the present invention are: the present invention improves the encryption algorithms, video stream data signatures and data encapsulation methods of various code streams such as H264 and 265, realizes the tamper-proof and encrypted transmission of the code stream, and at the same time, fully complies with the encryption system required by the GB / T35114-2017 specification, ensures tamper-proof and anti-attack in the non-security domain of the network, and prevents the leakage of various sensitive data. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 Schematic diagram of the system architecture of the present invention. DETAILED DESCRIPTION

[0017] In order to make the technical means for realizing the present invention, the creative features, the objectives and effects to be achieved easy to understand, the present invention is further explained below in conjunction with specific diagrams. In the description of the present invention, it should be noted that, unless otherwise clearly stipulated and limited, the terms "installation", "connection" and "connection" should be understood in a broad sense. For example, it can be a fixed connection or a detachable connection, or an integral connection can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, or it can be internal communication between two elements.

[0018] like Figure 1 As shown, the compliance method for NAL layer encryption and transmission of H.264 or H.265 media stream data includes the following steps:

[0019] Step (1). The video and structured data of the data acquisition platform are connected to the VC-NFSP1600-X full-network security encryption machine through the GB / T28181 or GA / T1400 protocol. The VC-NFSP1600-X full-network security encryption machine converts the GB / T28181 or GA / T1400 protocol data of the front-end camera into encrypted data that complies with the GB35114 protocol;

[0020] Step (2). Communicate with the VC-SS-NCG security access management machine through the operator link / dedicated line / bare fiber to complete access authority authentication, system equipment registration and verification, and data communication port aggregation and multiple data security communication transmission functions;

[0021] Step (3). The video and face and license plate smart cameras of the front-end cameras and the data server are obtained through the security access management machine, and then one-way access is made to the public security image perception network through the secure transparent transmission function of the VC-SS6200 comprehensive video resource security gateway. The VC-NDPS3600 video data aggregation security gateway is then used to authorize the data in conjunction with the certificate key system, decrypt and restore it to the GB / T28181 or GA / T1400 protocol, and then access the superior intelligent monitoring platform.

[0022] The all-network security encryption machine completes the legality authentication of the equipment and the encryption of the signaling and audio and video streams of the front-end equipment or system. The central convergence security gateway device is responsible for security authentication and decryption, and at the same time provides GB / T28181 and GA / T1400 networking services for other non-encrypted platform systems in the center.

[0023] The encryption method of the all-network security encryption machine is to perform AES128 encryption on the entire I frame data. After the server receives the above data and decrypts it, it needs to compare the SHA256 summary, user token, video token, and channelID for legitimacy verification. If the four do not match, the entire GOP data is discarded.

[0024] The video token and user token are valid for 1 hour. Before expiration, the streaming device needs to refresh or re-request the token in the signaling communication with the server and use it in the next I frame.

[0025] Example 1

[0026] Direct access method of front-end camera: The video and structured data of the front-end camera are accessed to the VC-NFSP1600-X all-network security encryption machine through the GB / T28181 or GA / T1400 protocol. The VC-NFSP1600-X all-network security encryption machine converts the GB / T28181 or GA / T1400 protocol data of the front-end camera into encrypted data that complies with the GB35114 protocol, and communicates with the VC-SS-NCG security access management machine through the operator link / dedicated line / bare optical fiber to complete the access authority authentication and system equipment registration. It has multiple data security communication and transmission functions such as registration and verification, port aggregation of data communication, etc., and obtains relevant data and files from smart cameras such as face and license plates of front-end cameras and data servers through the secure access management machine, and then accesses to the public security image perception network in one direction through the secure transparent transmission function of the VC-SS6200 comprehensive video resource security gateway, and then decrypts and restores it to GB / T28181 or GA / T1400 protocol by the VC-NDPS3600 video data aggregation security gateway (authorized with the certificate key system) to access the superior intelligent monitoring platform.

[0027] Example 2

[0028] Front-end NVR access method: The video and structured data of the front-end NVR are connected to the VC-NFSP1600-X all-network security encryption machine through the GB / T28181 or GA / T1400 protocol. The VC-NFSP1600-X all-network security encryption machine converts the GB / T28181 or GA / T1400 protocol data of the front-end NVR into encrypted data that complies with the GB35114 protocol, and communicates with the VC-SS-NCG security access management machine through the operator link / dedicated line / bare optical fiber to complete decryption and access authority authentication, system equipment Registration and verification, data communication port aggregation and other data security communication transmission functions, through the security access management machine to the front-end camera video and face, license plate and other intelligent cameras and data servers to obtain relevant data and files, and then through the VC-SS6200 comprehensive video resource security gateway security transparent transmission function unidirectional access to the public security image perception network, and then by the VC-NDPS3600 video data aggregation security gateway (with the certificate key system for authorization) to decrypt and restore to GB / T28181 or GA / T1400 protocol, access to the superior intelligent monitoring platform.

[0029] Example 3

[0030] Front-end platform access method: The video and structured data of the monitoring platform are connected to the VC-NFSP1600-X all-network security encryption machine through the GB / T28181 or GA / T1400 protocol. The VC-NFSP1600-X all-network security encryption machine converts the GB / T28181 or GA / T1400 protocol data of the front-end camera into encrypted data that complies with the GB35114 protocol, and communicates with the VC-SS-NCG security access management machine through the operator link / dedicated line / bare optical fiber to complete access authority authentication and system equipment registration. It has multiple data security communication and transmission functions such as authentication, port aggregation of data communication, etc., and obtains relevant data and files from smart cameras such as face and license plates of front-end cameras and data servers through the secure access management machine, and then accesses the public security image perception network in one direction through the secure transparent transmission function of the VC-SS6200 comprehensive video resource security gateway, and then decrypts and restores it to GB / T28181 or GA / T1400 protocol by the VC-NDPS3600 video data aggregation security gateway (authorized with the certificate key system), and accesses the superior intelligent monitoring platform.

[0031] The all-network security encryption machine retains the original NAL structure and RBSP data of the H264 and 265 code streams, and adds security parameter set NAL, digital signature NAL and absolute time extension information to the H264 and 265 data streams in accordance with the requirements of GB / T35114-2017 and GB / T25724-2017, thereby realizing anti-hijacking and anti-tampering of the H264 and 265 code streams.

[0032] The all-network security encryption machine retains the original NAL structure data of the H264 and 265 code streams, and uses the encryption syntax described by the newly added security parameter set NAL to encrypt the video coding slice RBSP data of the H264 and 265 data streams in accordance with the requirements of GB / T35114-2017 and GB / T25724-2017 to generate new encrypted coding slice RBSP data, thereby realizing the encryption of the H264 and 265 video streams.

[0033] The all-network security encryption machine generates encrypted audio data using the VEK and IV of video encryption according to the encryption algorithm requirements specified in GB / T35114-2017; it adopts scalable and selectable encryption extensions, with three options: RBSP encryption / decryption of coding slices of video I frames, RBSP encryption / decryption of coding slices of video global domain, and encryption / decryption of video + audio global domain, which can selectively reduce the algorithm's occupancy of the CPU, reduce the time consumption of encryption / decryption of video streams, and reduce the delay of video encryption transmission.

[0034] The video structured data encryption of the all-network security encryption machine: the image data is encrypted according to the encryption algorithm requirements specified in GB / T35114-2017, and the control signaling part retains the communication method of GA / T1400.

[0035] The above shows and describes the basic principles and main features of the present invention and the advantages of the present invention. It should be understood by those skilled in the art that the present invention is not limited to the above embodiments, and the above embodiments and descriptions are only for explaining the principles of the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, and these changes and improvements fall within the scope of the present invention to be protected. The scope of protection of the present invention is defined by the attached claims and their equivalents.

Claims

1. A conformance method for NAL layer encryption and transmission of H.264 or H.265 media stream data, characterized in that: The following steps are involved: Step (1). The video and structured data of the data acquisition platform are connected to the all-network security encryption machine through the GB / T28281 or GA / T1400 protocol, and the all-network security encryption machine converts the GB / T28281 or GA / T1400 protocol data of the front-end camera into encrypted data that complies with the GB35114 protocol; Step (2). Communicate with the security access management machine through the operator link / dedicated line / bare fiber to complete access authority authentication, system equipment registration and verification, data communication port aggregation and multiple data security communication transmission functions; Step (3). The security access management machine obtains relevant data and files from the front-end camera’s video and face and license plate smart cameras and data servers, and one-way accesses them to the public security image perception network through the security transparent transmission function of the comprehensive video resource security gateway. The video data aggregation security gateway then authorizes and decrypts them to GB / T28281 or GA / T1400 protocols and accesses the upper-level intelligent monitoring platform in cooperation with the certificate key system. The all-network security encryption machine completes the legality authentication of the equipment, as well as the encryption of the signaling and audio and video streams of the front-end equipment or system; the video data convergence security gateway device is responsible for security authentication and decryption, and at the same time provides GB / T28181 and GA / T1400 networking services for other non-encrypted platform systems in the center; the encryption method of the all-network security encryption machine is to perform AES128 encryption on the entire I frame data. After the video data convergence security gateway receives the above data and decrypts it, it needs to compare the SHA256 summary, user token, video token, and channelID for legality verification. If the four do not match, the entire GOP data is abandoned; The video token and user token are valid for 1 hour. Before expiration, the full network security encryption machine needs to refresh or re-request the token in the signaling communication with the video data aggregation security gateway and use it in the next I frame; The all-network security encryption machine retains the original NAL structure and RBSP data of the H264 and 265 code streams, and adds security parameter set NAL, digital signature NAL and absolute time extension information to the H264 and 265 data streams in accordance with the requirements of GB / T35114 and GB / T25724-2017, thereby realizing anti-hijacking and anti-tampering of the H264 and 265 code streams.

2. The method for encrypting and transmitting NAL layer of media stream data based on H.264 or H.265 according to claim 1, characterized in that: The all-network security encryption machine retains the original NAL structure data of the H264 and 265 code streams, and uses the encryption syntax described by the newly added security parameter set NAL in accordance with the requirements of GB / T35114 and GB / T25724-2017 to encrypt the video coding slice RBSP data of the H264 and 265 data streams to generate new encrypted coding slice RBSP data, thereby realizing the encryption of the H264 and 265 video streams.

3. The method for encrypting and transmitting NAL layer of media stream data based on H.264 or H.265 according to claim 1, characterized in that: The all-network security encryption machine generates encrypted audio data using the VEK and IV of video encryption according to the encryption algorithm requirements specified in GB / T35114; it adopts scalable and selectable encryption extensions with three options: RBSP encryption / decryption of coding slices of video I frames, RBSP encryption / decryption of coding slices of video global domain, and encryption / decryption of video + audio global domain, which can selectively reduce the algorithm's occupancy of the CPU, reduce the time consumption of encryption / decryption of video streams, and reduce the delay of video encryption transmission.

4. The method for encrypting and transmitting NAL layer of media stream data based on H.264 or H.265 according to claim 1, characterized in that: The video structured data encryption of the all-network security encryption machine: the image data is encrypted according to the encryption algorithm requirements specified in GB / T35114, and the control signaling part retains the communication method of GA / T1400.