Signature information sending method, device, electronic device and computer readable medium

By encoding and separating and encrypting the video data to generate signature information, the security problem caused by the single permission control in video data transmission is solved, and the diverse permission control and security improvement of the video data are realized.

CN117834951BActive Publication Date: 2024-09-06ZHONGXING ELECTRONICS CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410050406.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-12
Publication Date
2024-09-06
Estimated Expiration
2044-01-12

AI Technical Summary

Technical Problem

In the existing technology, the method of sending signature information during the video data transmission process is relatively single, resulting in poor diversity in video data viewing permission processing, thereby reducing the protection security of video data.

Method used

By encoding the video to be transmitted, the key stream information and non-key stream information are separated, and respectively encrypted using preset keys to generate encrypted code stream information. Finally, signature information is generated based on the encrypted code stream information and sent to The receiving end implements diverse permission control of video data.

Benefits of technology

It improves the diversity and protection security of video data viewing permissions, ensures that the receiving end user can view the corresponding video content according to the permission level, and enhances the overall security of video data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117834951B
    Figure CN117834951B
Patent Text Reader

Abstract

The embodiments of the present disclosure disclose a signature information sending method, device, electronic device and computer-readable medium. A specific implementation of the method includes: obtaining a video to be encoded; encoding the video to be encoded to obtain a target code stream set; for the target code stream, performing the following steps: using a first preset key, encrypting the key code stream information included in the target code stream to obtain key code stream encryption information; using a second preset key, encrypting the non-key code stream information included in the target code stream to obtain non-key code stream encryption information; generating encrypted code stream information based on the key code stream encryption information and the non-key code stream encryption information; generating a summary information set based on each generated encrypted code stream information; generating signature information based on the summary information set; and sending the signature information to the receiving end. This implementation can improve the diversity of video data viewing authority processing and the security of data protection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present disclosure relate to the field of computer technology, and in particular to a signature information sending method, device, electronic device, and computer-readable medium. Background Art

[0002] With the development of information technology and the advent of the big data era, various video data have brought convenience to people's work and life. At the same time, the security of related video data has also become an important issue of concern to people. In order to protect the security of video data, people usually apply data encryption technology and data signature technology in the process of transmitting data. At present, when sending the generated signature information, the method usually adopted is: first, uniformly encrypt or uniformly unencrypt the video to be transmitted. Then, the video that is uniformly encrypted or uniformly unencrypted is processed with data signature, and the signature information obtained after the data signing is sent to the associated receiving end.

[0003] However, when the above method is used to send the generated signature information, the following technical problems often occur:

[0004] The video data to be transmitted is uniformly encrypted or unencrypted, resulting in a relatively simple method of handling video data viewing permissions and poor diversity in handling video data viewing permissions (that is, users on the receiving end cannot view video data corresponding to their permissions according to their permission levels. For example, when uniformly unencrypted, users with lower permission levels view video content corresponding to higher permissions (such as license plate numbers in the video)), resulting in poor security of video data protection.

[0005] The above information disclosed in this Background section is only for enhancement of understanding of the background of the inventive concept and therefore it may contain information that does not form the prior art that is already known in this country to a person of ordinary skill in the art. Summary of the invention

[0006] The content of this disclosure is used to introduce concepts in a brief form, which will be described in detail in the detailed implementation section below. The content of this disclosure is not intended to identify the key features or essential features of the technical solution claimed for protection, nor is it intended to limit the scope of the technical solution claimed for protection.

[0007] Some embodiments of the present disclosure propose signature information sending methods, devices, electronic devices and computer-readable media to solve one or more of the technical problems mentioned in the above background technology section.

[0008] In a first aspect, some embodiments of the present disclosure provide a method for sending signature information, the method comprising: obtaining a video to be encoded; encoding the video to be encoded to obtain the encoded video as a target bitstream set, wherein the target bitstream in the target bitstream set corresponds to the image to be encoded in the video to be encoded, and the target bitstream in the target bitstream set includes key bitstream information and non-key bitstream information; for each target bitstream in the target bitstream set, performing the following steps: using a first preset secret key to encrypt the key bitstream information included in the target bitstream to obtain key bitstream encryption information, wherein the above The first preset key is a public key corresponding to the above-mentioned key code stream information generated by a preset symmetric encryption function; the non-key code stream information included in the above-mentioned target code stream is encrypted using the second preset key to obtain non-key code stream encrypted information, wherein the second preset key is a public key corresponding to the above-mentioned non-key code stream information generated by a preset symmetric encryption function; encrypted code stream information is generated according to the above-mentioned key code stream encrypted information and the above-mentioned non-key code stream encrypted information; a summary information set is generated according to each generated encrypted code stream information; signature information is generated according to the above-mentioned summary information set; and the signature information is sent to an associated receiving end.

[0009] In a second aspect, some embodiments of the present disclosure provide a signature information sending device, the device comprising: an acquisition unit, configured to acquire a video to be encoded; an encoding processing unit, configured to perform encoding processing on the video to be encoded, and obtain the video to be encoded after the encoding processing as a target code stream set, wherein the target code stream in the target code stream set corresponds to the image to be encoded in the video to be encoded, and the target code stream in the target code stream set includes key code stream information and non-key code stream information; an execution unit, configured to perform the following steps for each target code stream in the target code stream set: using a first preset secret key, encrypting the key code stream information included in the target code stream to obtain key code stream encryption information, wherein the first preset secret key is used to encrypt ... A preset key is a public key corresponding to the above-mentioned key code stream information generated by a preset symmetric encryption function; the non-key code stream information included in the above-mentioned target code stream is encrypted using a second preset key to obtain non-key code stream encrypted information, wherein the second preset key is a public key corresponding to the above-mentioned non-key code stream information generated by a preset symmetric encryption function; encrypted code stream information is generated according to the above-mentioned key code stream encrypted information and the above-mentioned non-key code stream encrypted information; the first generating unit is configured to generate a summary information set according to each generated encrypted code stream information; the second generating unit is configured to generate signature information according to the above-mentioned summary information set; the sending unit is configured to send the above-mentioned signature information to the associated receiving end.

[0010] In a third aspect, some embodiments of the present disclosure provide an electronic device comprising: one or more processors; a storage device on which one or more programs are stored, and when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any implementation manner of the above-mentioned first aspect.

[0011] In a fourth aspect, some embodiments of the present disclosure provide a computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the method described in any implementation manner of the above-mentioned first aspect is implemented.

[0012] The above-mentioned embodiments of the present disclosure have the following beneficial effects: through the signature information sending method of some embodiments of the present disclosure, the way of processing the video data viewing permission can be increased, the diversity of the video data viewing permission processing can be improved, and the security of video data protection can be improved. Specifically, the reason why the way of processing the video data viewing permission is relatively single, the diversity of the video data viewing permission processing is poor, and the security of video data protection is poor is that the video data to be transmitted is uniformly encrypted or uniformly unencrypted, resulting in a relatively single way of processing the video data viewing permission, and the diversity of the video data viewing permission processing is poor (that is, the user at the receiving end cannot view the video data corresponding to his own authority according to his own authority level. For example, when the uniform unencrypted processing is performed, the user with a lower authority level views the video content corresponding to the high authority (for example, the license plate number in the video)), resulting in poor security of video data protection. Based on this, the signature information sending method of some embodiments of the present disclosure first obtains the video to be encoded. Thus, the video to be encoded for viewing by the user at the receiving end can be obtained. Then, the above-mentioned video to be encoded is encoded, and the video to be encoded after the encoding process is obtained as the target code stream set. Wherein, the target stream in the target stream set corresponds to the image to be encoded in the video to be encoded, and the target stream in the target stream set may include key stream information and non-key stream information. Thus, the target stream set can be obtained, which can be used for signature processing. Afterwards, for each target stream in the target stream set, the following steps are performed: using the first preset key, the key stream information included in the target stream is encrypted to obtain key stream encryption information. Wherein, the first preset key may be a public key corresponding to the key stream information generated by a preset symmetric encryption function. Thus, the key stream information representing the important content information of the video can be encrypted to facilitate the video browsing by users with high authority levels at the receiving end. Thus, the security of data protection is improved. Secondly, using the second preset key, the non-key stream information included in the target stream is encrypted to obtain non-key stream encryption information, wherein the second preset key may be a public key corresponding to the non-key stream information generated by a preset symmetric encryption function. Thus, the non-critical code stream information representing the non-important content information of the video can be encrypted to facilitate the video browsing by users with low authority levels at the receiving end. Then, the encrypted code stream information is generated based on the above-mentioned key code stream encryption information and the above-mentioned non-critical code stream encryption information. Thus, the encrypted code stream information in which the important content information and the non-important content information in the single-frame image are encrypted respectively can be obtained. Afterwards, a summary information set is generated based on each generated encrypted code stream information. Thus, the summary information set corresponding to the video can be obtained, so that the video is first hashed to obtain the summary information, thereby reducing the workload of the encryption processing.Subsequently, signature information is generated based on the above summary information set. Thus, the signature information corresponding to the video data can be obtained, so that it can be used by the user at the receiving end to verify the integrity and authenticity of the video data. Finally, the above signature information is sent to the associated receiving end. Thus, the signature information can be sent to the receiving end with the video viewing request. Thus, it can be used for users to browse videos. Also, in the process of video processing, according to the importance of the video content, the encoded video is divided into a key code stream encryption information part and a non-key code stream encryption information part, and the two parts of information are hierarchically encrypted respectively, so that the video content with corresponding permissions can be opened to the user according to the viewing level of the receiving end user. In addition, the way of processing the viewing permission of video data can be increased, the diversity of the processing of the viewing permission of video data can be improved, and the security of video data protection can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that components and elements are not necessarily drawn to scale.

[0014] Figure 1 is a flowchart of some embodiments of the method for sending signature information according to the present disclosure;

[0015] Figure 2 It is a schematic diagram of the structure of some embodiments of the signature information sending device according to the present disclosure;

[0016] Figure 3 It is a schematic diagram of the structure of an electronic device suitable for implementing some embodiments of the present disclosure. DETAILED DESCRIPTION

[0017] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0018] It should also be noted that, for ease of description, only the parts related to the invention are shown in the drawings. In the absence of conflict, the embodiments and features in the embodiments of the present disclosure can be combined with each other.

[0019] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0020] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0021] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0022] The present disclosure will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.

[0023] Figure 1 The process 100 of some embodiments of the method for sending signature information according to the present disclosure is shown. The method for sending signature information includes the following steps:

[0024] Step 101: Obtain a video to be encoded.

[0025] In some embodiments, the execution subject (e.g., a computing device) of the signature information sending method may obtain the video to be encoded through a wired connection or a wireless connection, and through an associated video acquisition device. The above-mentioned associated video acquisition device may be a device capable of video acquisition. For example, the above-mentioned associated video acquisition device may be an industrial camera. The above-mentioned video to be encoded may be a video waiting to be encoded that is acquired by the above-mentioned associated video acquisition device. It should be noted that the above-mentioned wireless connection method may include but is not limited to 3G / 4G connection, WiFi connection, Bluetooth connection, WiMAX connection, Zigbee connection, UWB (ultra wideband) connection, and other wireless connection methods currently known or to be developed in the future.

[0026] Step 102: Encode the video to be encoded to obtain the encoded video as a target bitstream set.

[0027] In some embodiments, the execution subject may perform encoding processing on the video to be encoded, and obtain the video to be encoded after encoding processing as a target code stream set. The target code stream in the target code stream set corresponds to the image to be encoded in the video to be encoded one by one. The target code stream in the target code stream set may include key code stream information and non-key code stream information. The key code stream information and non-key code stream information in the target code stream may be distinguished by the RBSP (Raw Byte Sequence Payload) data structure type identifier corresponding to the target code stream. For example, when the data structure type identifier is 1, the key code stream information is identified. When the data structure type is 2, the non-key code stream information is identified. The key code stream information may be image information corresponding to the key image area in the image to be encoded. Specifically, the key code stream information may be image information corresponding to the foreground image area in the image to be encoded. For example, the image to be encoded may be a vehicle image. The key image area in the image to be encoded may be an image area corresponding to the vehicle or an image area corresponding to the license plate number of the vehicle. The key code stream information may be image information corresponding to the license plate number of the vehicle in the vehicle image. The above non-critical code stream information may be image information corresponding to a non-critical image region (except the critical image region) in the image to be encoded.

[0028] In some optional implementations of some embodiments, the execution subject may perform encoding processing on the video to be encoded through the following steps to obtain the encoded video to be encoded as a target bitstream set:

[0029] The first step is to perform color space transformation processing on the above-mentioned video to be encoded to obtain a color space transformed video. In practice, first, for each frame of the image to be encoded in the above-mentioned video to be encoded, the above-mentioned execution subject can perform color space transformation processing on the above-mentioned image to be encoded through a preset conversion matrix to obtain a color space transformed image. Then, the obtained color space transformed images can be combined into a color space transformed video.

[0030] Among them, the color space transformation image can be expressed by the following formula:

[0031]

[0032] in, Can represent each pixel in the color space transformed image. It can represent the color component of each pixel in the image to be encoded. The above R may represent the red color component corresponding to each pixel in the image to be encoded. The above G may represent the green color component corresponding to each pixel in the image to be encoded. The above B may represent the blue color component corresponding to each pixel in the image to be encoded. The above Y may represent the brightness of each pixel in the color space transformation image. The above C b The Cr may represent the chromaticity of each pixel in the color space conversion image. The Cr may represent the density of each pixel in the color space conversion image.

[0033] In the second step, for each frame of the color space transformed image in the color space transformed video, perform the following steps:

[0034] The first sub-step is to perform image segmentation processing on the color space transformation image to generate a color space transformation segmentation image set. In practice, the execution subject can perform image segmentation processing on the color space transformation image according to 6*6 (pixels) to generate a color space transformation segmentation image set.

[0035] The second sub-step is to encode the color space transformation segmented image set to obtain the encoded color space transformation segmented image set as the target code stream.

[0036] The third step is to determine the obtained target code streams as a target code stream set.

[0037] In some optional implementations of some embodiments, the execution subject may perform encoding processing on the color space transformation segmented image set through the following steps to obtain the encoded color space transformation segmented image set as a target code stream:

[0038] In the first step, for each color space transformation segmentation image in the above color space transformation segmentation image set, the following steps are performed:

[0039] The first sub-step is to transform the color space transformation segmented image to generate a frequency coefficient matrix corresponding to the color space transformation segmented image. In practice, the execution subject can perform discrete cosine transformation on the color space transformation segmented image to generate a frequency coefficient matrix corresponding to the color space transformation segmented image. Here, discrete cosine transformation can reduce the spatial correlation between image pixels and concentrate the image energy in the upper left corner area, thereby facilitating data compression.

[0040] The second sub-step is to quantize the frequency coefficient matrix to generate a quantization matrix. In practice, the execution subject may use a preset quantization table to quantize the frequency coefficient matrix to generate a quantization matrix. Here, first, for each frequency coefficient element in the frequency coefficient matrix, the execution subject may determine the preset quantization element corresponding to the frequency coefficient element in the preset quantization table as the first element. Then, the ratio of the frequency coefficient element to the first element is rounded to obtain the quantization element. Finally, the matrix composed of the obtained quantization elements is determined as the quantization matrix. Among them, the preset quantization table may be a pre-set table for quantizing the frequency coefficient matrix. Here, the quantization table may be in the form of a matrix.

[0041] The third sub-step is to determine a quantization array according to the quantization matrix. In practice, the execution subject may sort the quantization elements included in the quantization matrix in a zigzag manner (for example, starting from the upper left corner of the quantization matrix in a zigzag manner) to generate a quantization array.

[0042] The fourth sub-step is to perform encoding processing on the quantized array to generate encoding information. In practice, the execution subject may perform Huffman encoding on the quantized array to generate encoding information.

[0043] The second step is to determine the target bitstream according to the generated coding information. In practice, the execution subject can perform splicing processing on the generated coding information to obtain the spliced ​​coding information as the target bitstream.

[0044] Step 103: for each target bitstream in the target bitstream set, perform the following steps:

[0045] Step 1031: encrypt the key code stream information included in the target code stream using the first preset key to obtain key code stream encryption information.

[0046] In some embodiments, the execution subject may use the first preset key to encrypt the key code stream information included in the target code stream to obtain the key code stream encrypted information. The first preset key may be a public key corresponding to the key code stream information generated by a preset symmetric encryption function. The preset symmetric encryption function may be a pre-set symmetric encryption function. The preset symmetric encryption function may include but is not limited to at least one of the following: DES, 3DES, AES, TDEA, Blowfish, RC2, RC4 and RC5. In practice, the execution subject may use the DES encryption function to generate the first preset key. Then, the execution subject may use the first preset key to encrypt the key code stream information included in the target code stream to obtain the key code stream encrypted information.

[0047] Step 1032: Use the second preset secret key to encrypt the non-critical code stream information included in the target code stream to obtain non-critical code stream encrypted information.

[0048] In some embodiments, the execution subject may use a second preset key to encrypt the non-critical code stream information included in the target code stream to obtain non-critical code stream encrypted information. The second preset key may be a public key corresponding to the non-critical code stream information generated by a preset symmetric encryption function. The preset symmetric encryption function may include but is not limited to at least one of the following: DES, 3DES, AES, TDEA, Blowfish, RC2, RC4 and RC5. In practice, the execution subject may use a 3DES encryption function to generate a second preset key. Then, the execution subject may use the second preset key to encrypt the non-critical code stream information included in the target code stream to obtain non-critical code stream encrypted information.

[0049] Step 1033: Generate encrypted code stream information according to the key code stream encryption information and the non-key code stream encryption information.

[0050] In some embodiments, the execution subject may generate encrypted code stream information according to the key code stream encryption information and the non-key code stream encryption information. In practice, the execution subject may combine the key code stream encryption information and the non-key code stream encryption information to obtain the encrypted code stream information. Here, the combination may be splicing. For example, the key code stream encryption information may be A. The non-key code stream encryption information may be B. The encrypted code stream information may be AB.

[0051] Step 104: Generate a summary information set based on each of the generated encrypted code stream information.

[0052] In some embodiments, the execution entity may generate a summary information set based on each of the generated encrypted code stream information.

[0053] In some optional implementations of some embodiments, according to each generated encrypted code stream information, the execution subject may generate a summary information set through the following steps:

[0054] In the first step, for each of the generated encrypted code stream information, a preset hash function is used to perform hash processing on the encrypted code stream information, and the hashed encrypted code stream information is obtained as summary information. The preset hash function may be a pre-set hash function. The preset hash function may include but is not limited to: a message digest algorithm, a secure hash algorithm, and a message authentication code algorithm. For example, the preset hash function may be a message digest algorithm (e.g., SM3).

[0055] In the second step, each obtained summary information is determined as a summary information set.

[0056] Step 105: Generate signature information based on the summary information set.

[0057] In some embodiments, based on the summary information set, the execution entity may generate signature information.

[0058] Optionally, before generating the signature information according to the summary information set, the execution subject may also generate a signature private key and a signature public key according to a preset signature function. The preset signature function may be a pre-set signature function. For example, the signature function may be SM2. The signature private key may be a private key used to generate a signature. The signature private key and the signature public key are unique and corresponding. The signature public key may be a public key that uniquely corresponds to the signature private key and is used by the receiving end to verify the signature.

[0059] In some optional implementations of some embodiments, according to the summary information set, the execution subject may generate signature information through the following steps:

[0060] In the first step, the summary information included in the summary information set is sorted to obtain the sorted summary information as a summary information sequence. In practice, the execution subject may sort the summary information included in the summary information set according to the generation time of each to-be-encoded image corresponding to each summary information to obtain the sorted summary information as a summary information sequence.

[0061] The second step is to combine the individual summary information included in the summary information sequence to generate combined summary information. In practice, the execution subject may concatenate the individual summary information included in the summary information sequence to obtain the concatenated summary information sequence as the combined summary information.

[0062] The third step is to encrypt the combined summary information using the signature private key to generate signature information. In practice, the execution entity can encrypt the combined summary information using the signature private key to obtain the encrypted combined summary information as signature information.

[0063] Furthermore, in the process of adopting the technical solution to solve the technical problems mentioned in the background technology, the user has a high requirement for the signature security level of the signed video. The conventional technical solution that meets the user's high requirement for the signature security level of the signed video is to perform hash processing and signature processing on each frame of the video separately. However, this method will make the complexity of the signature processing lower. Therefore, considering the need to meet the user's signature security level requirements for the signed video and to increase the complexity of the signature processing, it is decided to perform hash processing on each frame of the image to be signed in the video to be signed in sequence, and then merge the hash results of the first frame of the image to be signed and the second frame of the image to be signed, and then perform hash processing, and use the hashed summary information as the tree top summary information, and then merge it with the summary information of the next frame of the image to be signed, and repeat this cycle until it is merged and hashed with the hash result of the last frame of the image to be signed, and finally, the final hash result is signed to meet the user's signature security level requirements for the signed video and to increase the complexity of the signature processing, thereby achieving the effect of improving the security of the data signature.

[0064] In some optional implementations of some embodiments, based on the summary information set, the execution subject may also generate signature information through the following steps:

[0065] In the first step, the summary information included in the summary information set is sorted to obtain the sorted summary information as a summary information sequence. In practice, the execution subject may sort the summary information included in the summary information set according to the generation time of each to-be-encoded image corresponding to each summary information to obtain the sorted summary information as a summary information sequence.

[0066] In the second step, the summary information at the first position and the summary information at the second position in the summary information sequence are combined to generate initial summary information. Here, the combination processing method can be splicing. The first position can be understood as the position with a sequence number of 1 corresponding to the summary information in the summary information sequence. The second position can be understood as the position with a sequence number of 2 corresponding to the summary information in the summary information sequence. Here, the sequence number can be a position sorting sequence number.

[0067] The third step is to use a preset hash function to hash the above-mentioned initial summary information, and obtain the initial summary information after hash processing as the initial tree-top summary information. Among them, the above-mentioned pre-hash function can be a pre-set function for hashing the initial summary information. The above-mentioned preset hash function can include but is not limited to: a message digest algorithm, a secure hash algorithm, and a message authentication code algorithm. Here, the above-mentioned preset hash function can be a function corresponding to a secure hash algorithm. In practice, the above-mentioned execution entity can use a secure hash algorithm to hash the above-mentioned initial summary information, and obtain the initial summary information after hash processing as the initial tree-top summary information.

[0068] In the fourth step, the summary information at the first position and the summary information at the second position in the summary information sequence are deleted to obtain a summary information sequence after the deletion as an updated summary information sequence.

[0069] Step 5: For each update summary information in the above update summary information sequence, perform the following steps:

[0070] The first sub-step is to combine the updated summary information with the initial tree top summary information to obtain combined summary information. Here, the combination can be done by concatenation.

[0071] In the second sub-step, a preset hash function is used to perform hash processing on the combined summary information to obtain the hashed combined summary information as the tree top summary information.

[0072] The third sub-step is to determine the tree-top summary information as the initial tree-top summary information, so as to update the initial tree-top summary information.

[0073] Step 6: Use the signature private key to sign the updated initial tree top summary information to generate signature information. In practice, the execution subject can use the signature private key to encrypt the updated initial tree top summary information to obtain the encrypted and updated initial tree top summary information as signature information.

[0074] The above-mentioned first to sixth steps and their related contents, as an inventive point of an embodiment of the present disclosure, solve the technical problem that "separately performing hash processing and signing processing on each frame of the video will make the complexity of the signature processing low, and cannot better meet the user's signature security level requirements for the signed video." The factors that lead to separately performing hash processing and signing processing on each frame of the video will make the complexity of the signature processing low, and cannot better meet the user's signature security level requirements for the signed video are often as follows: Separately performing hash processing and signing processing on each frame of the video will make the complexity of the signature processing low, and cannot better meet the user's signature security level requirements for the signed video. If the above factors are solved, the complexity of the signature processing can be increased, and the effect of better meeting the user's signature security level requirements for the signed video can be achieved. In order to achieve this effect, the present invention decides to perform hash processing on each frame of the image to be signed in the video to be signed in sequence, and then merge the hash results of the first frame of the image to be signed and the second frame of the image to be signed, and then perform hash processing again, and use the hashed summary information as the tree top summary information, and then merge it with the summary information of the next frame of the image to be signed, and repeat this cycle until it is merged with the hash result of the last frame of the image to be signed and hashed, and finally, the final hash result is signed to meet the user's signature security level requirements for the signed video and the requirements for increasing the complexity of the signature processing, thereby improving the security of data protection.

[0075] Optionally, after generating the signature information according to the summary information set, the execution subject may further perform the following steps:

[0076] In the first step, the signature public key, the signature information and the preset hash function are sent to the associated authentication server so that the authentication server can generate certificate information corresponding to the video to be encoded. The associated authentication server can be a server capable of generating a signature certificate. For example, the associated authentication server can be a signature verification server.

[0077] The second step is to receive the certificate information sent by the above authentication server.

[0078] The third step is to determine a key code stream security parameter information set based on the first preset key, the encrypted code stream information and the certificate information. In practice, the execution subject may determine the first preset key, the encrypted code stream information and the certificate information as a key code stream parameter information set. Thus, a key code stream parameter information set corresponding to the key code stream information may be obtained, so that the user at the receiving end can use the key code stream parameter information set to perform decryption and signature verification operations according to his / her high authority level.

[0079] The fourth step is to determine a non-critical code stream security parameter information set based on the second preset key, the encrypted code stream information and the certificate information. In practice, the execution subject may determine the second preset key, the encrypted code stream information and the certificate information as a non-critical code stream parameter information set. Thus, a non-critical code stream parameter information set corresponding to the non-critical code stream information can be obtained, so that the user at the receiving end can use the non-critical code stream parameter information set to perform decryption and signature verification operations according to his or her low authority level.

[0080] The fifth step is to send the critical code stream security parameter information set and the non-critical code stream security parameter information set to the associated receiving end.

[0081] Step 106: Send the signature information to the associated receiving end.

[0082] In some embodiments, the execution subject may send the signature information to an associated receiving end. The associated receiving end may be a client that sends a request to view the video to be encoded. In practice, the execution subject may send the signature information to an associated receiving end.

[0083] The above-mentioned embodiments of the present disclosure have the following beneficial effects: through the signature information sending method of some embodiments of the present disclosure, the way of processing the video data viewing permission can be increased, the diversity of the video data viewing permission processing can be improved, and the security of video data protection can be improved. Specifically, the reason why the way of processing the video data viewing permission is relatively single, the diversity of the video data viewing permission processing is poor, and the security of video data protection is poor is that the video data to be transmitted is uniformly encrypted or uniformly unencrypted, resulting in a relatively single way of processing the video data viewing permission, and the diversity of the video data viewing permission processing is poor (that is, the user at the receiving end cannot view the video data corresponding to his own authority according to his own authority level. For example, when the uniform unencrypted processing is performed, the user with a lower authority level views the video content corresponding to the high authority (for example, the license plate number in the video)), resulting in poor security of video data protection. Based on this, the signature information sending method of some embodiments of the present disclosure first obtains the video to be encoded. Thus, the video to be encoded for viewing by the user at the receiving end can be obtained. Then, the above-mentioned video to be encoded is encoded, and the video to be encoded after the encoding process is obtained as the target code stream set. Wherein, the target stream in the target stream set corresponds to the image to be encoded in the video to be encoded, and the target stream in the target stream set may include key stream information and non-key stream information. Thus, the target stream set can be obtained, which can be used for signature processing. Afterwards, for each target stream in the target stream set, the following steps are performed: using the first preset key, the key stream information included in the target stream is encrypted to obtain key stream encryption information. Wherein, the first preset key may be a public key corresponding to the key stream information generated by a preset symmetric encryption function. Thus, the key stream information representing the important content information of the video can be encrypted to facilitate the video browsing by users with high authority levels at the receiving end. Thus, the security of data protection is improved. Secondly, using the second preset key, the non-key stream information included in the target stream is encrypted to obtain non-key stream encryption information, wherein the second preset key may be a public key corresponding to the non-key stream information generated by a preset symmetric encryption function. Thus, the non-critical code stream information representing the non-important content information of the video can be encrypted to facilitate the video browsing by users with low authority levels at the receiving end. Then, the encrypted code stream information is generated based on the above-mentioned key code stream encryption information and the above-mentioned non-critical code stream encryption information. Thus, the encrypted code stream information in which the important content information and the non-important content information in the single-frame image are encrypted respectively can be obtained. Afterwards, a summary information set is generated based on each generated encrypted code stream information. Thus, the summary information set corresponding to the video can be obtained, so that the video is first hashed to obtain the summary information, thereby reducing the workload of the encryption processing.Subsequently, signature information is generated based on the above summary information set. Thus, the signature information corresponding to the video data can be obtained, so that it can be used by the user at the receiving end to verify the integrity and authenticity of the video data. Finally, the above signature information is sent to the associated receiving end. Thus, the signature information can be sent to the receiving end with the video viewing request. Thus, it can be used for users to browse videos. Also, in the process of video processing, according to the importance of the video content, the encoded video is divided into a key code stream encryption information part and a non-key code stream encryption information part, and the two parts of information are hierarchically encrypted respectively, so that the video content with corresponding permissions can be opened to the user according to the viewing level of the receiving end user. In addition, the way of processing the viewing permission of video data can be increased, the diversity of the processing of the viewing permission of video data can be improved, and the security of video data protection can be improved.

[0084] Further references Figure 2 As an implementation of the methods shown in the above figures, the present disclosure provides some embodiments of a signature information sending device. These device embodiments are similar to Figure 2 Corresponding to the method embodiments shown, the device can be specifically applied to various electronic devices.

[0085] like Figure 2As shown, the signature information sending device 200 of some embodiments includes: an acquisition unit 201, an encoding processing unit 202, an execution unit 203, a first generation unit 204, a second generation unit 205 and a sending unit 206. The acquisition unit 201 is configured to acquire a video to be encoded; the encoding processing unit 202 is configured to perform encoding processing on the video to be encoded, and obtain the video to be encoded after the encoding processing as a target bitstream set, wherein the target bitstream in the target bitstream set corresponds to the image to be encoded in the video to be encoded, and the target bitstream in the target bitstream set includes key bitstream information and non-key bitstream information; the execution unit 203 is configured to perform the following steps for each target bitstream in the target bitstream set: using a first preset secret key, encrypting the key bitstream information included in the target bitstream to obtain key bitstream encryption information, wherein the first preset key is a keystream encrypted by a preset symmetric encryption function The first generating unit 204 is configured to generate a summary information set according to each of the generated encrypted code stream information; the second generating unit 205 is configured to generate signature information according to the summary information set; the sending unit 206 is configured to send the signature information to the associated receiving end.

[0086] It is understood that the units described in the device 200 are similar to those described in the reference Figure 1 Therefore, the operations, features and beneficial effects described above for the method are also applicable to the device 200 and the units included therein, and will not be described in detail here.

[0087] Reference below Figure 3 , which shows a structural schematic diagram of an electronic device (eg, a computing device) 300 suitable for implementing some embodiments of the present disclosure. Figure 3 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0088] like Figure 3As shown, the electronic device 300 may include a processing device (e.g., a central processing unit, a graphics processor, etc.) 301, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 302 or a program loaded from a storage device 308 into a random access memory (RAM) 303. In the RAM 303, various programs and data required for the operation of the electronic device 600 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 304.

[0089] Typically, the following devices may be connected to the I / O interface 305: input devices 303 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 307 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 308 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 309. The communication devices 309 may allow the electronic device 300 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 3 The electronic device 300 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead. Figure 3 Each block shown in the figure may represent one device, or may represent multiple devices as required.

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

[0091] It should be noted that the computer-readable medium recorded in some embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The 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 of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In some embodiments of the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In some embodiments of the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium 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. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0092] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (Hyper Text Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0093] The above-mentioned computer-readable medium may be included in the above-mentioned electronic device; or it may exist independently and not be installed in the electronic device. The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by the electronic device, the electronic device: obtains the video to be encoded; encodes the above-mentioned video to be encoded, and obtains the video to be encoded after the encoding process as a target code stream set, wherein the target code stream in the above-mentioned target code stream set corresponds to the image to be encoded in the video to be encoded, and the target code stream in the above-mentioned target code stream set includes key code stream information and non-key code stream information; for each target code stream in the above-mentioned target code stream set, perform the following steps: use a first preset secret key to encrypt the key code stream information included in the above-mentioned target code stream to obtain a key code stream encrypted; The method comprises the steps of: generating a target code stream and transmitting the target code stream to a receiving end through a computer and transmitting the target code stream to a receiving end; generating a target code stream information including a target code stream, wherein the first preset key is a public key corresponding to the key code stream information generated by a preset symmetric encryption function; encrypting the non-key code stream information included in the target code stream using a second preset secret key to obtain non-key code stream encrypted information, wherein the second preset key is a public key corresponding to the non-key code stream information generated by a preset symmetric encryption function; generating encrypted code stream information according to the key code stream encrypted information and the non-key code stream encrypted information; generating a summary information set according to each of the generated encrypted code stream information; generating signature information according to the summary information set; and sending the signature information to an associated receiving end.

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

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

[0096] The units described in some embodiments of the present disclosure may be implemented by software or hardware. The units described may also be set in a processor, for example, it may be described as: a processor includes an acquisition unit, an encoding processing unit, an execution unit, a first generation unit, a second generation unit, and a sending unit. The names of these units do not constitute a limitation on the units themselves in some cases, for example, the acquisition unit may also be described as a "unit for acquiring a video to be encoded".

[0097] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0098] The above descriptions are only some preferred embodiments of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solutions formed by a specific combination of the above-mentioned technical features, but should also cover other technical solutions formed by any combination of the above-mentioned technical features or their equivalent features without departing from the above-mentioned inventive concept. For example, the above-mentioned features are replaced with the technical features with similar functions disclosed in the embodiments of the present disclosure (but not limited to) and the technical solutions formed.

Claims

1. A method for sending a signature message, comprising: Get the video to be encoded; Performing encoding processing on the video to be encoded, obtaining the video to be encoded after encoding processing as a target bitstream set, wherein the target bitstream in the target bitstream set corresponds to the image to be encoded in the video to be encoded, and the target bitstream in the target bitstream set includes key bitstream information and non-key bitstream information; For each target code stream in the target code stream set, the following steps are performed: Using a first preset secret key, encrypting the key code stream information included in the target code stream to obtain key code stream encrypted information, wherein the first preset secret key is a public key corresponding to the key code stream information generated by a preset symmetric encryption function; Using a second preset key, encrypting the non-critical code stream information included in the target code stream to obtain non-critical code stream encrypted information, wherein the second preset key is a public key corresponding to the non-critical code stream information generated by a preset symmetric encryption function; Generate encrypted code stream information according to the key code stream encryption information and the non-key code stream encryption information; Generate a summary information set according to each generated encrypted code stream information; Generate signature information according to the summary information set; Sending the signature information to an associated receiving end; The step of generating signature information according to the summary information set includes: Sorting each summary information included in the summary information set to obtain each summary information after sorting as a summary information sequence; Combining the digest information at a first position and the digest information at a second position in the digest information sequence to generate initial digest information; the first position is a position with a sequence number of 1 corresponding to the digest information in the digest information sequence, and the second position is a position with a sequence number of 2 corresponding to the digest information in the digest information sequence; Performing hash processing on the initial summary information using a preset hash function to obtain the hashed initial summary information as initial tree-top summary information; Deleting the summary information at the first position and the summary information at the second position in the summary information sequence, and obtaining a summary information sequence after the deletion as an updated summary information sequence; For each update summary information in the update summary information sequence, the following steps are performed: Combining the updated summary information with the initial tree-top summary information to obtain combined summary information; Performing hash processing on the combined summary information using a preset hash function to obtain the hashed combined summary information as the tree top summary information; Determining the tree top summary information as initial tree top summary information to update the initial tree top summary information; The updated initial tree top summary information is signed using the signature private key to generate signature information.

2. The method according to claim 1, wherein: Before generating signature information according to the summary information set, the method further includes: Generate a signature private key and a signature public key according to the preset signature function.

3. The method according to claim 1, wherein: The step of generating a summary information set according to each of the generated encrypted code stream information includes: For each piece of the generated encrypted code stream information, a preset hash function is used to perform a hash process on the encrypted code stream information to obtain the hashed encrypted code stream information as summary information; The obtained pieces of summary information are determined as a summary information set.

4. The method according to claim 2, wherein: After generating signature information according to the summary information set, the method further includes: Sending the signature public key, the signature information and the preset hash function to an associated authentication server so that the authentication server generates certificate information corresponding to the video to be encoded; Receiving certificate information sent by the authentication server; Determine a key code stream security parameter information set according to the first preset key, the respective encrypted code stream information and the certificate information; Determine a non-critical code stream security parameter information set according to the second preset key, the respective encrypted code stream information and the certificate information; The critical code stream security parameter information and the non-critical code stream security parameter information are sent to an associated receiving end.

5. The method according to claim 1, wherein: The encoding process is performed on the video to be encoded to obtain the encoded video to be encoded as a target bitstream set, including: Performing color space conversion processing on the video to be encoded to obtain a color space converted video; For each frame of the color space transformed image in the color space transformed video, the following steps are performed: Performing image segmentation processing on the color space transformed image to generate a set of color space transformed segmented images; Performing encoding processing on the color space transformation segmented image set to obtain the encoded color space transformation segmented image set as a target code stream; The obtained target code streams are determined as a target code stream set.

6. The method according to claim 5, wherein: The encoding process is performed on the color space transformation segmented image set to obtain the encoded color space transformation segmented image set as a target code stream, including: For each color space transform segmented image in the color space transform segmented image set, the following steps are performed: Performing transformation processing on the color space transformation segmented image to generate a frequency coefficient matrix corresponding to the color space transformation segmented image; Performing quantization processing on the frequency coefficient matrix to generate a quantization matrix; Determine a quantization array according to the quantization matrix; Performing encoding processing on the quantized array to generate encoding information; The target bitstream is determined according to each piece of generated coding information.

7. A signature information sending device, comprising: An acquisition unit, configured to acquire a video to be encoded; The encoding processing unit is configured to perform encoding processing on the video to be encoded, and obtain the video to be encoded after the encoding processing as a target bitstream set, wherein the target bitstream in the target bitstream set corresponds to the image to be encoded in the video to be encoded, and the target bitstream in the target bitstream set includes key bitstream information and non-key bitstream information; The execution unit is configured to perform the following steps for each target code stream in the target code stream set: using a first preset key to encrypt key code stream information included in the target code stream to obtain key code stream encrypted information, wherein the first preset key is a public key corresponding to the key code stream information generated by a preset symmetric encryption function; using a second preset key to encrypt non-key code stream information included in the target code stream to obtain non-key code stream encrypted information, wherein the second preset key is a public key corresponding to the non-key code stream information generated by a preset symmetric encryption function; generating encrypted code stream information according to the key code stream encrypted information and the non-key code stream encrypted information; A first generating unit is configured to generate a summary information set according to each generated encrypted code stream information; A second generating unit is configured to generate signature information according to the summary information set; A sending unit, configured to send the signature information to an associated receiving end; Wherein, the second generating unit is further configured to: Sorting each summary information included in the summary information set to obtain each summary information after sorting as a summary information sequence; Combining the digest information at a first position and the digest information at a second position in the digest information sequence to generate initial digest information; the first position is a position with a sequence number of 1 corresponding to the digest information in the digest information sequence, and the second position is a position with a sequence number of 2 corresponding to the digest information in the digest information sequence; Performing hash processing on the initial summary information using a preset hash function to obtain the hashed initial summary information as initial tree-top summary information; Deleting the summary information at the first position and the summary information at the second position in the summary information sequence, and obtaining a summary information sequence after the deletion as an updated summary information sequence; For each update summary information in the update summary information sequence, the following steps are performed: Combining the updated summary information with the initial tree-top summary information to obtain combined summary information; Performing hash processing on the combined summary information using a preset hash function to obtain the hashed combined summary information as the tree top summary information; Determining the tree top summary information as initial tree top summary information to update the initial tree top summary information; The updated initial tree top summary information is signed using the signature private key to generate signature information.

8. An electronic device, comprising: one or more processors; a storage device having one or more programs stored thereon; When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 6.

9. A computer readable medium having a computer program stored thereon, wherein: When the program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.