Scrambling device and method
The scrambling device addresses the issue of ECM interruption by alternately updating keys and storing ECMs, enabling continuous content transmission and playback.
Patent Information
- Application Number
- JP2020200727
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-12-03
- Publication Date
- 2024-08-14
- Estimated Expiration
- 2040-12-03
AI Technical Summary
Existing scrambling devices struggle to continuously transmit content information when the reception of Entitlement Control Messages (ECM) from an external device is interrupted, leading to potential disruptions in content decryption and playback.
A scrambling device that alternately updates even and odd scrambling keys, stores ECMs in a storage unit, and continues to encrypt and output content information using stored keys when ECM reception is interrupted, ensuring seamless content transmission.
Ensures continuous transmission of encrypted content information even when ECM reception is disrupted, maintaining playback integrity and reliability.
Smart Images

Figure 0007533179000011 
Figure 0007533179000018 
Figure 0007533179000005
Abstract
Description
[Technical field]
[0001] The present disclosure relates to a scrambling device and a scrambling method. [Background technology]
[0002] Conventionally, techniques related to a Conditional Access System (CAS) for managing contents distributed by digital broadcasting have been developed.
[0003] For example, JLabs SPEC-035 version 2.1, "Advanced Cable Independent Broadcasting Operation Specification," Japan Cable Laboratories, December 25, 2018 (Non-Patent Document 1) discloses various standards related to CAS. That is, Non-Patent Document 1 discloses that when the scrambling key of an ES (Elementary Stream) to which an ECM (Entitlement Control Message) is applied is changed, the ECM is updated prior to changing the scrambling key. Non-Patent Document 1 also discloses that when changing the scrambling key, the change is made in the order from an even key to an odd key and then from an odd key to an even key, and the same key is not changed consecutively. [Prior art documents] [Non-patent literature]
[0004] [Non-Patent Document 1] JLabs SPEC-035 2.1, "Advanced Cable Independent Broadcasting Operation Specification", Japan Cable Laboratories, December 25, 2018 Summary of the Invention [Problem to be solved by the invention]
[0005] In a scramble device that encrypts content information using an ECM generated in an external device, a technique is desired that enables continuous transmission of content information even when reception of the ECM from the external device is interrupted.
[0006] The present disclosure has been made to solve the above-mentioned problems, and its purpose is to provide a scrambling device and scrambling method that encrypts content information using an ECM generated in an external device, and that is capable of continuing to transmit content information even when reception of the ECM from the external device is interrupted. [Means for solving the problem]
[0007] The scrambling device of the present disclosure is a scrambling device that receives an ECM including a scrambling key that is repeatedly transmitted from an ECM transmitting device and encrypts content information, wherein the ECM includes an even key and an odd key as the scrambling key, and the even key and the odd key are alternately updated.The scrambling device is equipped with an ECM management unit that receives the ECM and stores it in a memory unit, a scrambling unit that encrypts the content information using the scrambling key included in the ECM received by the ECM management unit, and an output unit that outputs the content information encrypted by the scrambling unit and the ECM including the scrambling key used to encrypt the content information in the scrambling unit, and when reception of the ECM by the ECM management unit is interrupted, the scrambling unit encrypts the content information using the scrambling key included in the ECM in the memory unit for at least a portion of the period during which reception is interrupted.
[0008] The scrambling device of the present disclosure is a scrambling device that receives an ECM including a scrambling key that is repeatedly transmitted from an ECM transmitting device and encrypts content information, wherein the ECM includes an even key and an odd key as the scrambling key, and the even key and the odd key are alternately updated, and is equipped with an ECM management unit that receives the ECM, a scrambling unit that encrypts the content information using the scrambling key included in the ECM received by the ECM management unit, and an output unit that outputs the content information encrypted by the scrambling unit and the ECM including the scrambling key used to encrypt the content information in the scrambling unit, and when reception of the ECM by the ECM management unit is interrupted, the output unit begins outputting the unencrypted content information.
[0009] The scrambling method disclosed herein is a scrambling method in a scrambling device that receives an ECM including a scrambling key that is repeatedly transmitted from an ECM transmitting device and encrypts content information, wherein the ECM includes an even key and an odd key as the scrambling key, and the even key and the odd key are alternately updated, and includes the steps of receiving the ECM and storing it in a memory unit, encrypting the content information using the scrambling key included in the received ECM, and outputting the encrypted content information and the ECM including the scrambling key used to encrypt the content information, and in the step of encrypting the content information, when reception of the ECM from the ECM transmitting device is interrupted, the content information is encrypted using the scrambling key included in the ECM in the memory unit for at least a portion of the period during which reception is interrupted.
[0010] The scrambling method disclosed herein is a scrambling method in a scrambling device that receives an ECM including a scrambling key that is repeatedly transmitted from an ECM transmitting device and encrypts content information, wherein the ECM includes an even key and an odd key as the scrambling key, and the even key and the odd key are alternately updated, and includes the steps of receiving the ECM, encrypting the content information using the scrambling key included in the received ECM, and outputting the encrypted content information and the ECM including the scrambling key used to encrypt the content information, and in the step of outputting the content information and the ECM, if reception of the ECM from the ECM transmitting device is interrupted, starting to output the unencrypted content information.
[0011] One aspect of the present disclosure may be realized not only as a scrambling device having such a characteristic processing unit, but also as a semiconductor integrated circuit that realizes part or all of the scrambling device, or as a program for causing a computer to execute the processing steps in the scrambling device, or as a broadcasting system having a scrambling device, or as a semiconductor integrated circuit that realizes part or all of the broadcasting system, or as a method in which the processing in the broadcasting system is steps, or as a program for causing a computer to execute the processing steps in the broadcasting system. Effect of the Invention
[0012] According to the present disclosure, in a scramble device that encrypts content information using an ECM generated in an external device, it is possible to continue transmitting the content information even if reception of the ECM from the external device is interrupted. [Brief description of the drawings]
[0013] [Figure 1] FIG. 1 is a diagram showing a configuration of a broadcasting system according to a first embodiment of the present disclosure. [Diagram 2] FIG. 2 is a diagram showing an example of a scrambling key included in an ECM transmitted by an ECM transmitting device according to the first embodiment of the present disclosure. [Diagram 3] FIG. 3 is a diagram showing a format of a TS packet in the broadcasting system according to the first embodiment of the present disclosure. [Figure 4] FIG. 4 is a diagram showing a configuration of a scramble device according to the first embodiment of the present disclosure. [Diagram 5] FIG. 5 is a diagram illustrating an example of format conversion by an ECM detection unit in the scrambling device according to the first embodiment of the present disclosure. [Figure 6] FIG. 6 is a diagram showing a format of section data in the broadcasting system according to the first embodiment of the present disclosure. [Figure 7] FIG. 7 is a diagram showing scrambling keys used by the scrambling unit in the scrambling device according to the first embodiment of the present disclosure to encrypt TS packets. [Figure 8] FIG. 8 is a diagram showing an example of a timing chart illustrating the timing of receiving an ECM and the scrambling key used to encrypt content information in the scrambling device according to the first embodiment of the present disclosure. [Figure 9] FIG. 9 is a diagram illustrating an example of an ECM stored in a storage unit in the scramble device according to the first embodiment of the present disclosure. [Figure 10] FIG. 10 is a diagram showing an example of a scrambling key used by the scrambling unit in the scrambling device according to the first embodiment of the present disclosure to encrypt a TS packet. [Figure 11] FIG. 11 is a diagram showing an example of a scrambling key used by the scrambling unit in the scrambling device according to the first embodiment of the present disclosure to encrypt a TS packet. [Figure 12] FIG. 12 is a diagram showing another example of a scrambling key used by the scrambling unit in the scrambling device according to the first embodiment of the present disclosure to encrypt a TS packet. [Figure 13]FIG. 13 is a flowchart defining an example of an operation procedure when the scrambling device according to the first embodiment of the present disclosure performs scrambling processing. [Figure 14] FIG. 14 is a flowchart defining another example of an operation procedure when the scrambling device according to the first embodiment of the present disclosure performs scrambling processing. [Figure 15] FIG. 15 is a flowchart defining another example of an operation procedure when the scrambling device according to the first embodiment of the present disclosure performs scrambling processing. [Figure 16] FIG. 16 is a diagram illustrating an example of content information output by an output unit in the ECM transmitting device according to the first embodiment of the present disclosure. [Figure 17] FIG. 17 is a diagram illustrating a configuration of a scramble device according to the second embodiment of the present disclosure. [Figure 18] FIG. 18 is a flowchart defining an example of an operational procedure when the scrambling device according to the second embodiment of the present disclosure performs scrambling processing. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0014] First, the contents of the embodiments of the present disclosure will be listed and described.
[0015] (1) A scrambling device according to an embodiment of the present disclosure is a scrambling device that receives an ECM including a scrambling key that is repeatedly transmitted from an ECM transmitting device and encrypts content information, wherein the ECM includes an even key and an odd key as the scrambling key, and the even key and the odd key are alternately updated. The scrambling device includes an ECM management unit that receives the ECM and stores it in a memory unit, a scrambling unit that encrypts the content information using the scrambling key included in the ECM received by the ECM management unit, and an output unit that outputs the content information encrypted by the scrambling unit and the ECM including the scrambling key used to encrypt the content information in the scrambling unit. When reception of the ECM by the ECM management unit is interrupted, the scrambling unit encrypts the content information using the scrambling key included in the ECM in the memory unit for at least a portion of the period during which reception is interrupted.
[0016] In this way, by storing the received ECM in the memory unit and encrypting the content information using the scrambling key contained in the ECM in the memory unit when reception of the ECM is interrupted, it is possible to continue encrypting the content information and outputting the encrypted content information even if reception of the ECM is interrupted due to, for example, a breakdown in the ECM transmitting device, stopping the ECM transmitting device for maintenance work, a problem in the transmission path between the ECM transmitting device and the scrambling device, etc. Therefore, in a scrambling device that encrypts content information using an ECM generated in an external device, it is possible to continue transmitting the content information even if reception of the ECM from the external device is interrupted.
[0017] (2) Preferably, the ECM management unit stores multiple types of ECMs having different even keys or odd keys in the memory unit in succession as the even key or odd key is updated, and when the ECM management unit stops receiving the ECM, the scrambling unit encrypts the content information using the scrambling keys contained in the ECMs in the memory unit in reverse order, starting from the ECM that was most recently stored in the memory unit.
[0018] With this configuration, the scrambling key used for encryption can be updated using multiple types of ECMs in the storage unit, thereby improving the security of content information in a situation where reception of ECMs has ceased.
[0019] (3) Preferably, the scrambling unit encrypts the content information using the scrambling keys contained in the ECMs in the memory unit in the reverse or same order as the order in which the ECMs were stored in the memory unit, and such that the same ECMs are consecutive when switching between the reverse order and the same order.
[0020] With this configuration, the scrambling key used for encryption can be continuously updated for a longer period of time, thereby further improving the security of the content information in a situation where the reception of ECMs has ceased.
[0021] (4) Preferably, when the ECM management unit stops receiving the ECM, the scrambling unit encrypts the content information by continuously using the scrambling key contained in the ECM that was most recently stored in the memory unit over multiple update periods.
[0022] With this configuration, the scrambling key used for encryption can be continuously updated over a longer period of time using a single type of ECM, thereby improving the security of the content information while simplifying the process for encrypting the content information in situations where reception of ECMs has ceased.
[0023] (5) Preferably, the output unit outputs the unencrypted content information after a restart timing at which the ECM management unit resumes receiving the ECM from the ECM transmitting device, until the scrambling unit begins to encrypt the content information using the scrambling key contained in the ECM received by the ECM management unit after the restart timing.
[0024] With this configuration, it is possible to continue outputting content information from the time when reception of ECMs from the ECM transmitting device is resumed until encryption of the content information in accordance with the CAS standard begins, thereby enabling program playback to continue more reliably in the subscriber's home.
[0025] (6) A scrambling device according to an embodiment of the present disclosure is a scrambling device that receives an ECM including a scrambling key that is repeatedly transmitted from an ECM transmitting device and encrypts content information, wherein the ECM includes an even key and an odd key as the scrambling key, and the even key and the odd key are alternately updated. The scrambling device includes an ECM management unit that receives the ECM, a scrambling unit that encrypts the content information using the scrambling key included in the ECM received by the ECM management unit, and an output unit that outputs the content information encrypted by the scrambling unit and the ECM including the scrambling key used to encrypt the content information in the scrambling unit, and when reception of the ECM by the ECM management unit is interrupted, the output unit begins outputting the unencrypted content information.
[0026] In this way, by configuring to output unencrypted content information when reception of ECM is interrupted, it is possible to continue outputting content information even if reception of ECM is interrupted due to, for example, a breakdown in the ECM transmitting device, shutdown of the ECM transmitting device for maintenance work, a problem in the transmission path between the ECM transmitting device and the scrambling device, etc. Therefore, in a scrambling device that encrypts content information using an ECM generated in an external device, it is possible to continue transmitting content information even if reception of ECM from the external device is interrupted.
[0027] (7) A scrambling method according to an embodiment of the present disclosure is a scrambling method in a scrambling device that receives an ECM including a scrambling key that is repeatedly transmitted from an ECM transmitting device and encrypts content information, wherein the ECM includes an even key and an odd key as the scrambling key, and the even key and the odd key are alternately updated, and includes the steps of receiving the ECM and storing it in a memory unit, encrypting the content information using the scrambling key included in the received ECM, and outputting the encrypted content information and the ECM including the scrambling key used to encrypt the content information, and in the step of encrypting the content information, when reception of the ECM from the ECM transmitting device is interrupted, the content information is encrypted using the scrambling key included in the ECM in the memory unit for at least a portion of the period during which reception is interrupted.
[0028] In this way, by storing the received ECM in a memory unit and encrypting the content information using the scrambling key contained in the ECM in the memory unit when reception of the ECM is interrupted, it is possible to continue encrypting the content information and outputting the encrypted content information even if reception of the ECM is interrupted due to, for example, a breakdown in the ECM transmitting device, stopping the ECM transmitting device for maintenance work, a problem in the transmission path between the ECM transmitting device and the scrambling device, etc. Therefore, in a scrambling device that encrypts content information using an ECM generated in an external device, it is possible to continue transmitting the content information even if reception of the ECM from the external device is interrupted.
[0029] (8) A scrambling method according to an embodiment of the present disclosure is a scrambling method in a scrambling device that receives an ECM including a scrambling key that is repeatedly transmitted from an ECM transmitting device and encrypts content information, wherein the ECM includes an even key and an odd key as the scrambling key, and the even key and the odd key are alternately updated, and includes the steps of receiving the ECM, encrypting the content information using the scrambling key included in the received ECM, and outputting the encrypted content information and the ECM including the scrambling key used to encrypt the content information, and in the step of outputting the content information and the ECM, if reception of the ECM from the ECM transmitting device is interrupted, starting to output the unencrypted content information.
[0030] In this way, by using a method of outputting unencrypted content information when reception of ECM is interrupted, it is possible to continue outputting content information even when reception of ECM is interrupted due to, for example, a breakdown in the ECM transmitting device, shutdown of the ECM transmitting device for maintenance work, a problem in the transmission path between the ECM transmitting device and the scrambling device, etc. Therefore, in a scrambling device that encrypts content information using an ECM generated in an external device, it is possible to continue transmitting content information even when reception of ECM from the external device is interrupted.
[0031] Hereinafter, embodiments of the present disclosure will be described with reference to the drawings. In the drawings, the same or corresponding parts are denoted by the same reference numerals, and the description thereof will not be repeated. In addition, at least some of the embodiments described below may be arbitrarily combined.
[0032] <First embodiment> [Configuration and basic operation] Fig. 1 is a diagram showing a configuration of a broadcasting system according to a first embodiment of the present disclosure. Referring to Fig. 1, a broadcasting system 401 includes an ECM transmitting device 201, an EMM (Entitlement Management Message) transmitting device 202, a scrambling device 101, an encoder device 111, a remuxing device 121, and a plurality of STBs (Set Top Boxes) 301. A CAS module (not shown) is connected to the STB 301.
[0033] For example, the ECM transmitting device 201 and the encoder device 111 are provided in different locations. More specifically, the ECM transmitting device 201 and the EMM transmitting device 202 are provided in a program distribution center 251. The encoder device 111, the scrambling device 101, and the remux device 121 are provided in a cable television station 151. The STB 301 is provided in a subscriber's home 351. The STB 301 includes a cable television broadcast receiving device (not shown).
[0034] The program distribution center 251 distributes the content to the subscriber's home 351 via the cable television station 151. The program distribution center 251 manages the content and the contract information for each subscriber's home 351 all together.
[0035] The ECM transmitting device 201 generates an ECM including information about a program, which is an example of content, a scramble key for encrypting content information such as video information and audio information, and various control information. The ECM includes an even key KE and an odd key KO as scramble keys, and the even key KE and the odd key KO are updated alternately. For example, the even key KE and the odd key KO are updated alternately at each update timing UT according to an update period UC. The update period UC is, for example, 8 seconds.
[0036] The ECM transmitting device 201 encrypts the generated ECM using a work key and transmits the encrypted ECM to the scrambling device 101. More specifically, the ECM transmitting device 201 generates section data including the encrypted ECM, and transmits a plurality of TS packets including information obtained by dividing the generated section data into a plurality of pieces, for example, in one or a plurality of IP (Internet Protocol) packets to the scrambling device 101 via the IP transmission network 211. In the IP transmission network 211, the IP packets are transmitted in accordance with the IP protocol.
[0037] FIG. 2 is a diagram showing an example of a scrambling key included in an ECM transmitted by an ECM transmitting device according to the first embodiment of the present disclosure.
[0038] 2, for example, the ECM transmitting device 201 repeatedly transmits an ECM to the scrambling device 101 at a predetermined cycle PC. Specifically, the ECM transmitting device 201 repeatedly transmits an ECM_E1 including an odd key KO1 and an even key KE2 at a predetermined cycle PC during a period from the update timing UT1 to the next update timing UT2, repeatedly transmits an ECM_E2 including an even key KE2 and an odd key KO3 at a predetermined cycle PC during a period from the update timing UT2 to the next update timing UT3, and repeatedly transmits an ECM_E3 including an odd key KO3 and an even key KE4 at a predetermined cycle PC during a period from the update timing UT3 to the next update timing UT4. The predetermined cycle PC is, for example, 100 milliseconds. The ECM transmitting device 201 may be configured to repeatedly transmit an ECM to the scrambling device 101 at irregular intervals. In this way, either the odd key KO or the even key KE included in the ECM immediately before the update timing UT is the same as either the odd key KO or the even key KE included in the ECM immediately after the update timing UT. Hereinafter, when either the odd key KO or the even key KE in one ECM is the same as either the odd key KO or the even key KE in another ECM, it may be said that there is continuity between the scrambling keys included in the two ECMs.
[0039] 1 again, the EMM transmission device 202 generates an EMM including contract information for each subscriber home 351 and a work key for decrypting the encrypted ECM. The EMM transmission device 202 encrypts the generated EMM using a master key set so that the EMM can be decrypted by a CAS module in the subscriber home 351 that has made a viewing contract for the program. The EMM transmission device 202 transmits the EMM encrypted using the master key to the scrambling device 101. More specifically, the EMM transmission device 202 generates section data including the encrypted EMM, and transmits a plurality of TS packets including information obtained by dividing the generated section data into a plurality of packets, for example, in one or a plurality of IP packets to the scrambling device 101 and the remuxing device 121 via the IP transmission network 211.
[0040] The cable television station 151 scrambles, ie, encrypts, the content information and transmits the encrypted content information to the STB 301 in the subscriber's home 351 .
[0041] More specifically, the encoder device 111 acquires content information from the program distribution center 251 serving as a content provider, and generates a plurality of TS packets including information obtained by dividing the content information into a plurality of pieces by encoding the acquired content information. The encoder device 111 transmits the generated plurality of TS packets to the scramble device 101, for example, by including them in one or a plurality of IP packets.
[0042] The scrambling device 101 receives an ECM including a scrambling key, which is repeatedly transmitted from the ECM transmitting device 201, and encrypts the content information. More specifically, the scrambling device 101 receives IP packets from the encoder device 111, and obtains TS packets from the received IP packets.
[0043] Furthermore, the scrambling device 101 receives an IP packet from the EMM transmitting device 202 via the IP transmission network 211, and acquires an EMM from a TS packet included in the received IP packet. The scrambling device 101 acquires a work key from the EMM by decrypting the acquired EMM using a master key. The scrambling device 101 updates the work key stored in a CAS module (described later) to the work key acquired from the EMM.
[0044] Furthermore, the scrambling device 101 receives an IP packet from the ECM transmitting device 201 via the IP transmission network 211, and obtains an ECM from a TS packet included in the received IP packet. The scrambling device 101 obtains a scrambling key from the ECM by decrypting the obtained ECM using a work key stored in the CAS module.
[0045] The scramble device 101 scrambles and outputs the TS packets obtained from the IP packets received from the encoder device 111. More specifically, the scramble device 101 encrypts the TS packets using the obtained scramble key. The scramble device 101 transmits the encrypted TS packets and multiple TS packets including information in which the ECM used to encrypt the TS packets is divided into multiple packets, for example, in one or multiple IP packets to the remux device 121.
[0046] Fig. 3 is a diagram showing a format of a TS packet in a broadcasting system according to a first embodiment of the present disclosure. Referring to Fig. 3, a TS packet has a data length of 188 bytes and includes a header, an adaptation field, and a payload. The header includes a synchronization byte, a transport error indicator, a payload unit start indicator, a transport priority, a PID (Packet Identification), a transport scrambling control, an adaptation field control, and a continuity indicator, i.e., a CC (Continuity Counter) value.
[0047] The PID is an identifier of a TS packet. The PID is an identifier expressed by 13 bits, and is set to a value according to the contents of the payload of the TS packet. The payload unit start indicator is 1 bit of data indicating whether the information contained in the payload starts from the payload. The CC value is a 4-bit counter value that indicates the continuity of the TS packets and is incremented for each TS packet with the same PID. The transport scramble control is 2 bits of data indicating whether the information contained in the payload is encrypted and whether the information contained in the payload is encrypted using an even key KE or an odd key KO.
[0048] 1 again, the re-mux device 121 receives IP packets from the EMM transmission device 202 via the IP transmission network 211. The re-mux device 121 also receives IP packets from the scramble device 101.
[0049] The remux device 121 generates a broadcast signal in the RF (Radio Frequency) band by modulating the received IP packet by a predetermined modulation method. The remux device 121 transmits the generated broadcast signal to the subscriber's home 351 via the cable television network 311.
[0050] The STB 301 in the subscriber's home 351 receives the broadcast signal transmitted from the remux device 121 via the cable television network 311. The STB 301 obtains the encrypted content information, ECM and EMM by demodulating the received broadcast signal. The STB 301 obtains a work key by decrypting the EMM using a CAS module, obtains a scrambling key by decrypting the ECM using the obtained work key, and descrambles, i.e., decrypts, the content information using the obtained scrambling key. The STB 301 transmits the decrypted content information to a TV monitor (not shown). The TV monitor plays a program based on the content information received from the STB 301.
[0051] [Scramble device] Fig. 4 is a diagram showing a configuration of a scramble device according to a first embodiment of the present disclosure. With reference to Fig. 4, the scramble device 101 includes an ECM management unit 10, an EMM management unit 20, a scramble unit 40, an output unit 50, a storage unit 60, and a CAS module 70. The ECM management unit 10 includes an ECM detection unit 11, an output switching unit 12, and an ECM decryption unit 13. The CAS module 70 stores a work key. The storage unit 60 may be provided outside the scramble device 101.
[0052] (ECM Management Department) The ECM management unit 10 receives an ECM transmitted from the ECM transmitting device 201. The ECM management unit 10 stores the received ECM in the storage unit 60. The ECM management unit 10 also outputs the scrambling key included in the received ECM to the scrambling unit 40. As described above, the ECM includes the even key KE and the odd key KO as scrambling keys, and the even key KE and the odd key KO are updated alternately at, for example, each update timing UT.
[0053] More specifically, the ECM detection unit 11 in the ECM management unit 10 receives an IP packet from the ECM transmission device 201 via the IP transmission network 211, and acquires a TS packet from the received IP packet. When the ECM detection unit 11 determines by referring to the PID, etc. in the acquired TS packet that a portion of section data including ECM is stored in the payload of the TS packet, it outputs the TS packet to the output switching unit 12.
[0054] The output switching unit 12 receives the TS packets from the ECM detection unit 11 and outputs the received TS packets to the output unit 50.
[0055] Furthermore, the ECM detection unit 11 converts the data format of the TS packet into the data format of the section data.
[0056] Fig. 5 is a diagram showing an example of format conversion by an ECM detection unit in the scrambling device according to the first embodiment of the present disclosure. With reference to Fig. 5, the section data has a data length of, for example, a maximum of 1024 bytes or a maximum of 4096 bytes. The section data is generated in the ECM transmitting device 201, divided into a plurality of TS packets, each having a data length of, for example, 188 bytes, and transmitted in an IP packet. The section data includes a header field, a data field, and a CRC (Cyclic Redundancy Check) 32 field.
[0057] The ECM detection unit 11 reconstructs section data including the encrypted ECM generated in the ECM transmission device 201 by combining the data stored in the payload of the TS packet.
[0058] Fig. 6 is a diagram showing a format of section data in the broadcasting system according to the first embodiment of the present disclosure. Referring to Fig. 6, a header portion in the section data includes a table identifier, a section syntax instruction, a section length, a table identifier extension, a version number, a current next instruction, a section number, and a last section number.
[0059] The table identifier indicates the table to which the section data belongs. If the table to which the section data belongs is an ECM, i.e., if an ECM is stored in the data section, the value of the table identifier is "0x82" or "0x83". Here, a number starting with "0x" means that the numbers following "0x" are expressed in hexadecimal. The version number indicates the version number of the table. The value of the version number is updated whenever the scrambling key included in the ECM stored in the data section is updated.
[0060] The ECM detection unit 11 obtains the encrypted ECM from the data portion of the reconstructed section data, and outputs the obtained ECM to the output switching unit 12.
[0061] Also, for example, the ECM management unit 10 successively stores in the storage unit 60 a plurality of types of ECMs having different even keys KE or odd keys KO as the even keys KE or odd keys KO are updated. More specifically, for example, when the ECM detection unit 11 detects that the value of the version number in the header part of the section data has been updated, it stores in the storage unit 60 an encrypted ECM acquired from the data part of the section data in association with a plurality of TS packets used to reconstruct the section data. Hereinafter, a plurality of TS packets used to reconstruct section data including an ECM are also referred to as "TS packets for ECM." For example, when storing a new ECM and a corresponding TS packet for ECM in the storage unit 60, the ECM detection unit 11 erases the oldest ECM and the corresponding TS packet for ECM from the storage unit 60 so that the number of ECMs in the storage unit 60 is equal to or less than a predetermined number.
[0062] Note that the ECM detection unit 11 may be configured to, each time section data is reconstructed, associate the encrypted ECM obtained from the data portion of the section data with the multiple TS packets used to reconstruct the section data and store them one by one in the storage unit 60. However, by storing the encrypted ECM in the section data in the storage unit 60 only when the value of the version number of the section data is updated, only ECMs whose scrambling keys have changed can be stored in the storage unit 60, so that the amount of storage area used in the storage unit 60 can be reduced compared to a configuration in which the encrypted ECM in all section data is stored one by one in the storage unit 60. On the other hand, by storing the encrypted ECM in all section data one by one in the storage unit 60, information indicating the reception interval of the ECM can also be stored in the storage unit 60.
[0063] The output switching unit 12 receives the ECM from the ECM detection unit 11 and outputs the received ECM to the ECM decoding unit 13 .
[0064] The ECM decryption unit 13 receives the ECM from the output switching unit 12, and decrypts the received ECM using the work key stored in the CAS module 70. The ECM decryption unit 13 outputs the scrambling key included in the decrypted ECM to the scrambler unit 40.
[0065] (EMM Management Department) The EMM management unit 20 receives an IP packet from the EMM transmission device 202 via the IP transmission network 211, and acquires a TS packet from the received IP packet. When the EMM management unit 20 determines by referring to the PID, etc. in the acquired TS packet that a portion of section data including an EMM is stored in the payload of the TS packet, it performs conversion from the data format of the TS packet to the data format of the section data, in the same manner as the ECM decoding unit 13.
[0066] The EMM management unit 20 reconstructs section data including the encrypted EMM generated in the EMM transmission device 202 by combining the data stored in the payload of the TS packet.
[0067] The EMM management unit 20 acquires the encrypted EMM from the field of the data part of the reconstructed section data, and acquires a work key from the EMM by decrypting the acquired EMM using, for example, a master key previously assigned by the program distribution center 251. The EMM management unit 20 updates the work key stored in the CAS module 70 to the work key acquired from the EMM.
[0068] (Scramble section) The scrambler 40 encrypts the content information using the scramble key contained in the ECM received by the ECM manager 10 .
[0069] More specifically, the scrambler 40 receives an IP packet from the encoder device 111 , and encrypts a TS packet included in the received IP packet using the scramble key received from the ECM decoder 13 .
[0070] 7 is a diagram showing scrambling keys used by a scrambling unit in a scrambling device according to a first embodiment of the present disclosure to encrypt TS packets. Fig. 7 shows the timing of updating ECM and the timing of switching the scrambling key used for encryption, as defined in the standard described in Non-Patent Document 1.
[0071] 7, the above standard specifies that when an update cycle UC is divided into a period T1 starting from the nth update timing UTn and a period T2 from the end time of the period T1 to the (n+1)th update timing UT(n+1), content information is encrypted using the same scramble key in the period T2 and the period starting from the update timing UT(n+1). Here, n is an integer equal to or greater than 1. The above standard also specifies that the period T1 is set to be greater than 7600 milliseconds, the period T2 is set to be greater than zero seconds, and the sum of the periods T1 and T2 is set to be greater than 8000 milliseconds.
[0072] Hereinafter, the scrambling key to be used in period T1 is also referred to as the current key, and the scrambling key to be used in period T2 is also referred to as the next key.
[0073] In accordance with the standard for switching scrambling keys, the scrambler 40 encrypts TS packets using a current key in period T1, and encrypts TS packets using a next key in period T2.
[0074] FIG. 8 is a diagram showing an example of a timing chart illustrating the timing of receiving an ECM and the scrambling key used to encrypt content information in the scrambling device according to the first embodiment of the present disclosure.
[0075] 8, for example, the scrambler 40 encrypts the content information using one of the even key KE and the odd key KO included in the ECM_E received by the ECM manager 10 during a target period TXn starting from a time tn that is a predetermined time before the nth update timing UTn. The scrambler 40 also encrypts the content information using the other of the even key KE and the odd key KO included in the ECM_E received by the ECM manager 10 during a target period TX(n+1) following the target period Tn, which starts from a time t(n+1) that is a predetermined time before the (n+1)th update timing UT(n+1). The target period TXn is an example of the nth period, and the target period TX(n+1) is an example of the (n+1)th period.
[0076] Specifically, for example, the scrambler 40 encrypts TS packets using the even key KE during the target period TX2 from the start time t2 of period T2, whose end time is update timing UT2, to the start time t3 of period T2, whose end time is update timing UT3.
[0077] More specifically, during the period T2 from time t2 to update timing UT2, the ECM decryption unit 13 outputs the even key KE2 contained in the ECM_E1 received from the output switching unit 12 to the scrambling unit 40, and during the period T1 from update timing UT2 to time t3, the ECM decryption unit 13 outputs the even key KE2 contained in the ECM_E2 received from the output switching unit 12 to the scrambling unit 40.
[0078] Also, for example, the scrambler 40 encrypts TS packets using the odd key KO during a target period TX3 that starts at time t3 and ends at time t4, which is the start time of a period T2 that ends at the update timing UT4.
[0079] More specifically, during the period T2 from time t3 to the update timing UT3, the ECM decryption unit 13 outputs the odd key KO3 contained in the ECM_E2 received from the output switching unit 12 to the scrambling unit 40, and during the period T1 from the update timing UT3 to time t4, the ECM decryption unit 13 outputs the odd key KO3 contained in the ECM_E3 received from the output switching unit 12 to the scrambling unit 40.
[0080] Also, for example, the scrambler 40 encrypts TS packets using the even key KE in a target period TX4 that starts at time t4 and ends at time t5, which is the start time of a period T2 that ends at the update timing UT5.
[0081] More specifically, during the period T2 from time t4 to update timing UT4, the ECM decryption unit 13 outputs the even key KE4 contained in the ECM_E3 received from the output switching unit 12 to the scrambling unit 40, and during the period T1 from update timing UT4 to time t5, the ECM decryption unit 13 outputs the even key KE4 contained in the ECM_E4 received from the output switching unit 12 to the scrambling unit 40.
[0082] The scrambler 40 encrypts the TS packets using, for example, the latest scramble key received from the ECM decoder 13 , and outputs the encrypted TS packets to the output unit 50 .
[0083] As described above, the ECM decryption unit 13 switches the scrambling key to be output to the scrambler 40 between the odd key KO and the even key KE at the switching timings of times tn, t(n+1), t(n+2), . . . .
[0084] The scrambler 40 encrypts the TS packets using the latest scramble key received from the ECM decoder 13, thereby switching the scramble key used for encryption between the odd key KO and the even key KE at the switching timing.
[0085] (Output section) The output unit 50 outputs an ECM including the content information encrypted by the scrambling unit 40 and the scrambling key used for encrypting the content information in the scrambling unit 40.
[0086] More specifically, the output unit 50 multiplexes, in the time axis direction, the encrypted TS packet received from the scrambling unit 40 and the TS packet storing a part of the section data including the ECM received from the output switching unit 12, and transmits each multiplexed TS packet to the remultiplexer 121.
[0087] <Processing when ECM reception is interrupted> Referring again to FIG. 4, when the reception of the ECM by the ECM management unit 10 is interrupted, the scrambling unit 40 encrypts the content information using the scrambling key included in the ECM in the storage unit 60 during at least a part of the period in which the reception of the ECM by the ECM management unit 10 is interrupted.
[0088] For example, when the ECM detection unit 11 in the ECM management unit 10 does not receive an IP packet including the TS packet storing the ECM for a predetermined time, the reception stop information indicating that the reception of the ECM from the ECM transmission device 201 is interrupted is output to the output switching unit 12.
[0089] Referring again to FIG. 8, when the output switching unit 12 receives the reception stop information from the ECM detection unit 11 at a time tc after the update timing UT4, for example, the output switching unit 12 acquires the ECM and the corresponding ECM TS packet from the storage unit 60, outputs the acquired ECM to the ECM decoding unit 13, and outputs the acquired ECM TS packet to the output unit 50.
[0090] The ECM decoding unit 13 receives the ECM from the output switching unit 12 and decodes the received ECM using the working key stored in the CAS module 70. The ECM decoding unit 13 outputs the scrambling key included in the decoded ECM to the scrambling unit 40.
[0091] As described above, the scrambler 40 encrypts the TS packets contained in the IP packets received from the encoder device 111 using the scramble key received from the ECM decoder 13, and outputs the encrypted TS packets to the output unit 50.
[0092] The output unit 50 multiplexes the encrypted TS packets received from the scrambler 40 and the ECM TS packets received from the output switch 12 in the time axis direction, and transmits each of the multiplexed TS packets to the remux device 121.
[0093] For example, when the ECM management unit 10 stops receiving ECMs, the scrambler 40 encrypts the content information using the scramble keys contained in the ECMs in the memory unit 60 in reverse order, starting from the most recent ECM stored in the memory unit 60.
[0094] 9 is a diagram showing an example of an ECM stored in a storage unit in the scrambling device according to the first embodiment of the present disclosure. With reference to Fig. 9, for example, the storage unit 60 stores ECM_E1, ECM_E2, ECM_E3, and ECM_E4 at the time tc when the output switching unit 12 receives the reception stop information from the ECM detection unit 11.
[0095] Also, for example, the storage unit 60 stores period information indicating an update period UC set by the ECM transmitting device 201 in advance.
[0096] The output switching unit 12 receives reception stop information from the ECM detection unit 11, and at a timing according to the update period UC indicated by the period information in the storage unit 60, retrieves the ECMs from the storage unit 60 in the reverse order to the order in which they were stored in the storage unit 60, i.e., in the order of ECM_E4, ECM_E3, ECM_E2 and ECM_E1, and outputs these to the ECM decoding unit 13. The output switching unit 12 also retrieves from the storage unit 60 ECM TS packets corresponding to the ECMs to be output to the ECM decoding unit 13, and outputs these to the output unit 50.
[0097] More specifically, during the period from time tc until the next update timing UT5 based on the periodic information in the storage unit 60, the output switching unit 12 acquires ECM_E4 from the storage unit 60 and outputs it to the ECM decoding unit 13 at a timing according to the predetermined cycle PC, and acquires a TS packet for ECM corresponding to ECM_E4 from the storage unit 60 and outputs it to the output unit 50. Furthermore, during the period from the update timing UT5 based on the periodic information to the next update timing UT6 based on the periodic information, the output switching unit 12 acquires ECM_E3 from the storage unit 60 and outputs it to the ECM decoding unit 13, and acquires a TS packet for ECM corresponding to ECM_E3 from the storage unit 60 and outputs it to the output unit 50 at a timing according to the predetermined cycle PC.
[0098] Similarly, during the period from update timing UT6 based on the periodic information to the next update timing UT7 based on the periodic information, the output switching unit 12 outputs ECM_E2 to the ECM decoding unit 13 and outputs the corresponding TS packet for ECM to the output unit 50, and during the period from update timing UT7 based on the periodic information to the next update timing UT8 based on the periodic information, the output switching unit 12 outputs ECM_E1 to the ECM decoding unit 13 and outputs the corresponding TS packet for ECM to the output unit 50.
[0099] The ECM decryption unit 13 decrypts the ECM received from the output switching unit 12 using the work key stored in the CAS module 70, and outputs the scrambling key included in the decrypted ECM to the scrambling unit 40. After time tc, as in the period before time tc, the ECM decryption unit 13 switches the scrambling key to be output to the scrambling unit 40 between the odd key KO and the even key KE at the switching timing described above.
[0100] After time tc, similarly to the period before time tc, the scrambler 40 encrypts the TS packets using the scramble key received from the ECM decoder 13. More specifically, after time tc, the scrambler 40 encrypts the TS packets using the current key in period T1 and the next key in period T2, in accordance with the above-mentioned standard regarding switching of the scramble key described in Non-Patent Document 1.
[0101] FIG. 10 is a diagram showing an example of a scrambling key used by the scrambling unit in the scrambling device according to the first embodiment of the present disclosure to encrypt a TS packet.
[0102] Referring to FIG. 10, during the period from update timing UT4 to the next update timing UT5 based on the periodic information in the memory unit 60, the scrambler 40 uses the even key KE4 of ECM_E4 as the current key, while using the odd key KO5 of ECM_E4 as the next key.
[0103] In addition, during the period from update timing UT5 based on the periodic information to the next update timing UT6 based on the periodic information, the scrambler 40 uses odd key KO5 of ECM_E4 as the current key, while using even key KE4 of ECM_E4 as the next key.
[0104] In addition, during the period from update timing UT6 based on the periodic information to the next update timing UT7 based on the periodic information, the scrambler 40 uses the even key KE4 of ECM_E3 as the current key, while using the odd key KO3 of ECM_E3 as the next key.
[0105] In addition, during the period from update timing UT7 based on the periodic information to the next update timing UT8 based on the periodic information, the scrambler 40 uses odd key KO3 of ECM_E2 as the current key, while using even key KE2 of ECM_E2 as the next key.
[0106] In addition, during the period from update timing UT8 based on the periodic information to the next update timing UT9 based on the periodic information, the scrambler 40 uses the even key KE2 of ECM_E1 as the current key, while using the odd key KO1 of ECM_E1 as the next key.
[0107] For example, the scrambler 40 encrypts the content information using the scramble keys included in the ECMs in the storage unit 60 in the reverse or same order as the order in which the ECMs were stored in the storage unit 60, and in such a way that the same ECMs are consecutive when switching between the reverse and the same order. Specifically, for example, the scrambler 40 encrypts the content information using the scramble key included in the ECM with the oldest corresponding update timing UT among the multiple types of ECMs in the storage unit 60, and then encrypts the content information using the scramble keys included in the ECMs with the oldest corresponding update timing UT among the multiple types of ECMs in the storage unit 60, in order starting from the oldest corresponding update timing UT.
[0108] More specifically, at a timing according to the update period UC indicated by the periodic information in the memory unit 60, the output switching unit 12 retrieves the ECMs from the memory unit 60 in the reverse order to the order in which they were stored in the memory unit 60, i.e., ECM_E4, ECM_E3, ECM_E2 and ECM_E1, and outputs them to the ECM decoding unit 13. Then, at a timing according to the update period UC, the output switching unit 12 retrieves the ECMs from the memory unit 60 in the same order as they were stored in the memory unit 60, i.e., ECM_E1, ECM_E2, ECM_E3 and ECM_E4, and outputs them to the ECM decoding unit 13.
[0109] During the period from update timing UT9 based on the period information to the next update timing UT10 based on the period information, the scrambler 40 uses the odd key KO1 of ECM_E1 as the current key and the even key KE2 of ECM_E1 as the next key.
[0110] Further, the scrambling unit 40 uses the even key KE2 of ECM_E2 as the current key and the odd key KO3 of ECM_E2 as the next key during the period from the update timing UT10 based on the cycle information to the next update timing UT11 based on the cycle information.
[0111] As described above, the scrambling unit 40 encrypts the content information in order from ECM_E4 to ECM_E1 in the reverse order of the order in which the ECMs are stored in the storage unit 60, and then encrypts the content information in order from ECM_E1 to ECM_E4 in the same order as the order in which the ECMs are stored in the storage unit 60. Thereafter, similarly, the scrambling unit 40 repeats the encryption of the content information using the ECMs in the reverse order of the order in which they are stored in the storage unit 60 and the encryption of the content information using the ECMs in the same order as the order in which they are stored in the storage unit 60 until the reception of the ECM by the ECM management unit 10 is resumed. In this way, the scrambling unit 40 switches the order of use of the ECMs between the same order and the reverse order in ECM_E1 and ECM_E4.
[0112] Note that the ECMs used when the scrambling unit 40 switches the order of use of the ECMs between the same order and the reverse order are not limited to only ECM_E1 and ECM_E4. The scrambling unit 40 may occasionally change the ECMs used when switching the order of use between the same order and the reverse order, that is, the ECMs used at the time of folding back.
[0113] Further, the scrambling unit 40 may be configured to encrypt the content information using the scrambling keys included in some of the plurality of ECMs in the storage unit 60 when the reception of the ECM by the ECM management unit 10 is interrupted. More specifically, the scrambling unit 40 may be configured to use only some of ECM_E1, ECM_E2, ECM_E3, and ECM_E4 for encrypting the content information when the reception of the ECM by the ECM management unit 10 is interrupted.
[0114] <Processing when resuming reception of ECM> Referring again to Figure 4, the ECM detection unit 11 in the ECM management unit 10 outputs reception stop information to the output switching unit 12, and then when it receives an IP packet including a TS packet in which an ECM is stored from the ECM transmitting device 201 via the IP transmission network 211, it outputs reception resume information to the output switching unit 12.
[0115] For example, when the output switching unit 12 receives reception resume information from the ECM detection unit 11 at time td after the update timing UT11 based on the periodic information in the memory unit 60, it stops outputting the ECM in the memory unit 60 to the ECM decoding unit 13, and stops outputting the TS packet for ECM in the memory unit 60 to the output unit 50.
[0116] After outputting the reception resumption information to the output switching unit 12, the ECM detection unit 11 obtains a TS packet from the IP packet received from the ECM transmitting device 201 and outputs it to the output switching unit 12, as described above, and also obtains an encrypted ECM from the section data reconstructed based on the TS packet and outputs it to the output switching unit 12.
[0117] The output switching unit 12 receives the ECM from the ECM detection unit 11 and outputs the received ECM to the ECM decoding unit 13 .
[0118] The ECM decryption unit 13 receives the ECM from the output switching unit 12, and decrypts the received ECM using the work key stored in the CAS module 70. The ECM decryption unit 13 outputs the scrambling key included in the decrypted ECM to the scrambler unit 40.
[0119] Fig. 11 is a diagram showing an example of a scramble key used by the scramble unit in the scramble device according to the first embodiment of the present disclosure to encrypt a TS packet. With reference to Fig. 11, the ECM decryption unit 13 receives ECM_E11 including an odd key KO11 and an even key KE12 from the output switching unit 12 at a timing according to a predetermined cycle PC during a period from time td until the next update timing UT12. Since the ECM decryption unit 13 is unclear about the correspondence between the odd key KO11 and the even key KE12 included in the ECM_E11 and the current key and next key to be used in the scramble unit 40, it discards the scramble key without outputting it to the scramble unit 40.
[0120] Next, the ECM decryption unit 13 receives ECM_E12 including the even key KE12 and odd key KO13 from the output switching unit 12 at a timing following the predetermined cycle PC after the update timing UT12. The ECM decryption unit 13 compares ECM_E12 with ECM_E11, and determines that the scramble key included in ECM_E12 that matches any of the scramble keys included in ECM_E11 is the current key. Specifically, the ECM decryption unit 13 compares ECM_E12 with ECM_E11, and since the even key KE12 included in ECM_E12 matches the even key KE12 included in ECM_E11, it determines that the even key KE12 included in ECM_E12 is the current key.
[0121] Then, during the period T1 from the update timing UT12 to the start time t13 of a period T2 whose end time is the next update timing UT13, the ECM decryption unit 13 outputs the even key KE12 contained in the latest ECM_E12 received from the output switching unit 12 to the scrambling unit 40, and during the period T2 from the time t13 to the update timing UT13, the ECM decryption unit 13 outputs the odd key KO13 contained in the latest ECM_E12 received from the output switching unit 12 to the scrambling unit 40.
[0122] Since the scrambler 40 does not receive a scramble key from the ECM decoder 13 during the period from time td until update timing UT12, the scrambler 40 outputs the TS packets contained in the IP packets received from the encoder device 111 to the output unit 50 without encrypting them.
[0123] Meanwhile, after update timing UT12, the scrambler 40 receives the scramble key from the ECM decoder 13 and resumes encrypting the TS packets contained in the IP packets received from the encoder device 111 and outputting the encrypted TS packets to the output unit 50.
[0124] More specifically, during the period from update timing UT12 to update timing UT13, the scrambler 40 encrypts the TS packets using the even key KE12 of ECM_E12 as the current key, while encrypting the TS packets using the odd key KO13 of ECM_E12 as the next key.
[0125] Furthermore, in the period from update timing UT13 to update timing UT14, the scrambler 40 encrypts TS packets using odd-numbered key KO13 of ECM_E13 as the current key, while encrypting TS packets using even-numbered key KE14 of ECM_E13 as the next key.
[0126] For example, the output unit 50 outputs unencrypted content information during the period from the restart timing at which the ECM management unit 10 resumes receiving ECMs from the ECM transmitting device 201 until the scrambler 40 begins to encrypt the content information using the scrambling key contained in the ECM received by the ECM management unit 10 after the restart timing.
[0127] More specifically, during the period from time td until the update timing UT12, the output unit 50 receives unencrypted TS packets from the scrambler 40 and transmits the TS packets received from the scrambler 40 to the remux device 121.
[0128] Further, after the update timing UT12, the output unit 50 receives the encrypted TS packet from the scrambling unit 40, multiplexes the TS packet received from the scrambling unit 40 and the TS packet received from the output switching unit 12 in the time axis direction, and transmits the multiplexed packet to the remuxer 121.
[0129] <Another example of the process when ECM reception is interrupted> Note that in the scrambling device 101 according to the first embodiment of the present disclosure, the scrambling unit 40 is configured to encrypt the content information using the scrambling keys included in the ECMs stored in the storage unit 60 in the reverse order from the latest ECM in the order of storage in the storage unit 60 when the reception of the ECM by the ECM management unit 10 is interrupted. However, the present disclosure is not limited to this configuration.
[0130] Referring to FIG. 4 again, for example, the scrambling unit 40 may be configured to continuously use the scrambling keys included in the latest ECM stored in the storage unit 60 over a plurality of update cycles UC to encrypt the content information when the reception of the ECM by the ECM management unit 10 is interrupted.
[0131] More specifically, the output switching unit 12 receives the reception stop information from the ECM detection unit 11, repeatedly acquires the ECM_E4 updated at the most recent update timing UT4 from the storage unit 60, and outputs the acquired ECM_E4 to the ECM decoder 13. Further, the output switching unit 12 repeatedly acquires the ECM TS packet corresponding to the ECM_E4 from the storage unit 60 and outputs the acquired packet to the output unit 50.
[0132] More specifically, after the time tc, the output switching unit 12 acquires the ECM_E4 from the storage unit 60 at the timing according to the predetermined period PC, outputs the acquired ECM_E4 to the ECM decoder 13, acquires the ECM TS packet corresponding to the ECM_E4 from the storage unit 60, and outputs the acquired packet to the output unit 50.
[0133] The ECM decryption unit 13 decrypts the ECM_E4 received from the output switching unit 12 using the work key stored in the CAS module 70, and outputs the scrambling key included in the decrypted ECM_E4 to the scrambling unit 40. After time tc, as in the period before time tc, the ECM decryption unit 13 switches the scrambling key to be output to the scrambling unit 40 between the odd key KO and the even key KE at the above-mentioned switching timing.
[0134] After time tc, the scrambler 40 encrypts the TS packets using the scramble key received from the ECM decoder 13, in the same manner as in the period before time tc.
[0135] FIG. 12 is a diagram showing another example of a scrambling key used by the scrambling unit in the scrambling device according to the first embodiment of the present disclosure to encrypt a TS packet.
[0136] Referring to FIG. 12, during the period from update timing UT4 to the next update timing UT5 based on the periodic information in the memory unit 60, the scrambler 40 uses the even key KE4 of ECM_E4 as the current key, while using the odd key KO5 of ECM_E4 as the next key.
[0137] In addition, during the period from update timing UT5 based on the periodic information to the next update timing UT6 based on the periodic information, the scrambler 40 uses odd key KO5 of ECM_E4 as the current key, while using even key KE4 of ECM_E4 as the next key.
[0138] Furthermore, the scrambler 40 uses the even key KE4 of ECM_E4 as the current key and the odd key KO5 of ECM_E4 as the next key during the period from the update timing UT6 to the next update timing UT7 based on the period information in the storage unit 60. The scrambler 40 similarly encrypts TS packets using the even key KE4 and odd key KO5 of ECM_E4 after the update timing UT7.
[0139] [Operation flow] Each device in the broadcasting system according to the first embodiment of the present disclosure includes a computer including a memory, and a processor such as a CPU in the computer reads out from the memory and executes a program including some or all of the steps of the following flowcharts and sequences. Each of the programs for the multiple devices can be installed from the outside. Each of the programs for the multiple devices is distributed in a state in which it is stored on a recording medium.
[0140] FIG. 13 is a flowchart defining an example of an operation procedure when the scrambling device according to the first embodiment of the present disclosure performs scrambling processing.
[0141] 13, first, the scrambling device 101 receives an ECM transmitted from the ECM transmitting device 201. More specifically, the scrambling device 101 receives an IP packet from the ECM transmitting device 201 via the IP transmission network 211, and obtains a TS packet in which the ECM is stored from the received IP packet. Then, the scrambling device 101 reconstructs section data including the encrypted ECM by combining data stored in the payload of the TS packet, and obtains the encrypted ECM from the reconstructed section data (step S102).
[0142] Next, the scramble device 101 stores the acquired ECM in the storage unit 60 (step S104).
[0143] Next, the scrambling device 101 encrypts the content information using the scrambling key included in the acquired ECM. More specifically, the scrambling device 101 decrypts the acquired ECM using the work key stored in the CAS module 70. Then, the scrambling device 101 receives an IP packet from the encoder device 111, and encrypts a TS packet including content information included in the received IP packet using the scrambling key included in the decrypted ECM (step S106).
[0144] Next, the scramble device 101 outputs the encrypted content information and an ECM including the scramble key used to encrypt the content information. More specifically, the scramble device 101 multiplexes the encrypted TS packet and the TS packet storing the ECM used for the encryption in the time axis direction, and transmits each of the multiplexed TS packets to the remux device 121 (step S108).
[0145] Fig. 14 is a flowchart defining another example of the operation procedure when the scrambling device according to the first embodiment of the present disclosure performs scrambling processing. Fig. 14 shows the process performed by the scrambling device 101 when the reception of the ECM is interrupted.
[0146] Referring to FIG. 14, first, when reception of an ECM from the ECM transmitting device 201 is interrupted, i.e., when an IP packet including a TS packet storing an ECM does not arrive for a predetermined period of time, the scrambling device 101 acquires the ECM and the corresponding TS packet for ECM from the memory unit 60 (step S202).
[0147] Next, the scrambling device 101 encrypts the content information using the scrambling key included in the ECM in the storage unit 60. More specifically, the scrambling device 101 decrypts the ECM obtained from the storage unit 60 using the work key stored in the CAS module 70. Then, the scrambling device 101 receives an IP packet from the encoder device 111, and encrypts a TS packet including content information, which is included in the received IP packet, using the scrambling key included in the decrypted ECM (step S204).
[0148] Next, the scramble device 101 outputs the encrypted content information and an ECM including the scramble key used to encrypt the content information. More specifically, the scramble device 101 multiplexes the encrypted TS packet and the ECM TS packet in the time axis direction, and transmits each of the multiplexed TS packets to the remux device 121 (step S206).
[0149] Fig. 15 is a flowchart defining another example of the operation procedure when the scrambling device according to the first embodiment of the present disclosure performs scrambling processing. Fig. 15 shows the process performed when the scrambling device 101 resumes receiving an ECM.
[0150] Referring to FIG. 15, first, the scramble device 101 detects that reception of ECM has resumed (step S302).
[0151] Next, the scrambling device 101 outputs unencrypted content information during the period until encryption of the content information using the scrambling key included in the ECM received after the timing of restarting reception of the ECM starts (NO in step S304). More specifically, if the correspondence between the odd key KO and even key KE included in the ECM received after the timing of restarting the ECM and the current key and next key to be used for encryption is unclear, the scrambling device 101 outputs unencrypted content information (step S306).
[0152] On the other hand, if the scrambling device 101 starts encrypting the content information using the scrambling key contained in the ECM received after the timing at which ECM reception is resumed (YES in step S304), it resumes outputting the encrypted content information (step S308).
[0153] In the scramble device 101 according to the first embodiment of the present disclosure, the scrambler 40 is configured to encrypt the content information using a scramble key included in an ECM having the oldest corresponding update timing UT among the multiple types of ECMs in the storage unit 60, and then encrypt the content information using the scramble keys included in the ECMs having the oldest corresponding update timing UT among the multiple types of ECMs in the storage unit 60, in order from the oldest corresponding update timing UT, but this is not limited to the above. For example, the scramble device 101 may be configured to encrypt the content information using a scramble key included in an ECM having the oldest corresponding update timing UT among the multiple types of ECMs in the storage unit 60, and then encrypt the content information using the scramble key included in the ECM having the oldest corresponding update timing UT in the storage unit 60 continuously over multiple update periods UC.
[0154] 10 again, the scrambler 40 encrypts TS packets using the odd key KO1 of ECM_E1 as a current key and the even key KE2 of ECM_E1 as a next key during the period from the update timing UT9 based on the periodic information in the storage unit 60 to the next update timing UT10 based on the periodic information. After that, the scrambler 40 encrypts TS packets using the even key KE2 of ECM_E1 as a current key and the odd key KO1 of ECM_E1 as a next key during the period from the update timing UT10 based on the periodic information to the next update timing UT11 based on the periodic information. The scrambler 40 similarly encrypts TS packets using the even key KE2 and odd key KO1 of ECM_E1 after the update timing UT11.
[0155] Furthermore, in the scrambling device 101 according to the first embodiment of the present disclosure, the output unit 50 is configured to receive unencrypted TS packets from the scrambling unit 40 during the period from time td until the update timing UT12, multiplex the TS packets received from the scrambling unit 40 and the TS packets received from the output switching unit 12 in the time axis direction, and transmit the multiplexed packets to the remuxing device 121, but this is not limited to the above. The output unit 50 may be configured not to transmit TS packets to the remuxing device 121 during the period from time td until the update timing UT12.
[0156] Also, in the broadcasting system 401 according to the first embodiment of the present disclosure, the ECM transmitting device 201, the EMM transmitting device 202, and the encoder device 111 are configured to include TS packets in one or more IP packets and transmit them to the scrambling device 101 via the IP transmission network 211, but this is not limited to the above. At least one of the ECM transmitting device 201, the EMM transmitting device 202, and the encoder device 111 may be configured to include TS packets in an ASI signal, which is an ASI (Asynchronous Serial Interface) type signal, and transmit them to the scrambling device 101.
[0157] Also, the scrambler 40 is configured to encrypt the content information using either the even key KE or the odd key KO included in the latest ECM_E received by the ECM management unit 10 during the target period TXn, and to encrypt the content information using the other of the even key KE or the odd key KO included in the latest ECM_E received by the ECM management unit 10 during the target period TX(n+1), but is not limited to this. The scrambler 40 may be configured to encrypt the content information using either the even key KE or the odd key KO included in any ECM_E received by the ECM management unit 10 during the target period TXn, and to encrypt the content information using the other of the even key KE or the odd key KO included in any ECM_E received by the ECM management unit 10 during the target period TX(n+1) during the target period TX(n+1).
[0158] In addition, in the scrambling device 101 relating to the first embodiment of the present disclosure, the output unit 50 may be configured to output unencrypted content information during a portion of a period during which reception of ECM by the ECM management unit 10 is interrupted.
[0159] Fig. 16 is a diagram showing an example of content information output by an output unit in the ECM transmitting device according to the first embodiment of the present disclosure. With reference to Fig. 16, the scrambler 40 encrypts the content information using the scramble key included in the ECM received by the ECM managing unit 10 during a period TC until a time tc when the ECM managing unit 10 stops receiving the ECM from the ECM transmitting device 201. The output unit 50 outputs the content information encrypted by the scrambler 40 during the period TC.
[0160] On the other hand, the scrambler 40 may switch between a period TA during which the content information is encrypted using the scramble key included in the ECM in the storage unit 60 and a period TB during which the content information is not encrypted, during the period from time tc to time td when the ECM management unit 10 resumes receiving the ECM from the ECM transmitting device 201. In this case, the output unit 50 outputs the content information encrypted by the scrambler 40 during the period TA, and outputs unencrypted content information during the period TB.
[0161] 9, after ECM management unit 10 stops receiving ECMs, scrambler 40 encrypts the content information using the scramble keys contained in the ECMs in storage unit 60 in the order of ECM_E4, ECM_E3, ECM_E2, and ECM_E1. Then, scrambler 40 again encrypts the content information using the scramble keys contained in the ECMs in storage unit 60 in the order of ECM_E4, ECM_E3, ECM_E2, and ECM_E1. That is, scrambler 40 encrypts the content information using the scramble key contained in ECM_E1, and then encrypts the content information using the scramble key contained in ECM_E4.
[0162] Here, there is no continuity between the scramble key included in ECM_E1 and the scramble key included in ECM_E4. In other words, the even key KE included in ECM_E1 and the even key KE included in ECM_E4 are different from each other, and the odd key KO included in ECM_E1 and the odd key KO included in ECM_E4 are different from each other. Therefore, when the scrambler 40 encrypts the content information using the scramble key included in ECM_E1 and then encrypts the content information using the scramble key included in ECM_E4, the scramble unit 40 does not encrypt the content information during the above-mentioned period T1 because the scramble key included in ECM_E4 cannot be used as the current key, while the even key KE4 included in ECM_E4 is used as the next key to encrypt the content information during the above-mentioned period T2.
[0163] In this way, the scramble unit 40 does not encrypt the content information during the period when the scramble keys are not consecutive. More specifically, after a period TA during which the scramble unit 40 encrypts the content information using the scramble keys included in the ECMs in the storage unit 60 in the order of ECM_E4, ECM_E3, ECM_E2, and ECM_E1, a period TB during which the content information is not encrypted is inserted before a period TA during which the scramble unit 40 encrypts the content information using the scramble keys included in the ECMs in the storage unit 60 in the order of ECM_E4, ECM_E3, ECM_E2, and ECM_E1 again. Here, the length of the period during which the scramble unit 40 can encrypt the content information using the ECMs in the storage unit 60 in the reverse order or the same order as the order in which they were stored is finite. Therefore, the period during which the scramble unit 40 can encrypt the content information using the ECMs in the storage unit 60 in order is discontinuous, and the periods TA and TB are alternately repeated with periods during which the content information is not encrypted being inserted therebetween. In this way, the scrambler 40 only needs to encrypt the content information during the period TA during which the ECM management unit 10 stops receiving ECMs, and does not need to encrypt the content information during the period TB.
[0164] Furthermore, immediately after time td when the ECM management unit 10 resumes receiving ECM from the ECM transmitting device 201, the scrambler 40 does not receive a scramble key from the ECM decryption unit 13 as described above, and therefore outputs the content information to the output unit 50 without encrypting it during the period TB immediately after time td. Then, the output unit 50 outputs unencrypted content information during the period TB after time td until the scrambler 40 starts encrypting the content information.
[0165] Thereafter, the scrambler 40 starts encrypting the content information. Then, the output unit 50 outputs the content information encrypted by the scrambler 40 in a period TC following the period TB immediately after the time td.
[0166] In the scramble device 101 according to the first embodiment of the present disclosure, the scrambler 40 is configured to encrypt the content information using the scramble keys included in the ECMs in the storage unit 60 in reverse order starting from the most recent ECM stored in the storage unit 60 when the ECM management unit 10 stops receiving ECMs, but this is not limited to the above. The scrambler 40 may be configured to encrypt the content information using the scramble keys included in the ECMs in the storage unit 60 in reverse order starting from the most recent ECM stored in the storage unit 60 when the ECM management unit 10 stops receiving ECMs, starting from the oldest ECM, for example. 9 again, after time tc when the ECM management unit 10 stops receiving ECMs, the scrambler 40 encrypts the content information using the scramble keys contained in the ECMs in the storage unit 60 in the order of ECM_E1, ECM_E2, ECM_E3, and ECM_E4. In this case, since there is no continuity between the scramble key contained in ECM_E4 that the scrambler 40 used for encryption immediately before time tc and the scramble key contained in ECM_E1, there may be a period TB immediately after time tc during which the content information is not encrypted. In this case, the scrambler 40 encrypts the content information using the scramble key contained in ECM_E1 in the storage unit 60 during a period TA following the period TB.
[0167] Next, another embodiment of the present disclosure will be described with reference to the drawings. In the drawings, the same or corresponding parts are designated by the same reference characters and the description thereof will not be repeated.
[0168] <Second embodiment> This embodiment differs from the scrambling device 101 according to the first embodiment in that the scrambling device 102 outputs unencrypted content information when reception of ECM from the ECM transmitting device 201 is interrupted. Contents other than those described below are the same as those of the scrambling device 101 according to the first embodiment.
[0169] [Configuration and basic operation] Fig. 17 is a diagram showing a configuration of a scrambling device according to a second embodiment of the present disclosure. With reference to Fig. 17, compared to the scrambling device 101 according to the first embodiment, the scrambling device 102 includes an ECM management unit 80 and a scrambling unit 90 instead of the ECM management unit 10 and the scrambling unit 40. The ECM management unit 80 includes an ECM detection unit 11 and an ECM decoding unit 13.
[0170] The ECM detection unit 11 in the ECM management unit 80 receives an IP packet from the ECM transmission device 201 via the IP transmission network 211, and acquires a TS packet from the received IP packet. When the ECM detection unit 11 determines that an ECM is stored in the payload of the acquired TS packet by referring to the PID, etc. in the TS packet, it outputs the TS packet to the output unit 50.
[0171] Furthermore, the ECM detection unit 11 combines the data stored in the payload of the TS packet to reconstruct section data including the encrypted ECM generated in the ECM transmission device 201. The ECM detection unit 11 obtains the encrypted ECM from the data portion of the reconstructed section data, and outputs the obtained ECM to the ECM decoding unit 13.
[0172] The ECM decoding unit 13 receives the ECM from the ECM detection unit 11, and decrypts the received ECM using the work key stored in the CAS module 70. The ECM decoding unit 13 outputs the scrambling key included in the decrypted ECM to the scrambler 90.
[0173] The scrambler 90 receives IP packets from the encoder device 111, encrypts the TS packets contained in the received IP packets using the scramble key received from the ECM decoder 13, and outputs the encrypted TS packets to the output unit 50.
[0174] The output unit 50 multiplexes the encrypted TS packets received from the scrambling unit 90 and the TS packets storing the ECM received from the ECM detection unit 11 in the time axis direction, and transmits each multiplexed TS packet to the remuxing device 121.
[0175] <Processing when ECM reception stops> When the IP packets including the TS packets storing the ECM do not arrive for a predetermined time, the ECM detection unit 11 in the ECM management unit 80 outputs reception stop information indicating that the reception of the ECM from the ECM transmission device 201 has stopped to the scrambling unit 90.
[0176] Upon receiving the reception stop information from the ECM detection unit 11, the scrambling unit 90 outputs the TS packets included in the IP packets received from the encoder device 111 to the output unit 50 without encryption during the period until it receives the scrambling key from the ECM decoding unit 13 again.
[0177] When the reception of the ECM by the ECM management unit 80 stops, the output unit 50 starts to output unencrypted content information. More specifically, the output unit 50 receives the unencrypted TS packets from the scrambling unit 90 and transmits the TS packets received from the scrambling unit 90 to the remuxing device 121.
[0178] After outputting the reception stop information to the scrambling unit 90, when the ECM detection unit 11 receives the IP packets including the TS packets storing the ECM from the ECM transmission device 201 via the IP transmission network 211, the output of the TS packets to the output unit 50 and the output of the ECM to the ECM decoding unit 13 are resumed.
[0179] After the output of the ECM to the ECM decoding unit 13 by the ECM detection unit 11 is resumed, the output unit 50 receives the encrypted TS packets from the scrambling unit 90, multiplexes the TS packets received from the scrambling unit 90 and the TS packets received from the ECM detection unit 11 in the time axis direction, and transmits each multiplexed TS packet to the remuxing device 121.
[0180] FIG. 18 is a flowchart defining an example of an operational procedure when the scrambling device according to the second embodiment of the present disclosure performs scrambling processing.
[0181] 18, first, scrambling device 102 receives an ECM transmitted from ECM transmitting device 201 (step S402).
[0182] Next, the scramble device 102 encrypts the content information using the scramble key contained in the obtained ECM (step S404).
[0183] Next, the scramble device 102 outputs an ECM including the encrypted content information and the scramble key used to encrypt the content information (step S406).
[0184] Next, if the scrambling device 102 continues to receive the ECM transmitted from the ECM transmitting device 201 (NO in step S408), it continues to receive the ECM, encrypt the content information, and output the encrypted content information and ECM (steps S402, S404, S406).
[0185] On the other hand, when the reception of the ECM transmitted from the ECM transmitting device 201 is interrupted (YES in step S408), the scrambling device 102 starts outputting unencrypted content information. More specifically, the scrambling device 102 receives an IP packet from the encoder device 111, and transmits the TS packet including the content information contained in the received IP packet to the remux device 121 without encrypting it (step S410).
[0186] Next, the scramble device 102 waits for the resumption of reception of ECMs transmitted from the ECM transmitting device 201 (NO in step S412), and if reception of ECMs transmitted from the ECM transmitting device 201 is resumed (YES in step S412), it resumes reception of ECMs, encryption of content information, and output of the encrypted content information and ECMs (steps S402, S404, S406).
[0187] The above-described embodiments should be considered as illustrative and not restrictive in all respects. The scope of the present invention is defined by the claims, not by the above description, and is intended to include all modifications within the meaning and scope of the claims.
[0188] The above description includes the following additional features. [Appendix 1] A scrambling device that receives an ECM including a scrambling key, which is repeatedly transmitted from an ECM transmitting device, and encrypts content information, the ECM includes an even key and an odd key as the scrambling key, and the even key and the odd key are updated alternately; an ECM management unit that receives the ECM and stores it in a storage unit; a scrambling unit that encrypts content information using the scrambling key included in the ECM received by the ECM management unit; an output unit that outputs the ECM including the content information encrypted by the scramble unit and the scramble key used to encrypt the content information in the scramble unit; the scrambling unit, when reception of the ECM by the ECM management unit is interrupted, encrypts the content information using the scrambling key included in the ECM in the storage unit; The scrambling unit is a scrambling device that encrypts the content information obtained from an encoder device provided at a location different from a location where the ECM transmitting device is provided. [Explanation of symbols]
[0189] 10, 80 ECM Management Department 11 ECM detector 12 Output switching section 13 ECM decoding section 20 EMM Management Department 40, 90 Scramble Section 50 Output section 60 Storage section 70 CAS Module 101, 102 Scrambling device 111 Encoder device 121 Remax Device 151 Cable TV Stations 211 IP Transmission Network 201 ECM transmitter 202 EMM transmitter 251 Program Distribution Center 301 STB 311 Cable Television Network 351 Subscriber home 401 Broadcasting System
Claims
1. A scrambling device that receives an ECM (Entitlement Control Message) including a scrambling key and that is repeatedly transmitted from an ECM transmitting device, and encrypts content information, comprising: the ECM includes an even key and an odd key as the scrambling key, and the even key and the odd key are updated alternately; an ECM management unit that receives the ECM and stores it in a storage unit; a scrambling unit that encrypts the content information using the scrambling key included in the ECM received by the ECM management unit; an output unit that outputs the ECM including the content information encrypted by the scramble unit and the scramble key used to encrypt the content information in the scramble unit, A scrambling device in which, when reception of the ECM by the ECM management unit is interrupted, the scrambling unit encrypts the content information using the scrambling key contained in the ECM in the memory unit, for at least a portion of the period during which reception is interrupted.
2. the ECM management unit stores a plurality of types of ECMs having different even keys or odd keys in the storage unit in succession in accordance with updates of the even keys or odd keys; The scrambling device of claim 1, wherein when reception of the ECM by the ECM management unit is interrupted, the scrambling unit encrypts the content information using the scrambling keys contained in the ECMs in the memory unit in reverse order, starting from the ECM that was most recently stored in the memory unit.
3. The scrambling device according to claim 1 or claim 2, wherein the scrambling unit encrypts the content information using the scrambling keys contained in the ECMs in the memory unit in the reverse or same order as the order in which the ECMs were stored in the memory unit, and such that the same ECMs are consecutive when switching between the reverse order and the same order.
4. The ECM is such that the even keys and the odd keys are alternately updated at each update timing according to an update period, The scrambling device of claim 1, wherein when reception of the ECM by the ECM management unit is interrupted, the scrambling unit encrypts the content information by continuously using the scrambling key contained in the ECM most recently stored in the memory unit over multiple update periods.
5. A scrambling device as described in any one of claims 1 to 4, wherein the output unit outputs the unencrypted content information during a period after a restart timing at which the ECM management unit resumes receiving the ECM from the ECM transmitting device, until the scrambling unit starts encrypting the content information using the scrambling key contained in the ECM received by the ECM management unit after the restart timing.
6. A scrambling device that receives an ECM including a scrambling key, which is repeatedly transmitted from an ECM transmitting device, and encrypts content information, comprising: the ECM includes an even key and an odd key as the scrambling key, and the even key and the odd key are updated alternately; an ECM management unit for receiving the ECM; a scrambling unit that encrypts the content information using the scrambling key included in the ECM received by the ECM management unit; an output unit that outputs the ECM including the content information encrypted by the scramble unit and the scramble key used to encrypt the content information in the scramble unit, The output unit starts outputting the unencrypted content information when the ECM management unit stops receiving the ECM.
7. A scrambling method in a scrambling device that receives an ECM including a scrambling key and encrypts content information, the method comprising: the ECM includes an even key and an odd key as the scrambling key, and the even key and the odd key are updated alternately; receiving the ECM and storing it in a storage unit; encrypting the content information using the scrambling key included in the received ECM; outputting the ECM including the encrypted content information and the scrambling key used to encrypt the content information; A scrambling method in which, in the step of encrypting the content information, when reception of the ECM from the ECM transmitting device is interrupted, the content information is encrypted using the scrambling key contained in the ECM in the memory unit for at least a portion of the period during which the reception is interrupted.
8. A scrambling method in a scrambling device that receives an ECM including a scrambling key and encrypts content information, the method comprising: the ECM includes an even key and an odd key as the scrambling key, and the even key and the odd key are updated alternately; receiving the ECM; encrypting the content information using the scrambling key included in the received ECM; outputting the ECM including the encrypted content information and the scrambling key used to encrypt the content information; A scrambling method, wherein in the step of outputting the content information and the ECM, output of the unencrypted content information is started when reception of the ECM from the ECM transmitting device is interrupted.
Citation Information
Patent Citations
Scrambled broadcast signal transmitter and control method of scrambled broadcast signal transmitter
JP2007235326A
Scrambling device, scamble-related information multiplexing method and scramble-related information multiplexing program, and descrambling device
JP2008124529A
Encryption data communication device, encryption data communication method, program, and recording medium
JP2015133573A
Receiver, transmitter, and method for receiving content
JP2016116065A
