A data transmission method and system based on digital interface key

By obtaining the receiver attribute division authorization policy and generating the content key, the problem of content transmission interruption caused by the HDCP sender monitoring changes in the receiver policy is solved, key distribution with matching receiver attributes is realized, and receivers that comply with the policy can be decrypted. content, improving transmission security and user experience.

CN115085901BActive Publication Date: 2024-10-22SHENZHEN NAT ENG LAB OF DIGITAL TELEVISION
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210598283.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-30
Publication Date
2024-10-22
Estimated Expiration
2042-05-30

AI Technical Summary

Technical Problem

When the content authorization policy changes, the existing HDCP transmitter needs to monitor whether all receivers comply with the authorization policy. The existence of receivers that do not comply with the policy will cause content transmission to be interrupted and affect the user experience.

Method used

By obtaining the attributes of the receiver, the authorization policy set is divided and the corresponding content key is generated. Only matching keys are assigned to receivers that comply with the policy. The hash chain function and XOR operation are used to generate content keys to ensure that only those that comply with the policy are generated. The receiver holds decryption capabilities.

Benefits of technology

It realizes the advance distribution of matching content keys based on receiver attributes, ensuring that only receivers that comply with the authorization policy have decryption capabilities, preventing receivers that do not comply with the policy from decrypting content, and improving the security and user experience of content transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115085901B_ABST
    Figure CN115085901B_ABST
Patent Text Reader

Abstract

The present invention discloses a data transmission method and system based on a digital interface key, comprising obtaining the attributes of each receiver, dividing a corresponding authorization policy set for each receiver according to the attributes of the receiver, generating a content key corresponding to each authorization policy in the authorization policy set, allocating a corresponding content key to each receiver according to the authorization policy set of each receiver, obtaining plaintext and the authorization policy of the plaintext, selecting a target content key to encrypt the plaintext, and sending the ciphertext to all receivers to obtain the plaintext; the method distributes content keys matching the attributes to the receivers in advance according to the attributes of the receivers, and uses different content keys to encrypt content for different authorization policies, so that only the receivers that meet the corresponding authorization policy hold the content key, while the receivers that do not meet the authorization policy cannot decrypt the ciphertext that does not meet the requirements of the authorization policy because they have not received the content key that exceeds the attribute capability in advance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field related to data transmission, and in particular to a data transmission method and system based on a digital interface key. Background Art

[0002] At present, commonly used content authorization systems such as DRM clients or CA clients, after receiving the protected media content, the content authorization system verifies that each component (decryptor, decoder, processing unit, renderer, digital interface transmitter) meets the authorization policy of the content authorization system, and then delivers it to the decryptor for decryption, the decoder for decompression, and the video processing unit for processing, and then to the display processing unit for rendering, and finally to the digital interface transmitter. The transmitter transmits the rendered data to the digital interface receiver through the digital interface channel, and the receiver presents it to the display after receiving the content.

[0003] HDCP is a digital interface transmission protection standard. It is applied to execute authorization policies on digital interfaces. HDCP protection can be enabled by configuring the digital interface transmitter. The transmitter re-encrypts the content and transmits it to the receiver. The digital interface receiver needs to support HDCP and comply with the authorization policy requirements to receive and decrypt the content. The digital interface link includes the transmitter Source, the intermediate copy and routing node Repeater, and the receiver Sink, which are connected through the upstream port and the downstream port.

[0004] When the authorization policy of the content changes, the transmitter on the interface link needs to implement the new authorization policy. Currently, the HDCP transmitter needs to monitor whether all receivers on the current interface link meet the authorization policy requirements. When there are receivers that do not meet the authorization policy, the transmitter will terminate the transmission of the content to all interfaces to ensure security. Even if there are receivers that meet the authorization policy on the interface link, they will be unable to receive the content passively because there are receivers that do not meet the authorization policy on the interface link, affecting the user experience. Summary of the invention

[0005] The present invention aims to at least solve the technical problems existing in the prior art. To this end, the present invention proposes a data transmission method and system based on a digital interface key, which distributes content keys matching the attributes to receivers in advance according to the attributes of the receivers, and uses different content keys to encrypt content for different authorization policies, so that only receivers that meet the corresponding authorization policies hold the content keys, while receivers that do not meet the authorization policies cannot decrypt content that does not meet the requirements of the authorization policies because they have not received content keys that exceed the attribute capabilities in advance.

[0006] A first aspect of the present invention provides a data transmission method based on a digital interface key, comprising the following steps:

[0007] Acquire the attributes of each receiver, and divide the corresponding authorization policy set for each receiver according to the attributes of the receiver; wherein the attributes of the receiver are the classification of the receiver by the interface protection standard between the transmitter and the receiver; the authorization policy set includes one or more authorization policies;

[0008] Generate a content key corresponding to each authorization policy in the authorization policy set;

[0009] Allocate the corresponding content key to each receiver according to the authorization policy set of each receiver;

[0010] Obtaining a plain text and an authorization policy of the plain text, selecting a target content key to encrypt the plain text, and obtaining a cipher text; wherein the target content key refers to the content key corresponding to the authorization policy of the plain text;

[0011] The ciphertext is sent to all the receivers, so that the receiver assigned with the target content key selects the target content key to decrypt the ciphertext to obtain the plaintext.

[0012] According to the embodiments of the present invention, there are at least the following technical effects:

[0013] This method distributes content keys that match the attributes to receivers in advance according to the attributes of the receivers, and uses different content keys to encrypt content for different authorization policies, so that only receivers that comply with the corresponding authorization policy hold the content key. Receivers that do not comply with the authorization policy cannot decrypt ciphertext that does not comply with the authorization policy requirements because they have not received content keys that exceed the attribute capabilities in advance.

[0014] According to some embodiments of the present invention, the attributes of the receiver include capability attribute items and capability values ​​corresponding to the capability attributes; the authorization policy includes authorization items and authorization item requirement values ​​corresponding to the authorization items; and the acquiring of the attributes of each receiver and dividing the corresponding authorization policy set for each receiver according to the attributes of the receiver includes:

[0015] Obtaining the capability attribute item and the capability value of each of the receivers;

[0016] Allocating corresponding authorization items according to the capability attribute items of the receiver, and allocating corresponding authorization item requirement values ​​according to the capability values ​​of the receiver;

[0017] The corresponding authorization policy is obtained according to the combination of the authorization item and the authorization item requirement value assigned by the receiver, and all the authorization policies of the receiver are collected to obtain the authorization policy set of the receiver.

[0018] According to some embodiments of the present invention, the method further comprises:

[0019] According to the dimensions of the capability attribute items of the receiver, a hash chain function of each dimension is constructed respectively, and according to the capability value corresponding to the capability attribute item, a corresponding level is assigned to the hash chain function of each dimension to obtain a hash chain key corresponding to each dimension of the receiver;

[0020] Sending all the hash chain keys assigned to each of the receivers to the corresponding receiver;

[0021] If the authorization policy at the current moment changes, select the corresponding hash chain key to generate the content key according to the authorization policy at the current moment, encrypt the plaintext with the content key to obtain the ciphertext, and send the ciphertext and the authorization policy at the current moment to all receivers, so that the receivers can iterate the existing hash chain keys and calculate the generated content key according to the authorization policy at the current moment, and decrypt the ciphertext according to the generated content key to obtain the plaintext.

[0022] According to some embodiments of the present invention, the hash chain function is a one-way hash function, and the expression is The attribute i represents the i-th dimension of the capability attribute item of the receiver, and the initial key of the attribute i is set to

[0023] According to some embodiments of the present invention, the hash chain key calculation formula corresponding to each dimension of the receiver is: Wherein, p is the capability value of attribute i of the target receiver, and N is the maximum capability value of the attribute i.

[0024] According to some embodiments of the present invention, the authorization items of the authorization policy are combined using an exclusive-OR operation.

[0025] A second aspect of the present invention provides a data transmission system based on a digital interface key, which includes a data transmission method based on a digital interface key as described in the first aspect of the present invention, and the data transmission system based on a digital interface key includes:

[0026] The attribute acquisition module is used to obtain the attributes of each receiver;

[0027] An authorization policy allocation module is used to divide a corresponding authorization policy set for each receiver according to the attributes of the receiver; wherein the attribute of the receiver is the classification of the receiver by the interface protection standard between the transmitter and the receiver; and the authorization policy set includes one or more authorization policies;

[0028] A content key generation module, used to generate a content key corresponding to each authorization policy in the authorization policy set;

[0029] A content key distribution module, used for distributing the corresponding content key to each receiver according to the authorization policy set of each receiver;

[0030] A data encryption module, used to obtain the plain text and the authorization policy of the plain text, select a target content key to encrypt the plain text, and obtain a cipher text; wherein the target content key refers to the content key corresponding to the authorization policy of the plain text;

[0031] The ciphertext sending module is used to send the ciphertext to all the receivers, so that the receiver assigned with the target content key selects the target content key to decrypt the ciphertext to obtain the plaintext.

[0032] This system distributes content keys that match the attributes to receivers in advance based on the attributes of the receivers, and uses different content keys to encrypt content for different authorization policies, so that only receivers that comply with the corresponding authorization policy hold the content key. Receivers that do not comply with the authorization policy cannot decrypt ciphertext that does not comply with the authorization policy requirements because they have not received content keys that exceed the attribute capabilities in advance.

[0033] According to some embodiments of the present invention, the attributes of the receiver include capability attribute items and capability values ​​corresponding to the capability attributes; the authorization policy includes authorization items and authorization item requirement values ​​corresponding to the authorization items, and the authorization policy allocation module further includes:

[0034] A capability attribute acquisition module, used for the transmitter to obtain the capability attribute item and the capability value of each receiver;

[0035] An authorization item allocation module, configured for the transmitter to allocate corresponding authorization items according to the capability attribute items of the receiver, and to allocate corresponding authorization item requirement values ​​according to the capability values ​​of the receiver;

[0036] The authorization policy acquisition module is used for the transmitter to obtain the corresponding authorization policy according to the authorization item and the authorization item requirement value assigned by the receiver, and to collect all the authorization policies of the receiver to obtain the authorization policy set of the receiver.

[0037] According to some embodiments of the present invention, the system further comprises:

[0038] A hash chain key generation module, used to construct a hash chain function of each dimension according to the dimension of the capability attribute item of the receiver, and assign a corresponding level to the hash chain function of each dimension according to the capability value corresponding to the capability attribute item, so as to obtain a hash chain key corresponding to each dimension of the receiver;

[0039] A hash chain key distribution module, used to send all the hash chain keys distributed to each of the receivers to the corresponding receiver;

[0040] The content key switching module selects the corresponding hash chain key to generate the content key according to the authorization policy at the current moment if the authorization policy at the current moment changes, encrypts the plaintext by the content key to obtain the ciphertext, and sends the ciphertext and the authorization policy at the current moment to all receivers, so that the receivers iterate the existing hash chain key and calculate the generated content key according to the authorization policy at the current moment, and decrypt the ciphertext according to the generated content key to obtain the plaintext.

[0041] According to a third aspect of the present invention, there is provided an electronic device for data transmission based on a digital interface key, comprising at least one control processor and a memory for communicating with the at least one control processor; the memory stores instructions executable by the at least one control processor, and the instructions are executed by the at least one control processor so that the at least one control processor can execute the above-mentioned data transmission method based on the digital interface key.

[0042] According to a fourth aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the above-mentioned data transmission method based on the digital interface key.

[0043] It should be noted that the beneficial effects between the second to fourth aspects of the present invention and the prior art are the same as the beneficial effects between the above-mentioned data transmission system based on digital interface keys and the prior art, and will not be described in detail here.

[0044] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:

[0046] Figure 1is a flow chart of a data transmission method based on a digital interface key according to an embodiment of the present invention;

[0047] Figure 2 The present invention is a flowchart of a data transmission system based on a digital interface key according to an embodiment of the present invention. DETAILED DESCRIPTION

[0048] Embodiments of the present invention are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.

[0049] In the description of the present invention, if there is a description of first, second, etc., it is only for the purpose of distinguishing technical features, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.

[0050] In the description of the present invention, it should be understood that descriptions involving orientation, such as orientation or positional relationship indicated as up, down, etc., are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention.

[0051] In the description of the present invention, it should be noted that, unless otherwise clearly defined, terms such as setting, installing, connecting, etc. should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meanings of the above terms in the present invention in combination with the specific content of the technical solution.

[0052] When the authorization policy of the content changes, the transmitter on the interface link needs to implement the new authorization policy. Currently, the HDCP transmitter needs to monitor whether all receivers on the current interface link meet the authorization policy requirements. When there are receivers that do not meet the authorization policy, the transmitter will terminate the transmission of the content to all interfaces to ensure security. Even if there are receivers that meet the authorization policy on the interface link, they will be unable to receive the content passively because there are receivers that do not meet the authorization policy on the interface link, affecting the user experience.

[0053] In order to solve the above technical defects, refer to Figure 1 One embodiment of the present invention provides a data transmission method based on a digital interface key, comprising:

[0054] S101. Obtain the attributes of each receiver, and divide each receiver into a corresponding authorization policy set according to the attributes of the receiver; wherein the attributes of the receiver are the classification of the receiver by the interface protection standard between the transmitter and the receiver; and the authorization policy set includes one or more authorization policies.

[0055] S102: Generate a content key corresponding to each authorization policy in the authorization policy set.

[0056] S103. Allocate a corresponding content key to each receiver according to the authorization policy set of each receiver.

[0057] S104, obtaining the plain text and the authorization policy of the plain text, selecting a target content key to encrypt the plain text, and obtaining a ciphertext; wherein the target content key refers to the content key corresponding to the authorization policy of the plain text.

[0058] S105. Send the ciphertext to all receivers, so that the receiver assigned with the target content key selects the target content key to decrypt the ciphertext to obtain the plaintext.

[0059] This method distributes content keys that match the attributes to receivers in advance according to the attributes of the receivers, and uses different content keys to encrypt content for different authorization policies, so that only receivers that comply with the corresponding authorization policy hold the content key. Receivers that do not comply with the authorization policy cannot decrypt ciphertext that does not comply with the authorization policy requirements because they have not received content keys that exceed the attribute capabilities in advance.

[0060] In some embodiments, the attributes of the receiver include capability attribute items and capability values ​​corresponding to the capability attributes; the authorization policy includes authorization items and authorization item requirement values ​​corresponding to the authorization items; the attributes of each receiver are obtained, and a corresponding authorization policy set is divided for each receiver according to the attributes of the receiver, including:

[0061] Get the capability attribute items and capability values ​​of each receiver.

[0062] The corresponding authorization items are allocated according to the capability attribute items of the receiver, and the corresponding authorization item requirement values ​​are allocated according to the capability values ​​of the receiver.

[0063] The corresponding authorization policy is obtained according to the combination of the authorization item and the authorization item requirement value assigned by the receiver, and all the authorization policies of the receiver are collected to obtain the authorization policy set of the receiver.

[0064] In some embodiments, the method further comprises:

[0065] According to the dimensions of the receiver's capability attribute items, a hash chain function for each dimension is constructed respectively, and according to the capability value corresponding to the capability attribute item, a corresponding level is assigned to the hash chain function for each dimension to obtain the hash chain key corresponding to each dimension of the receiver.

[0066] All hash chain keys assigned to each receiver are sent to the corresponding receiver.

[0067] If the authorization policy at the current moment changes, select the corresponding hash chain key to generate the content key according to the authorization policy at the current moment, encrypt the plaintext with the content key to obtain the ciphertext, and send the ciphertext and the authorization policy at the current moment to all receivers, so that the receivers can iterate the existing hash chain keys and calculate the generated content key according to the authorization policy at the current moment, and decrypt the ciphertext according to the generated content key to obtain the plaintext.

[0068] By sending the ciphertext and the current authorization policy to all receivers at the same time, the time for selecting the target content key is shortened and the decryption efficiency is improved. At the same time, the number of content keys distributed is reduced through the hash chain key method.

[0069] In some embodiments, the hash chain function is a one-way hash function, and the expression is Among them, attribute i represents the i-th dimension of the receiver's capability attribute item, and the initial key of attribute i is set to

[0070] In some embodiments, the hash chain key calculation formula corresponding to each dimension of the receiver is: Where p is the capability value of attribute i of the target receiver, and N is the maximum capability value of attribute i.

[0071] In some embodiments, the authorization items of the authorization policy are combined using an exclusive OR operation.

[0072] In order to facilitate the understanding of those skilled in the art, a group of best embodiments are provided below:

[0073] 1. Classify the receiver attributes. For example, there are two capability attributes (the capability attributes depend on the policy items) involved in the classification, the two capability attributes are version and security level. Set the maximum capability value of version to N and the maximum capability value of level to M.

[0074] 2. Construct the hash chain function of the two capability attributes and generate the initial keys of the two capability attributes. The hash function of the version is f n+1 =hmac(f n , "version"), the security level of the hash function is gm+1 =hmac(g m , "level"), the initial key of the version is set to f1, and the initial key of the security level is set to g1.

[0075] 3. The sender obtains the capability value of the receiver. For example, there are currently two receivers. The version capability value of receiver A is 1, and the security level capability value is 2. The version capability value of receiver B is 2, and the security level capability value is 1.

[0076] 4. According to the different capabilities of the two receivers, generate two different hash chain keys and send them to the receivers. The calculation formula for the hash chain key corresponding to each dimension of the receiver is: Among them, p is the capability value of attribute i of the target receiver, and N is the maximum capability value of attribute i. Only the number of keys that match the number of dimensions needs to be sent, and the number of hash chain iterations for different capability attribute receivers is different.

[0077] For example, if receiver A is version 1, level 2 and receiver B is version 2, level 1, then the two hash chain keys sent to receiver A are f N With g M-1 (According to versioni, the key value is f N-i+1 Calculate the key value of levelj to be g M-j+1 Calculation), the two hash chain keys sent to receiver B are f N-1 With g M .

[0078] 5. Set the calculation method k of the content key of the authorization policy i,j =f N-i+1 XOR g M-j+1 ; Where XOR is an exclusive OR operation, the content key of the highest authorization policy according to this formula is k N,M =f1 XOR g1, at this time, i=N, j=N.

[0079] Set the authorization policy version i, level j, and compare the difference with the receiver's capability value, and calculate f respectively. N-i+1 and g M-j+1 .

[0080] For example: Receiver A obtains f from step 4 N With g M-1 According to the one-way nature of the hash chain function, the hash chain keys of version1, level1 and version1, level2 can be calculated as f N , g M and fN , g M-1 . Where g M By M-1 Iterate once g M =hmac(g M-1 , "level") is obtained.

[0081] Receiver B, obtains f from step 4 N-1 With g M According to the one-way property of hash function, we can calculate the hash chain keys of version1, level1 and version2, level1 are f N , g M and f N-1 , g M Where f N By N-*1 Iterate once f N =hmac(f N-1 , "version")

[0082] For example, if the current authorization policy is version 1, level 1, the receiver passes k 1,1 =f N XOR g M The content key is calculated and obtained. At this time, both receiver A and receiver B have the content key and can decrypt the ciphertext.

[0083] When the content authorization policy requires changes, it changes to version1, level2, and the content key is switched to k 1,2 =f N XOR g M-1 , using the new content key k 1,2 Encrypt the plaintext, and the sender sends the new authorization policy together with the encrypted ciphertext to receivers A and B.

[0084] Receiver A, through the f obtained in step 4 N With g M-1 Calculate k 1,2 Decrypt the ciphertext.

[0085] Receiver B, obtains f in step 4 N-1 With g M , because of the irreversibility of the hash function, g M Unable to calculate g M-1 , and thus it is impossible to calculate k 1,2 , receiver B cannot decrypt the ciphertext of the new authorization policy.

[0086] That is, a high-version receiver can decrypt ciphertexts with low-version requirements, and a high-security-level receiver can decrypt ciphertexts with low-security-level requirements.

[0087] In addition, refer to Figure 2 The present invention also provides a data transmission system based on a digital interface key, comprising an attribute acquisition module 1100, an authorization policy distribution module 1200, a content key generation module 1300, a content key distribution module 1400, a data encryption module 1500 and a ciphertext sending module 1600, wherein:

[0088] The attribute acquisition module 1100 is used to acquire the attributes of each receiver.

[0089] The authorization policy allocation module 1200 is used to divide each receiver into a corresponding authorization policy set according to the attributes of the receiver; wherein the attributes of the receiver are the classification of the receiver by the interface protection standard between the transmitter and the receiver; and the authorization policy set includes one or more authorization policies.

[0090] The content key generation module 1300 is used to generate a content key corresponding to each authorization policy in the authorization policy set.

[0091] The content key distribution module 1400 is used to distribute a corresponding content key to each receiver according to the authorization policy set of each receiver.

[0092] The data encryption module 1500 is used to obtain the plain text and the authorization policy of the plain text, select the target content key to encrypt the plain text, and obtain the cipher text; wherein the target content key refers to the content key corresponding to the authorization policy of the plain text.

[0093] The ciphertext sending module 1600 is used to send the ciphertext to all receivers, so that the receivers allocated with the target content key select the target content key to decrypt the ciphertext and obtain the plaintext.

[0094] This system distributes content keys that match the attributes to receivers in advance based on the attributes of the receivers, and uses different content keys to encrypt content for different authorization policies, so that only receivers that comply with the corresponding authorization policy hold the content key. Receivers that do not comply with the authorization policy cannot decrypt ciphertext that does not comply with the authorization policy requirements because they have not received content keys that exceed the attribute capabilities in advance.

[0095] In some embodiments, the attributes of the receiver include capability attribute items and capability values ​​corresponding to the capability attributes; the authorization policy includes authorization items and authorization item requirement values ​​corresponding to the authorization items, and the authorization policy allocation module further includes:

[0096] The capability attribute acquisition module is used by the transmitter to obtain the capability attribute items and capability values ​​of each receiver.

[0097] The authorization item allocation module is used for the transmitter to allocate corresponding authorization items according to the capability attribute items of the receiver, and to allocate corresponding authorization item requirement values ​​according to the capability values ​​of the receiver.

[0098] The authorization policy acquisition module is used for the transmitter to obtain the corresponding authorization policy according to the authorization items and authorization item requirement values ​​assigned by the receiver, and to collect all the authorization policies of the receiver to obtain the authorization policy set of the receiver.

[0099] In some embodiments, the system further comprises:

[0100] The hash chain key generation module is used to construct a hash chain function for each dimension according to the dimensions of the receiver's capability attribute items, and to assign a corresponding level to the hash chain function for each dimension according to the capability value corresponding to the capability attribute item, so as to obtain the hash chain key corresponding to each dimension of the receiver.

[0101] The hash chain key distribution module is used to send all hash chain keys allocated to each receiver to the corresponding receiver.

[0102] The content key switching module selects the corresponding hash chain key to generate the content key according to the current authorization policy if the current authorization policy changes, encrypts the plaintext with the content key to obtain the ciphertext, and sends the ciphertext and the current authorization policy to all receivers, so that the receivers can iterate the existing hash chain key and calculate the generated content key according to the current authorization policy, and decrypt the ciphertext according to the generated content key to obtain the plaintext.

[0103] By sending the ciphertext and the current authorization policy to all receivers at the same time, the time for selecting the target content key is shortened and the decryption efficiency is improved. At the same time, the number of content keys distributed is reduced through the hash chain key method.

[0104] It should be noted that the present method embodiment and the above-mentioned system embodiment are based on the same inventive concept, so the relevant contents of the above-mentioned method embodiment are also applicable to the present system embodiment and will not be repeated here.

[0105] The present application also provides a data transmission electronic device based on a digital interface key, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements: the data transmission method based on the digital interface key as described above.

[0106] The processor and the memory may be connected via a bus or other means.

[0107] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0108] The non-transitory software program and instructions required to implement the data transmission method based on the digital interface key of the above embodiment are stored in the memory. When executed by the processor, the data transmission method based on the digital interface key in the above embodiment is executed, for example, the above described Figure 1 The method comprises steps S101 to S105.

[0109] The present application also provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to execute: the data transmission method based on the digital interface key as described above.

[0110] The computer-readable storage medium stores computer-executable instructions, which are executed by a processor or a controller, for example, by a processor in the above electronic device embodiment, so that the above processor can execute the data transmission method based on the digital interface key in the above embodiment, for example, execute the above described Figure 1 The method comprises steps S101 to S105.

[0111] It will be appreciated by those skilled in the art that all or some of the steps and systems in the disclosed method above may be implemented as software, firmware, hardware and appropriate combinations thereof. Some physical components or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor or a microprocessor, or may be implemented as hardware, or may be implemented as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or a non-transitory medium) and a communication medium (or a temporary medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program units or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, disk storage or other magnetic storage devices, or any other medium that may be used to store desired information and may be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media generally contain computer readable instructions, data structures, program elements, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.

[0112] The embodiments of the present invention are described in detail above in conjunction with the accompanying drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge scope of ordinary technicians in the relevant technical field without departing from the purpose of the present invention.

Claims

1. A data transmission method based on a digital interface key, characterized in that: The method comprises: Acquire the attributes of each receiver, and divide the corresponding authorization policy set for each receiver according to the attributes of the receiver; wherein the attributes of the receiver are the classification of the receiver by the interface protection standard between the transmitter and the receiver; the authorization policy set includes one or more authorization policies; Generate a content key corresponding to each authorization policy in the authorization policy set; Allocate the corresponding content key to each receiver according to the authorization policy set of each receiver; Obtaining a plain text and an authorization policy of the plain text, selecting a target content key to encrypt the plain text, and obtaining a cipher text; wherein the target content key refers to the content key corresponding to the authorization policy of the plain text; The ciphertext is sent to all the receivers, so that the receiver assigned with the target content key selects the target content key to decrypt the ciphertext to obtain the plaintext.

2. A data transmission method based on a digital interface key according to claim 1, characterized in that: The attributes of the receiver include capability attribute items and capability values ​​corresponding to the capability attributes; the authorization policy includes authorization items and authorization item requirement values ​​corresponding to the authorization items; The acquiring the attribute of each receiver and dividing the corresponding authorization policy set for each receiver according to the attribute of the receiver includes: Obtaining the capability attribute item and the capability value of each of the receivers; Allocating corresponding authorization items according to the capability attribute items of the receiver, and allocating corresponding authorization item requirement values ​​according to the capability values ​​of the receiver; The corresponding authorization policy is obtained according to the combination of the authorization item and the authorization item requirement value assigned by the receiver, and all the authorization policies of the receiver are collected to obtain the authorization policy set of the receiver.

3. A data transmission method based on a digital interface key according to claim 2, characterized in that: The method further comprises: According to the dimensions of the capability attribute items of the receiver, a hash chain function of each dimension is constructed respectively, and according to the capability value corresponding to the capability attribute item, a corresponding level is assigned to the hash chain function of each dimension to obtain a hash chain key corresponding to each dimension of the receiver; Sending all the hash chain keys assigned to each of the receivers to the corresponding receiver; If the authorization policy at the current moment changes, select the corresponding hash chain key to generate the content key according to the authorization policy at the current moment, encrypt the plaintext with the content key to obtain the ciphertext, and send the ciphertext and the authorization policy at the current moment to all receivers, so that the receivers can iterate the existing hash chain keys and calculate the generated content key according to the authorization policy at the current moment, and decrypt the ciphertext according to the generated content key to obtain the plaintext.

4. A data transmission method based on a digital interface key according to claim 3, characterized in that: The hash chain function is a one-way hash function, and the expression is The attribute i represents the i-th dimension of the capability attribute item of the receiver, and the initial key of the attribute i is set to 5. A data transmission method based on a digital interface key according to claim 4, characterized in that: The calculation formula of the hash chain key corresponding to each dimension of the receiver is: Wherein, p is the capability value of attribute i of the target receiver, and N is the maximum capability value of the attribute i.

6. A data transmission system based on a digital interface key, characterized in that: include: The attribute acquisition module is used to obtain the attributes of each receiver; An authorization policy allocation module is used to divide a corresponding authorization policy set for each receiver according to the attributes of the receiver; wherein the attribute of the receiver is the classification of the receiver by the interface protection standard between the transmitter and the receiver; and the authorization policy set includes one or more authorization policies; A content key generation module, used to generate a content key corresponding to each authorization policy in the authorization policy set; A content key distribution module, used for distributing the corresponding content key to each receiver according to the authorization policy set of each receiver; A data encryption module, used to obtain the plain text and the authorization policy of the plain text, select a target content key to encrypt the plain text, and obtain a cipher text; wherein the target content key refers to the content key corresponding to the authorization policy of the plain text; The ciphertext sending module is used to send the ciphertext to all the receivers, so that the receiver assigned with the target content key selects the target content key to decrypt the ciphertext to obtain the plaintext.

7. A data transmission system based on digital interface key according to claim 6, characterized in that: The attributes of the receiver include capability attribute items and capability values ​​corresponding to the capability attributes; the authorization policy includes authorization items and authorization item requirement values ​​corresponding to the authorization items, and the authorization policy allocation module further includes: A capability attribute acquisition module, used for the transmitter to obtain the capability attribute item and the capability value of each receiver; An authorization item allocation module, configured for the transmitter to allocate corresponding authorization items according to the capability attribute items of the receiver, and to allocate corresponding authorization item requirement values ​​according to the capability values ​​of the receiver; The authorization policy acquisition module is used for the transmitter to obtain the corresponding authorization policy according to the authorization item and the authorization item requirement value assigned by the receiver, and to collect all the authorization policies of the receiver to obtain the authorization policy set of the receiver.

8. A data transmission system based on digital interface key according to claim 7, characterized in that: The system further comprises: A hash chain key generation module, used to construct a hash chain function of each dimension according to the dimension of the capability attribute item of the receiver, and assign a corresponding level to the hash chain function of each dimension according to the capability value corresponding to the capability attribute item, so as to obtain a hash chain key corresponding to each dimension of the receiver; A hash chain key distribution module, used to send all the hash chain keys distributed to each of the receivers to the corresponding receiver; The content key switching module selects the corresponding hash chain key to generate the content key according to the authorization policy at the current moment if the authorization policy at the current moment changes, encrypts the plaintext by the content key to obtain the ciphertext, and sends the ciphertext and the authorization policy at the current moment to all receivers, so that the receivers iterate the existing hash chain key and calculate the generated content key according to the authorization policy at the current moment, and decrypt the ciphertext according to the generated content key to obtain the plaintext.

9. A data transmission device based on a digital interface key, characterized in that: It includes at least one control processor and a memory for communicating with the at least one control processor; the memory stores instructions that can be executed by the at least one control processor, and the instructions are executed by the at least one control processor to enable the at least one control processor to execute a data transmission method based on a digital interface key as described in any one of claims 1 to 5.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the data transmission method based on a digital interface key as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Multicast data transmission method for embedding ciphertext strategy into message

    CN111917534A

  • Multimedia data protection method and device and computer readable storage medium

    CN113542226A

  • Privacy-Preserving Leakage-Deterring Public-Key Encryption From Attribute-Based Encryptions

    US20200382287A1