A method and system for displaying data authentication

CN117915011BActive Publication Date: 2026-09-25FOSHAN PINE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311840558.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-28
Publication Date
2026-09-25
Estimated Expiration
2043-12-28

AI Technical Summary

Technical Problem

[0002]在显示数据传输过程中,播放器会将显示数据通过HDMI/DVI接口将显示数据同步传输至发送卡,然后再由发送卡传输至接收卡,由于播放器与发送卡之间不是一般的报文传输,HDMI/DVI接口仅可以传输视频和多声道音频信号;因此无法对以报文传输的方式对待传输的显示数据进行加密后进行传输,进而导致在现有技术的条件下,播放器同步至发送卡的显示数据无法进行加密认证,容易被不法分子篡改

Benefits of technology

本发明实施例提供了一种显示数据认证方法及系统,所述方法根据屏幕所能支持的分辨率以及实际分辨率,计算出多余的像素行,紧接着再将显示数据传输同步至发送卡时,对显示数据所对应的哈希值进行加密,形成加密后的第一哈希值,并将进行加密后第一哈希值,记录在多余的像素行内,这样加密后的第一哈希值就可以连同显示数据一起通过HDMI/DVI接口传输至发送卡,后续由发送卡根据加密后的第一哈希值进行显示数据认证,并在确定认证通过后,将显示数据传输至接收卡。通过上述方式,避免了播放器与发送卡之间基于HDMI/DVI接口进行传输,无法直接发送加密后的报文数据,导致显示数据无法进行加密认证的问题,防止了显示数据被篡改。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117915011B_ABST
    Figure CN117915011B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a display data authentication method and system, the method comprises the following steps: obtaining the resolution supported by a screen and the actual resolution; determining a first pixel height according to the resolution supported by the screen; determining a second pixel height according to the actual resolution of the screen; calculating the difference between the first pixel height and the second pixel height, and determining the redundant pixel row according to the difference; calculating the hash value of the display data to obtain a first hash value, and recording the encrypted first hash value in the redundant pixel row; and transmitting the display data and the encrypted first hash value to a sending card, so that the sending card checks the encrypted first hash value, and transmits the display data to a receiving card when the check is passed. Through the implementation of the present application, the display data of the player synchronized to the sending card can be encrypted and authenticated, and the problem that the display data is tampered with can be avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of display data transmission technology, and in particular to a display data authentication method and system. Background Technology

[0002] During data transmission, the player transmits display data synchronously to the sending card via the HDMI / DVI interface, and then the sending card transmits it to the receiving card. Since the transmission between the player and the sending card is not a typical message transmission, the HDMI / DVI interface can only transmit video and multi-channel audio signals. Therefore, it is impossible to encrypt the display data to be transmitted in the form of messages before transmission. Consequently, under the current technology, the display data synchronized by the player to the sending card cannot be encrypted and authenticated, making it vulnerable to tampering by criminals. Summary of the Invention

[0003] This invention provides a display data authentication method and system that can encrypt and authenticate the display data synchronized from the player to the sending card, thus preventing the display data from being tampered with.

[0004] One embodiment of this application provides a display data authentication method, applicable to a media player, including: Obtain the screen's supported resolution and the actual resolution; Based on the supported resolution, determine the number of pixel rows that the data sent by the player can occupy when sending data, and obtain the first pixel height; based on the actual resolution of the screen, determine the number of pixel rows that the data captured by the sending card occupies when capturing data, and obtain the second pixel height. Calculate the difference between the height of the first pixel and the height of the second pixel, and determine the redundant pixel rows based on the difference; Calculate the hash value of the displayed data to obtain the first hash value, and encrypt the first hash value and record it in the extra pixel row; The display data and the encrypted first hash value are transmitted to the sending card so that the sending card can verify the encrypted first hash value. If the verification is successful, the display data is transmitted to the receiving card.

[0005] Furthermore, the sending card verifies the encrypted first hash value, and upon successful verification, transmits the display data to the receiving card, including: The sending card extracts display data based on the actual resolution, calculates the hash value of the extracted display data, and obtains a second hash value. Extract the encrypted first hash value from the extra pixel rows, decrypt the encrypted first hash value, and compare the decrypted hash value with the second hash value; Once it is confirmed that the hash value obtained after decryption matches the second hash value, the verification is successful and the captured display data is transmitted to the receiving card.

[0006] Furthermore, obtain the screen's supported resolutions, including: Extract the screen's edid configuration information, and determine the resolution that the screen can support based on the screen's edid configuration information.

[0007] Further, the calculation of the hash value of the displayed data to obtain a first hash value, and the encryption of the first hash value and its recording in the extra pixel rows, includes: Perform MD5 calculation on the displayed data to obtain the first hash value; The first hash value is encrypted using a preset public key, and the encrypted first hash value is written into the extra pixel row.

[0008] Further, the hash value of the extracted display data is calculated to obtain the second hash value, which includes: The MD5 hash of the extracted display data is calculated to obtain the second hash value.

[0009] Further, the encrypted first hash value is decrypted, including: The encrypted first hash value is decrypted using the preset private key corresponding to the preset public key.

[0010] Furthermore, if the sending card determines that the hash value obtained after decryption is inconsistent with the second hash value, it determines that the verification has failed and does not transmit the intercepted display data to the receiving card.

[0011] Based on the above-described method embodiments, another embodiment of the present invention provides a player for executing the display data authentication method described in any one of the present invention.

[0012] Based on the above-described method embodiments, another embodiment of the present invention provides a display data authentication system, including: a player, a sending card, and a receiving card; Includes: player, sending card, and receiving card; The player is used to obtain the screen's supported resolution and the actual resolution; Based on the supported resolution, determine the number of pixel rows that the data sent by the player can occupy when sending data, and obtain the first pixel height; based on the actual resolution of the screen, determine the number of pixel rows that the data captured by the sending card occupies when capturing data, and obtain the second pixel height. Calculate the difference between the height of the first pixel and the height of the second pixel, and determine the redundant pixel rows based on the difference; Calculate the hash value of the displayed data to obtain the first hash value, and encrypt the first hash value and record it in the extra pixel row; The displayed data and the encrypted first hash value are transmitted to the sending card; The sending card is used to verify the encrypted first hash value, and when the verification is successful, it will transmit the display data to the receiving card.

[0013] The following beneficial effects can be achieved by implementing the embodiments of the present invention: This invention provides a display data authentication method and system. The method calculates redundant pixel rows based on the screen's supported resolution and the actual resolution. Then, when synchronizing display data transmission to the sending card, the hash value corresponding to the display data is encrypted to form an encrypted first hash value. This encrypted first hash value is recorded within the redundant pixel rows. This encrypted first hash value, along with the display data, can then be transmitted to the sending card via the HDMI / DVI interface. The sending card then authenticates the display data based on the encrypted first hash value. Upon successful authentication, the display data is transmitted to the receiving card. This method avoids the problem of the player and sending card being unable to directly send encrypted message data via the HDMI / DVI interface, thus preventing the display data from being tampered with. Attached Figure Description

[0014] Figure 1 This is a flowchart illustrating a display data authentication method provided in an embodiment of the present invention.

[0015] Figure 2 This is a schematic diagram illustrating the storage principle of the display data and the encrypted first hash value provided in an embodiment of the present invention.

[0016] Figure 3 This is a system structure diagram of a display data authentication device provided in an embodiment of the present invention. Detailed Implementation

[0017] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0018] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains; the terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the application; the terms “comprising” and “having”, and any variations thereof, in the specification, claims, and foregoing description of the drawings are intended to cover non-exclusive inclusion.

[0019] In the description of the embodiments of this application, technical terms such as "first" and "second" are used only to distinguish different objects and should not be construed as indicating or implying relative importance or implicitly specifying the number, specific order, or primary and secondary relationship of the indicated technical features. In the description of the embodiments of this application, "multiple" means two or more, unless otherwise explicitly defined.

[0020] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a mutually exclusive, independent, or alternative embodiment. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0021] In the description of the embodiments in this application, the term "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Additionally, the character " / " in this document generally indicates that the preceding and following related objects have an "or" relationship.

[0022] In the description of the embodiments of this application, the term "multiple" refers to two or more (including two), similarly, "multiple sets" refers to two or more (including two sets), and "multiple pieces" refers to two or more (including two pieces).

[0023] In the description of the embodiments of this application, unless otherwise expressly specified and limited, technical terms such as "installation," "connection," "joining," and "fixing" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral part; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication of two components or the interaction between two components. For those skilled in the art, the specific meaning of the above terms in the embodiments of this application can be understood according to the specific circumstances.

[0024] like Figure 1 As shown, an embodiment of the present invention provides a display data authentication method, applicable to a media player, which includes at least the following steps: Step S1: Obtain the screen's supported resolutions and the actual resolution. In a preferred embodiment, obtaining the resolution that the screen can support includes: extracting the screen's edid configuration information and determining the resolution that the screen can support based on the screen's edid configuration information.

[0025] Specifically, in real-world scenarios, the supported resolutions set in the player screen's edid configuration are often slightly larger than the actual screen size. For example, the supported resolution might be set to 1080P in the screen's edid configuration, while the actual screen resolution is only 720P. By obtaining the screen's edid configuration information, the supported resolutions can be determined from it.

[0026] Step S2: Based on the supported resolution, determine the number of pixel rows that the data sent by the player can occupy when sending data, and obtain the first pixel height; based on the actual resolution of the screen, determine the number of pixel rows that the data captured by the sending card occupies when capturing data, and obtain the second pixel height; Specifically, since the screen's supported resolution is generally greater than its actual resolution, when a player transmits data via HDMI / DVI, it transmits data according to the supported resolution, while the sending card extracts data based on the actual resolution. For example, assuming the player supports 1080P, but the screen's actual resolution is only 720P, the player will transmit 1080P data, such as an image, to the sending card, while the sending card will extract a 720P image. In this case, the size extracted by the sending card will actually be one pixel less than the size actually transmitted by the player. These extra pixel rows are used to record the encryption and verification data corresponding to the displayed data. To determine these extra pixel rows, it's necessary to first determine the number of pixel rows corresponding to the screen's supported resolution and the number of pixel rows corresponding to the actual resolution.

[0027] To illustrate, if the player supports a resolution of 1080P (1920x1080), but the screen's actual resolution is only 720P (1280x720), then the height of the first pixel is 1080, and the height of the second pixel is 720.

[0028] Step S3: Calculate the difference between the height of the first pixel and the height of the second pixel, and determine the redundant pixel rows based on the difference; Specifically, the extra data rows can be determined by calculating the difference between the height of the first pixel and the height of the second pixel; taking the above example again: the height of the first pixel is 1080, and the height of the second pixel is 720; then the extra pixel rows are 360.

[0029] Step S4: Calculate the hash value of the displayed data to obtain the first hash value, encrypt the first hash value and record it in the extra pixel row; In a preferred embodiment, the step of calculating the hash value of the display data to obtain a first hash value, and encrypting the first hash value and recording it in the extra pixel row includes: performing MD5 calculation on the display data to obtain the first hash value; encrypting the first hash value using a preset public key; and writing the encrypted first hash value into the extra pixel row.

[0030] Specifically, in this invention, a preset public key and a preset private key are generated using an asymmetric encryption algorithm. The player first calculates the hash value of the display data using the MD5 algorithm to obtain the aforementioned first hash value. Then, it encrypts the first hash value using the preset public key and finally writes the encrypted first hash value into the extra pixel rows. At the same time, the display data is written into the pixel rows corresponding to the actual resolution, so that the display data and the encrypted first hash value are transmitted to the sending card together. It should be noted that the aforementioned display data can be video or image, and the aforementioned encrypted first hash value serves as encrypted authentication data, which is subsequently authenticated by the sending card.

[0031] Indicative, Figure 2 For example: the outermost area 1 is the pixel display area corresponding to the resolution supported by the screen; area 2 is the pixel display area corresponding to the actual resolution; area 3 is the area occupied by the extra pixel rows; in this invention, the encrypted first hash value will be written into each pixel row corresponding to area 3, and the display data will be written into the pixel row corresponding to area 2. After the data is written, the display data and the encrypted first hash value can be transmitted to the sending card.

[0032] Step S5: The display data and the encrypted first hash value are transmitted to the sending card so that the sending card can verify the encrypted first hash value. When the verification is successful, the display data is transmitted to the receiving card to generate a first random number. The first random number is then transmitted to the first terminal device so that the first terminal device can reconstruct and encrypt the first random number to generate the first ciphertext.

[0033] In a preferred embodiment, the sending card verifies the encrypted first hash value, and upon successful verification, transmits the display data to the receiving card, including: The sending card extracts display data based on the actual resolution, calculates the hash value of the extracted display data, and obtains a second hash value. Extract the encrypted first hash value from the extra pixel rows, decrypt the encrypted first hash value, and compare the decrypted hash value with the second hash value; Once it is confirmed that the hash value obtained after decryption matches the second hash value, the verification is successful and the captured display data is transmitted to the receiving card.

[0034] In a preferred embodiment, calculating the hash value of the truncated display data to obtain a second hash value includes: performing MD5 calculation on the truncated display data to obtain the second hash value.

[0035] In a preferred embodiment, decrypting the encrypted first hash value includes: decrypting the encrypted first hash value using a preset private key corresponding to the preset public key.

[0036] In a preferred embodiment, if the hash value obtained after decryption is inconsistent with the second hash value, the verification is determined to be unsuccessful, and the intercepted display data is not transmitted to the receiving card.

[0037] Specifically, after the player writes the relevant data to the corresponding area in step S4, it transmits the display data and the encrypted first hash value to the sending card via the HDMI / DVI interface in the form of the same image frame. The sending card truncates area 2 according to the actual resolution, extracts the display data, and then calculates the MD5 value to obtain the aforementioned second hash value. Furthermore, it extracts the encrypted first hash value from area 3 and decrypts it using the corresponding preset private key to obtain the decrypted hash value. Next, it compares the second hash value with the decrypted hash value. If they match, it means that the display data currently received by the sending card is consistent with the display data sent by the player, and the display data has not been tampered with; the verification is passed. Then, the sending card transmits the display data to each receiving card for image updates. If the second hash value and the decrypted hash value do not match, it means that the display data currently received by the sending card is inconsistent with the display data sent by the player, and the display data has been tampered with; the verification fails, and in this case, no further transmission of display data is performed, and no image update is performed.

[0038] The above method enables encryption and authentication of display data transmitted between the player and the sending card via the HDMI / DVI interface, preventing malicious actors from tampering with the display content by replacing the player or using specific algorithms.

[0039] Based on the above method embodiments, another embodiment of the present invention provides a player for executing the display data authentication method described in any one of the above embodiments.

[0040] like Figure 3As shown, based on the above-described method embodiments, another embodiment of the present invention provides a display data authentication system, including: a player, a sending card, and a receiving card; The player is used to obtain the screen's supported resolution and the actual resolution; Based on the supported resolution, determine the number of pixel rows that the data sent by the player can occupy when sending data, and obtain the first pixel height; based on the actual resolution of the screen, determine the number of pixel rows that the data captured by the sending card occupies when capturing data, and obtain the second pixel height. Calculate the difference between the height of the first pixel and the height of the second pixel, and determine the redundant pixel rows based on the difference; Calculate the hash value of the displayed data to obtain the first hash value, and encrypt the first hash value and record it in the extra pixel row; The displayed data and the encrypted first hash value are transmitted to the sending card; The sending card is used to verify the encrypted first hash value, and when the verification is successful, it will transmit the display data to the receiving card.

[0041] It should be noted that in the display data authentication system provided by the present invention, the player can execute the display data authentication method described in any of the above embodiments of the present invention, and will not be elaborated further here to avoid redundancy.

[0042] The above description represents the preferred embodiments of the present invention. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principles of the present invention, and these improvements and modifications are also considered to be within the scope of protection of the present invention.

Claims

1. A display data authentication method, applicable to a media player, characterized in that, include: Obtain the screen's supported resolution and the actual resolution; Based on the supported resolution, determine the number of pixel rows that the data sent by the player can occupy when sending data, and obtain the first pixel height; based on the actual resolution of the screen, determine the number of pixel rows that the data captured by the sending card occupies when capturing data, and obtain the second pixel height. Calculate the difference between the height of the first pixel and the height of the second pixel, and determine the redundant pixel rows based on the difference; Calculate the hash value of the displayed data to obtain the first hash value, and encrypt the first hash value and record it in the extra pixel row; The display data and the encrypted first hash value are transmitted to the sending card so that the sending card can verify the encrypted first hash value. If the verification is successful, the display data is transmitted to the receiving card.

2. The display data authentication method as described in claim 1, characterized in that, The sending card verifies the encrypted first hash value, and upon successful verification, transmits the display data to the receiving card, including: The sending card extracts display data based on the actual resolution, calculates the hash value of the extracted display data, and obtains a second hash value. Extract the encrypted first hash value from the extra pixel rows, decrypt the encrypted first hash value, and compare the decrypted hash value with the second hash value; Once it is confirmed that the hash value obtained after decryption matches the second hash value, the verification is successful and the captured display data is transmitted to the receiving card.

3. The display data authentication method as described in claim 2, characterized in that, Obtain the screen's supported resolutions, including: Extract the screen's edid configuration information, and determine the resolution that the screen can support based on the screen's edid configuration information.

4. The display data authentication method as described in claim 3, characterized in that, The calculation of the hash value of the displayed data yields a first hash value. This first hash value is then encrypted and recorded within the extra pixel rows, including: Perform MD5 calculation on the displayed data to obtain the first hash value; The first hash value is encrypted using a preset public key, and the encrypted first hash value is written into the extra pixel row.

5. The display data authentication method as described in claim 4, characterized in that, Calculate the hash value of the truncated display data to obtain the second hash value, which includes: The MD5 hash of the extracted display data is calculated to obtain the second hash value.

6. The display data authentication method as described in claim 5, characterized in that, Decrypting the encrypted first hash value includes: The encrypted first hash value is decrypted using the preset private key corresponding to the preset public key.

7. The display data authentication method as described in claim 6, characterized in that, If the sending card determines that the hash value obtained after decryption is inconsistent with the second hash value, it determines that the verification fails and does not transmit the intercepted display data to the receiving card.

8. A data authentication system for display, characterized in that, include: Player, sending card, and receiving card; The player is used to obtain the screen's supported resolution and the actual resolution; Based on the supported resolution, determine the number of pixel rows that the data sent by the player can occupy when sending data, and obtain the first pixel height; based on the actual resolution of the screen, determine the number of pixel rows that the data captured by the sending card occupies when capturing data, and obtain the second pixel height. Calculate the difference between the height of the first pixel and the height of the second pixel, and determine the redundant pixel rows based on the difference; Calculate the hash value of the displayed data to obtain the first hash value, and encrypt the first hash value and record it in the extra pixel row; The displayed data and the encrypted first hash value are transmitted to the sending card; The sending card is used to verify the encrypted first hash value, and when the verification is successful, it will transmit the display data to the receiving card.

Citation Information

Patent Citations

  • Image tamper localization method and system

    CN105160617A

  • Information processing system, information processing method, program, and user interface

    CN114503111A