[go: up one dir, main page]

CN101444096B - Encrypting device, decrypting device, license issuing device and content data generating method - Google Patents

Encrypting device, decrypting device, license issuing device and content data generating method Download PDF

Info

Publication number
CN101444096B
CN101444096B CN2007800174980A CN200780017498A CN101444096B CN 101444096 B CN101444096 B CN 101444096B CN 2007800174980 A CN2007800174980 A CN 2007800174980A CN 200780017498 A CN200780017498 A CN 200780017498A CN 101444096 B CN101444096 B CN 101444096B
Authority
CN
China
Prior art keywords
unit
data
encryption
packet
content
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN2007800174980A
Other languages
Chinese (zh)
Other versions
CN101444096A (en
Inventor
杉江周一
清本晋作
柴田达雄
真岛惠吾
木村武史
砂崎俊二
石川清彦
国分秀树
石川浩一
福岛胜
山根毅史
后藤亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Kyocera Corp
KDDI Corp
Japan Broadcasting Corp
Original Assignee
Kyocera Corp
Nippon Hoso Kyokai NHK
KDDI Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from JP2006137004A external-priority patent/JP5698425B2/en
Application filed by Kyocera Corp, Nippon Hoso Kyokai NHK, KDDI Corp filed Critical Kyocera Corp
Priority claimed from PCT/JP2007/060060 external-priority patent/WO2007132895A1/en
Publication of CN101444096A publication Critical patent/CN101444096A/en
Application granted granted Critical
Publication of CN101444096B publication Critical patent/CN101444096B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

A content composed of a plurality of resources such as image, voice, and data broadcasting is respectively encrypted and transmitted, and the received encrypted data stream is distributed to each resource on the receiving side.

Description

加密装置、解密装置、许可证发布装置和内容数据生成方法Encrypting device, decrypting device, license issuing device and content data generating method

技术领域 technical field

本发明涉及加密装置、解密装置、许可证发布装置和内容数据生成方法。The present invention relates to an encryption device, a decryption device, a license issuing device and a content data generation method.

本申请主张2006年5月16日提出的特愿2006-137002号和2006年5月16日提出的特愿2006-137004号的优先权,在这里引用其内容。This application claims the priority of Japanese Patent Application No. 2006-137002 filed on May 16, 2006 and Japanese Patent Application No. 2006-137004 filed on May 16, 2006, and uses the contents thereof here.

背景技术 Background technique

以往,例如在专利文献1中记载了利用广播波和通信线路的服务提供系统。在专利文献1中记载的以往技术中,通过广播波发送内容,并且,通过通信线路发送使在接收侧终端内置的广播解码器有效地发挥作用的广播解码器有效化信号,由此,在接收侧,根据通过通信线路接收的广播解码器有效化信号,广播解码器变为有效,接收(视听)基于广播波的内容。Conventionally, for example, Patent Document 1 describes a service providing system using broadcast waves and communication lines. In the prior art described in Patent Document 1, content is transmitted by broadcast waves, and a broadcast decoder activation signal for effectively functioning a broadcast decoder built in a terminal on the receiving side is transmitted through a communication line, whereby the received On the side, the broadcast decoder becomes active based on the broadcast decoder activation signal received through the communication line, and receives (views and listens to) content based on the broadcast wave.

可是,在上述的以往技术中,即使在用广播波提供由多个资源(影像、语音、数据等)构成的内容时,也只用一个广播解码器有效化信号使接收侧的广播解码器成为有效,所以无法提供多样的服务方式。However, in the above-mentioned prior art, even when content composed of a plurality of resources (video, audio, data, etc.) Effective, so can not provide a variety of service methods.

而作为关于便携式终端的以往技术,近年,面向便携式终端的数字广播实用化。作为面向便携式终端的数字广播时的节目数据的加密方式,如果考虑便携式终端的处理能力,就认为与在因特网等的内容分发中一般使用的数据块加密方式相比,处理负荷轻的数据流加密方式是理想的。在数据流加密方式中,加密装置和解密装置的双方的数据流加密算法的状态一致,对正常的解密是不可缺少。In recent years, digital broadcasting for mobile terminals has been put into practical use as a conventional technology related to mobile terminals. As an encryption method for program data in digital broadcasting for mobile terminals, considering the processing capability of mobile terminals, it is considered that data stream encryption with a light processing load is easier than the block encryption method generally used for content distribution such as the Internet. way is ideal. In the data stream encryption method, the states of the data stream encryption algorithms of both the encryption device and the decryption device are consistent, which is indispensable for normal decryption.

可是,在数字广播中,由于广播数据的传送错误等,如果发生了保存数据流加密数据的传输包的损失,加密装置和解密装置的双方的数据流加密算法的状态就变成不一致,发生解密错误。However, in digital broadcasting, due to a transmission error of the broadcast data, etc., if the transmission packet storing the stream encrypted data is lost, the states of the stream encryption algorithms of the encryption device and the decryption device become inconsistent, and decryption occurs. mistake.

专利文献1:日本特开2005-159457号公报Patent Document 1: Japanese Patent Laid-Open No. 2005-159457

专利文献2:日本专利第3030341号公报Patent Document 2: Japanese Patent No. 3030341

专利文献3:日本专利第3455748号公报Patent Document 3: Japanese Patent No. 3455748

发明内容 Contents of the invention

本发明是考虑上述的情况而完成的,其目的在于,提供用广播波提供由多个资源构成的内容时,能对用户提供多样的服务方式的加密装置、解密装置、许可证发布装置。The present invention has been made in consideration of the above circumstances, and an object of the present invention is to provide an encryption device, a decryption device, and a license issuing device that can provide users with various service methods when content composed of a plurality of resources is provided by broadcast waves.

本发明的目的还在于,提供能强化针对传送错误引起的传送数据的损失的耐性的数据流加密方式的加密装置和解密装置、内容数据生成方法。Another object of the present invention is to provide an encryption device, a decryption device, and a content data generation method of a data stream encryption method capable of strengthening resistance against loss of transmission data due to transmission errors.

为了解决所述的课题,本发明例如具有以下的各方面。In order to solve the above-mentioned problems, the present invention has, for example, the following aspects.

本发明之1涉及的加密装置,优选,是用广播波提供由多个资源构成的内容的加密装置,包括:加密单元,用各个加密密钥把加密对象的所述各资源加密;数据包生成单元,生成分别保存所述各资源的加密数据或非加密数据的数据包;发送单元,发送所述数据包。The encryption device according to claim 1 of the present invention is preferably an encryption device for providing content composed of a plurality of resources using broadcast waves, and includes: an encryption unit for encrypting each of the resources to be encrypted with each encryption key; and generating a data packet. a unit for generating a data packet respectively storing encrypted data or non-encrypted data of each resource; a sending unit for sending the data packet.

本发明之2涉及的许可证发布装置,优选是如下的许可证发布装置:对于由多个资源构成的内容,在用各个加密密钥对加密对象的所述各资源进行了加密的状态下,通过通信线路提供用于对利用广播波提供时的加密资源进行解密的许可证,包括:存储单元,存储所述许可证;发送单元,发送所述存储单元内的许可证;所述许可证由许可证标识符和解密密钥的组合构成;所述许可证标识符表示该许可证成为有效的广播范围;所述解密密钥与加密对象资源的每个对应而被设置。The license issuing device according to claim 2 of the present invention is preferably a license issuing device that, in a state where each of the resources to be encrypted is encrypted with each of the encryption keys for content composed of a plurality of resources, Providing a license for decrypting encrypted resources when provided using broadcast waves through a communication line, including: a storage unit that stores the license; a transmission unit that transmits the license in the storage unit; A combination of a license identifier and a decryption key; the license identifier indicating the broadcast range in which the license becomes valid; the decryption key is provided corresponding to each resource to be encrypted.

本发明之3涉及的解密装置,优选是如下的解密装置:对于由多个资源构成的内容,在由各个加密密钥对加密对象的所述各资源进行了加密的状态下,利用广播波提供,包括:广播接收单元,用广播波接收数据包;数据包分配单元,其根据所述已接收的数据包,把具有加密数据的数据包按加密对象的资源不同进行分配;许可证接收单元,通过通信线路接收许可证;解密单元,用所述已接收的许可证中各个解密密钥对按加密对象的资源不同而分配的数据包中的加密数据进行解密。The decryption device according to claim 3 of the present invention is preferably a decryption device that, with respect to content composed of a plurality of resources, provides the content by broadcast waves in a state in which the respective resources to be encrypted are encrypted with respective encryption keys. , comprising: a broadcast receiving unit for receiving data packets by broadcast waves; a data packet distribution unit for distributing data packets with encrypted data according to different resources of encrypted objects according to the received data packets; a license receiving unit, The license is received through the communication line; the decryption unit uses each decryption key in the received license to decrypt the encrypted data in the data packet allocated according to the different resources of the encrypted object.

本发明之4涉及的解密装置,是所述解密装置,优选还具有存储许可证的许可证保持单元。The decryption device according to claim 4 of the present invention is the decryption device, and preferably further includes a license holding unit for storing a license.

本发明之5涉及的解密装置,是所述解密装置,优选还具有解密控制单元,且该解密控制单元根据许可证中的许可证标识符,控制该许可证成为有效的广播范围的解密。The decryption device according to claim 5 of the present invention is the decryption device described above, and preferably further includes a decryption control unit, and the decryption control unit controls decryption of the broadcast range in which the license is valid based on a license identifier in the license.

本发明之6涉及的解密装置,是所述解密装置,优选还具有积累单元,且该积累单元积累用广播波接收的内容。The decryption device according to claim 6 of the present invention is the above decryption device, and preferably further includes an accumulation unit that accumulates contents received by broadcast waves.

本发明之7涉及的解密装置,是所述解密装置,优选还具有许可证取得单元,且该许可证取得单元通过通信线路取得对接收中的广播范围有效的许可证。The decryption device according to claim 7 of the present invention is the above-mentioned decryption device, and preferably further includes a license obtaining unit that obtains a license valid for a broadcast range being received through a communication line.

本发明之8涉及的解密装置,是所述解密装置,优选还具有:显示单元,在显示画面上明示利用广播波正在接收或预定接收的内容;指定单元,指定在所述显示画面上明示的内容;许可证取得单元,通过通信线路取得与基于所述指定单元的指定的内容对应的许可证。The decryption device according to claim 8 of the present invention is the decryption device, and preferably further includes: a display unit for displaying on a display screen content that is being received or is scheduled to be received by broadcast waves; and a specifying unit for specifying the content clearly displayed on the display screen. Content: a license acquiring unit that acquires a license corresponding to the content specified by the specifying unit through a communication line.

本发明之9涉及的解密装置,是所述解密装置,优选还具有:显示单元,在显示画面上明示利用广播波正在接收或预定接收的内容或所述积累单元中积累的内容;指定单元,指定在所述显示画面上明示的内容;许可证取得单元,通过通信线路取得与基于所述指定单元的指定的内容对应的许可证。The decryption device according to claim 9 of the present invention is the decryption device, preferably further comprising: a display unit for expressly displaying on a display screen the content being received or scheduled to be received by broadcast waves or the content accumulated in the accumulation unit; and a specifying unit, The content clearly displayed on the display screen is specified; and the license obtaining means acquires a license corresponding to the content specified by the specifying means through a communication line.

本发明之10涉及的解密装置,是所述解密装置,优选,所述显示单元在显示画面上明示与所述显示画面上明示的内容对应的许可证的有无。In the decryption device according to claim 10 of the present invention, it is preferable that the display unit clearly indicates on a display screen the presence or absence of a license corresponding to the content clearly indicated on the display screen.

根据本发明的上述各个方面,在利用广播波提供由多个资源构成的内容时,能对用户提供多样的服务形态。According to the above aspects of the present invention, various service forms can be provided to users when content composed of a plurality of resources is provided using broadcast waves.

此外,为了解决上述的课题,本发明例如还具有以下的各方面。Moreover, in order to solve the above-mentioned subject, this invention has the following aspects, for example.

本发明之11涉及的加密装置,优选包括:初始化数据包生成单元,以数据流加密算法的初始化间隔,生成保存在数据流加密算法的初始化中使用的初始值的初始化数据包;加密单元,使用所述初始化数据包中保存的初始值,对数据流加密算法进行初始化,进行数据流加密;加密数据包生成单元,生成保存该数据流加密数据的加密数据包;发送单元,发送所述初始化数据包和所述加密数据包。The encryption device according to the eleventh aspect of the present invention preferably includes: an initialization data packet generation unit, which generates an initialization data packet storing an initial value used in the initialization of the data stream encryption algorithm at an initialization interval of the data stream encryption algorithm; the encryption unit uses The initial value stored in the initialization data packet initializes the data stream encryption algorithm and encrypts the data stream; the encrypted data packet generation unit generates an encrypted data packet storing the encrypted data of the data stream; the sending unit sends the initialization data package and the encrypted data package.

本发明之12涉及的加密装置,是所述加密装置,优选,所述初始化数据包生成单元使用与被加密的数据的媒体种类对应的初始化间隔。In the encryption device according to claim 12 of the present invention, it is preferable that the initialization packet generating unit uses an initialization interval corresponding to a media type of encrypted data.

本发明之13涉及的加密装置,是所述加密装置,优选,设置多个所述加密单元;所述初始化数据包生成单元把所述加密单元的各初始值保存在初始化数据包中。The encryption device according to claim 13 of the present invention is the encryption device, preferably, a plurality of the encryption units are provided; the initialization data packet generating unit stores the initial values of the encryption units in the initialization data packet.

本发明之14涉及的加密装置,是所述加密装置,优选,所述初始化数据包和所述加密数据包都是传输包,其种类不同。The encryption device according to claim 14 of the present invention is the encryption device, and it is preferable that the initialization data packet and the encryption data packet are both transmission packets, and their types are different.

本发明之15涉及的解密装置,优选包括:接收单元,接收初始化数据包和加密数据包;解密单元,使用所述初始化数据包中保存的初始值,对数据流加密算法进行初始化,对所述加密数据包中保存的数据流加密数据进行解密。The decryption device according to claim 15 of the present invention preferably includes: a receiving unit that receives an initialization data packet and an encrypted data packet; a decryption unit that uses the initial value stored in the initialization data packet to initialize the data stream encryption algorithm, and The stream encrypted data saved in the encrypted data packet is decrypted.

本发明之16涉及的解密装置,是所述解密装置,优选设置多个所述解密单元;所述解密单元使用指定的所述初始值,对指定的所述数据流加密数据进行解密。The decryption device according to claim 16 of the present invention is the decryption device, and preferably a plurality of the decryption units are provided; the decryption unit decrypts the specified encrypted data of the data stream by using the specified initial value.

本发明之17涉及的解密装置,是所述解密装置,优选还具有对所述加密数据包的损失个数进行计数的计数单元;所述解密单元进行与所述损失个数对应的所述解密的空转。The decryption device according to claim 17 of the present invention is the decryption device, and preferably further includes a counting unit for counting the number of lost encrypted data packets; the decryption unit performs the decryption corresponding to the lost number idling.

本发明之18涉及的解密装置,是所述解密装置,优选还与所述各解密单元对应,设置对所述加密数据包的损失个数进行计数的计数单元;所述解密单元进行与所述损失个数对应的所述解密的空转。The decryption device according to claim 18 of the present invention is the decryption device, preferably further corresponding to each of the decryption units, a counting unit for counting the number of losses of the encrypted data packets is provided; The number of losses corresponds to the decrypted idling.

本发明之19涉及的解密装置,是所述解密装置,优选,所述解密单元在超过所述计数单元的计数范围的情况下,制止所述解密的空转。In the decryption device according to claim 19 of the present invention, it is preferable that the decryption unit prevents idling of the decryption when the count range of the count unit is exceeded.

本发明之20涉及的解密装置,是所述解密装置,优选,所述初始化数据包和所述加密数据包都是传输包,其种类不同。The decryption device according to claim 20 of the present invention is the decryption device, preferably, the initialization data packet and the encrypted data packet are both transmission packets, and their types are different.

本发明之21涉及的加密装置,包括:初始化数据包插入单元,在保存数据流内容数据的数据包串中,按每个数据流内容数据的处理单位,插入保存了在数据流加密算法的初始化中使用的初始值的初始化数据包;加密单元,使用所述初始化数据包中保存的初始值,对数据流加密算法进行初始化,进行所述数据流内容数据的数据流加密;发送单元,发送保存该被加密的数据流内容数据的加密数据包和所述初始化数据包。The encryption device related to the 21st aspect of the present invention includes: an initialization data packet inserting unit, in the data packet string storing the content data of the data stream, according to the processing unit of each data stream content data, inserting and storing the initialization of the encryption algorithm in the data stream The initialization data packet of the initial value used in the initialization data packet; the encryption unit uses the initial value stored in the initialization data packet to initialize the data flow encryption algorithm, and performs the data flow encryption of the data flow content data; the sending unit sends and saves The encrypted data packet of the encrypted data stream content data and the initialization data packet.

本发明之22涉及的加密装置,是所述加密装置,优选所述初始化数据包插入单元在紧邻保存基准图像帧的数据包之前插入所述初始化数据包。In the encryption device according to claim 22 of the present invention, it is preferable that the initialization packet inserting unit inserts the initialization packet immediately before a packet storing a reference image frame.

本发明之23涉及的加密装置,是所述加密装置,优选所述基准图像帧是I图像或IDR图像。In the encryption device according to claim 23 of the present invention, it is preferable that the reference picture frame is an I picture or an IDR picture.

本发明之24涉及的加密装置,是所述加密装置,优选所述初始化数据包插入单元在紧邻保存语音帧的数据包之前插入所述初始化数据包。The encryption device according to claim 24 of the present invention is the encryption device, and preferably, the initialization packet inserting unit inserts the initialization packet immediately before a packet storing a speech frame.

本发明之25涉及的加密装置,是所述加密装置,优选,所述初始化数据包插入单元,在紧邻保存ADTS头的数据包之前插入所述初始化数据包。In the encryption device according to claim 25 of the present invention, it is preferable that the initialization packet inserting unit inserts the initialization packet immediately before the packet storing the ADTS header.

本发明之26涉及的加密装置,是所述加密装置,优选所述初始化数据包插入单元,在保存数据广播内容数据的数据包串中,按每个重复广播的数据单位,插入所述初始化数据包。The encryption device according to claim 26 of the present invention is the encryption device, preferably, the initialization data packet inserting unit inserts the initialization data for each data unit of repeated broadcasting into a data packet string storing data broadcast content data. Bag.

本发明之27涉及的内容数据生成方法,优选是如下的内容数据生成方法:使用初始化数据包中保存的初始值,对数据流加密算法初始化,将数据流内容数据进行数据流加密,在保存数据流内容数据的数据包串中,按每个数据流内容数据的处理单位,插入保存了在数据流加密算法的初始化中使用的初始值的初始化数据包。The content data generating method according to claim 27 of the present invention is preferably the following content data generating method: use the initial value stored in the initialization data packet to initialize the data stream encryption algorithm, perform data stream encryption on the data stream content data, and store the data In the packet sequence of the stream content data, an initialization packet storing an initial value used for initializing the stream encryption algorithm is inserted for each processing unit of the stream content data.

本发明之28涉及的内容数据生成方法,是所述内容数据生成方法,优选,在紧邻保存了基准图像帧的数据包之前插入所述初始化数据包。In the content data generation method according to claim 28 of the present invention, in the content data generation method, it is preferable that the initialization packet is inserted immediately before a packet storing a reference image frame.

本发明之29涉及的内容数据生成方法,是所述内容数据生成方法,优选,所述基准图像帧是I图像或IDR图像。The content data generation method according to claim 29 of the present invention is the content data generation method, and preferably, the reference image frame is an I picture or an IDR picture.

本发明之30涉及的内容数据生成方法,是所述内容数据生成方法,优选,在紧邻保存了语音帧的数据包之前插入所述初始化数据包。In the content data generation method according to claim 30 of the present invention, the content data generation method preferably inserts the initialization packet immediately before a packet storing a voice frame.

本发明之31涉及的内容数据生成方法,是所述内容数据生成方法,优选,在紧邻保存了ADTS头的数据包之前插入所述初始化数据包。In the content data generation method according to claim 31 of the present invention, in the content data generation method, it is preferable that the initialization packet is inserted immediately before the packet storing the ADTS header.

本发明之32涉及的内容数据生成方法,是所述内容数据生成方法,优选,在保存了数据广播内容数据的数据包串中,按每个重复广播的数据单位,插入所述初始化数据包。The content data generation method according to claim 32 of the present invention is the content data generation method, preferably inserting the initializing packet into the packet sequence storing the data broadcasting content data for each repeated data unit.

根据本发明的上述各方面,可以对数据流加密方式,强化针对传送错误等引起的传送数据的损失的耐性。According to the above-mentioned aspects of the present invention, the data stream encryption method can be strengthened against loss of transmission data due to transmission errors or the like.

此外,为了解决上述的课题,本发明例如还具有以下的各方面。Moreover, in order to solve the above-mentioned subject, this invention has the following aspects, for example.

本发明之33涉及的加密装置,是所述加密装置,优选,所述加密单元,对于由多个资源构成的内容,用各个加密密钥对加密对象的所述各资源进行加密;所述加密数据包生成单元,生成分别保存所述各资源的加密数据或非加密数据的数据包;所述发送单元发送所述加密数据包生成单元生成的所述数据包。The encryption device according to claim 33 of the present invention is the encryption device. Preferably, the encryption unit encrypts each of the resources to be encrypted with each encryption key for the content composed of a plurality of resources; the encryption a data packet generating unit, generating a data packet respectively storing encrypted data or non-encrypted data of each resource; the sending unit sends the data packet generated by the encrypted data packet generating unit.

本发明之34涉及的加密装置,是所述加密装置,优选还具有初始化数据包生成单元,且该初始化数据包生成单元以数据流加密算法的初始化间隔生成保存数据流加密算法的初始化中使用的初始值的初始化数据包;所述加密单元使用所述初始化数据包中保存的初始值,对数据流加密算法进行初始化,进行数据流加密。The encryption device according to claim 34 of the present invention is the encryption device, and preferably further includes an initialization packet generation unit, and the initialization packet generation unit generates and saves the data used in the initialization of the data stream encryption algorithm at the initialization interval of the data stream encryption algorithm. An initialization data packet of an initial value; the encryption unit uses the initial value stored in the initialization data packet to initialize a data stream encryption algorithm and perform data stream encryption.

本发明之35涉及的加密装置,是所述加密装置,优选,所述初始化数据包生成单元使用与被加密的数据的媒体种类对应的初始化间隔。In the encryption device according to claim 35 of the present invention, it is preferable that the initialization packet generating unit uses an initialization interval corresponding to a media type of encrypted data.

本发明之36涉及的加密装置,是所述加密装置,优选,设置多个所述加密单元;所述初始化数据包生成单元把所述加密单元的各初始值保存到初始化数据包中。The encryption device according to claim 36 of the present invention is the encryption device. Preferably, a plurality of the encryption units are provided; and the initialization data packet generation unit stores the initial values of the encryption units in the initialization data packet.

本发明之37涉及的加密装置,是所述加密装置,优选,所述初始化数据包和所述加密包都是传输包,其种类不同。The encryption device according to claim 37 of the present invention is the encryption device, preferably, the initialization data packet and the encryption packet are both transmission packets, and their types are different.

本发明之38是一种广播系统,其利用广播波提供内容,优选,包括:加密部,用各个加密密钥对由多个资源构成的各内容进行加密,生成分别保存所述各资源的加密数据或非加密数据的数据包,并发送;许可证发布部,把用于对所述加密数据进行解密的许可证通过通信线路发送;解密部,接收所述数据包,把具有所述加密数据的数据包按加密对象的资源不同而进行分配,使用通过所述通信线路接收的所述许可证,对所述加密数据进行解密;所述许可证具有表示该许可证成为有效的广播范围的许可证标识符和与加密对象的所述资源的每个对应的解密密钥的组合;所述解密部用接收的所述许可证中的各所述解密密钥对按加密对象的所述资源不同而分配的所述数据包中的所述加密数据进行解密。A thirty-eighth aspect of the present invention is a broadcasting system that provides content using broadcast waves, preferably including: an encryption unit that encrypts each content composed of a plurality of resources with each encryption key, and generates an encrypted file that stores the resources respectively. data or non-encrypted data packets, and send them; the license issuance unit sends the license for decrypting the encrypted data through the communication line; the decryption unit receives the data packets, and sends the license with the encrypted data The data packets are allocated according to the resource of the encrypted object, and the encrypted data is decrypted using the license received through the communication line; the license has a license indicating that the license becomes a valid broadcast range a combination of a certificate identifier and a decryption key corresponding to each of the resources to be encrypted; The encrypted data in the data packet distributed is decrypted.

附图说明 Description of drawings

图1是表示本发明的一实施方式涉及的广播系统的构成的方框图。FIG. 1 is a block diagram showing the configuration of a broadcasting system according to an embodiment of the present invention.

图2是表示图1所示的加密装置100的构成的方框图。FIG. 2 is a block diagram showing the configuration of the encryption device 100 shown in FIG. 1 .

图3是表示本发明的一实施方式涉及的传输包(TS数据包)的构成例的图。FIG. 3 is a diagram showing a configuration example of a transport packet (TS packet) according to an embodiment of the present invention.

图4是表示图1所示的许可证发布装置2提供的许可证200的构成例的图。FIG. 4 is a diagram showing a configuration example of a license 200 provided by the license issuing device 2 shown in FIG. 1 .

图5是表示图1所示的解密装置300的构成的方框图。FIG. 5 is a block diagram showing the configuration of the decryption device 300 shown in FIG. 1 .

图6是表示图1所示的终端装置3的显示画面30的构成例的图。FIG. 6 is a diagram showing a configuration example of the display screen 30 of the terminal device 3 shown in FIG. 1 .

图7是用于说明本发明的一实施方式涉及的加密过程和解密过程的组合的标识符的构成例的广播信号的数据构造图。7 is a data structure diagram of a broadcast signal for explaining a configuration example of an identifier for a combination of an encryption process and a decryption process according to an embodiment of the present invention.

图8是用于说明本发明的一实施方式涉及的加密过程和解密过程的组合的标识符的构成例的描述符例的数据构造图。8 is a data structure diagram of a descriptor example for explaining a configuration example of an identifier of a combination of an encryption process and a decryption process according to an embodiment of the present invention.

图9是表示本发明其他实施方式涉及的解密装置的构成的方框图。FIG. 9 is a block diagram showing the configuration of a decryption device according to another embodiment of the present invention.

图10是表示本发明实施方式2涉及的数据流加密方式的加密装置1100的构成的方框图。FIG. 10 is a block diagram showing the configuration of an encryption device 1100 of a data stream encryption method according to Embodiment 2 of the present invention.

图11是表示同实施方式涉及的初始化数据包(IV数据包)的构成例的图。FIG. 11 is a diagram showing a configuration example of an initialization packet (IV packet) according to the embodiment.

图12是表示本发明实施方式2涉及的数据流加密方式的解密装置1200的构成的方框图。FIG. 12 is a block diagram showing the configuration of a decryption device 1200 of a data stream encryption scheme according to Embodiment 2 of the present invention.

图13是表示本发明实施方式3涉及的数据流加密方式的解密装置1220的构成的方框图。FIG. 13 is a block diagram showing the configuration of a decryption device 1220 of a data stream encryption scheme according to Embodiment 3 of the present invention.

图14是表示本发明实施方式4涉及的数据流加密方式的解密装置1240的构成的方框图。FIG. 14 is a block diagram showing the configuration of a decryption device 1240 of a data stream encryption scheme according to Embodiment 4 of the present invention.

图15是表示本发明实施方式5涉及的数据流加密方式的加密装置1120的构成的方框图。FIG. 15 is a block diagram showing the configuration of an encryption device 1120 of a data stream encryption method according to Embodiment 5 of the present invention.

图16是用于说明本发明实施方式5涉及的IV数据包插入动作的说明图。FIG. 16 is an explanatory diagram for explaining an IV packet insertion operation according to Embodiment 5 of the present invention.

图17是用于说明本发明实施方式5涉及的IV数据包插入动作的说明图。FIG. 17 is an explanatory diagram for explaining an IV packet insertion operation according to Embodiment 5 of the present invention.

符号的说明:Explanation of symbols:

1—广播电台;2—许可证发布装置;3—终端装置;4—通信网络;30—显示画面;31—影像画面;32—数据广播画面;100—加密装置;110—加密部;111—加密过程;120—数据包生成部;130—发送部;200—许可证;300—解密装置;310—广播接收部;320—数据包分配部;330—解密部;331—解密过程;340—许可证接收部;350—许可证保持部;360—许可证管理部;370—许可证取得控制部;600—积累部;1100—加密装置;1120—加密装置;1101—头变换部;1102—IV数据包插入部;1103—加密部;1104—发送部;1121—数据分析部;1200—解密装置;1220—解密装置;1240—解密装置;1201—接收部;1202—数据包分配部;1203—IV数据包读入部;1204—解密部;1221—计数校验部;1241—计数校验和解密部;1102a—IV数据包插入部;1130—I图像;1140—IV数据包;1150—ADTS头;1300—再生装置;1301—图像再生部;1302—语音再生部;1303—数据广播显示部。1—broadcast station; 2—license issuing device; 3—terminal device; 4—communication network; 30—display screen; 31—image screen; 32—data broadcast screen; 100—encryption device; 110—encryption department; 111— Encryption process; 120—data packet generation unit; 130—sending unit; 200—license; 300—decryption device; 310—broadcast receiving unit; 320—data packet distribution unit; 330—decryption unit; 331—decryption process; 340— 350—license maintenance department; 360—license management department; 370—license acquisition control department; 600—accumulation department; 1100—encryption device; 1120—encryption device; IV data packet insertion unit; 1103—encryption unit; 1104—transmission unit; 1121—data analysis unit; 1200—decryption device; 1220—decryption device; 1240—decryption device; 1201—reception unit; 1204—decryption portion; 1221—count verification portion; 1241—count verification and decryption portion; 1102a—IV data packet insertion portion; 1130—I image; 1140—IV data packet; 1150— ADTS head; 1300—reproducing device; 1301—image reproducing unit; 1302—voice reproducing unit; 1303—data broadcasting display unit.

具体实施方式 Detailed ways

实施方式1Embodiment 1

下面,参照附图,说明本发明的一实施方式。Hereinafter, an embodiment of the present invention will be described with reference to the drawings.

图1是表示本发明的一实施方式涉及的广播系统的构成的方框图。在图1中,广播电台1具有加密装置100。加密装置100把用广播波提供的内容进行加密。许可证发布装置2把用于对从广播电台1以广播波提供的加密内容进行解密的许可证通过通信线路提供。终端装置3具有解密装置300。解密装置300使用从许可证发布装置2提供的许可证对从广播电台1以广播波提供的加密内容进行解密。FIG. 1 is a block diagram showing the configuration of a broadcasting system according to an embodiment of the present invention. In FIG. 1 , a broadcasting station 1 has an encryption device 100 . The encryption device 100 encrypts content provided by broadcast waves. The license-issuing device 2 supplies a license for decrypting encrypted content provided in broadcast waves from the broadcasting station 1 through a communication line. The terminal device 3 has a decryption device 300 . The decryption device 300 decrypts encrypted content provided in broadcast waves from the broadcast station 1 using the license provided from the license-issuing device 2 .

许可证发布装置2和终端装置3具有通信功能,与因特网等通信网络4连接。终端装置3可以是固定终端,或者也可以是便携式终端。便携式终端的时候,通过移动通信网络与因特网等连接。此外,终端装置3具有广播波的接收功能。The license issuing device 2 and the terminal device 3 have a communication function and are connected to a communication network 4 such as the Internet. The terminal device 3 may be a stationary terminal or may be a portable terminal. In the case of a portable terminal, it is connected to the Internet or the like through a mobile communication network. In addition, the terminal device 3 has a function of receiving broadcast waves.

图2是表示图1所示的加密装置100的构成的方框图。在图2中,内容由多个资源构成。作为资源的种类,例如列举影像、语音、数据等。内容中的资源可以全部是加密对象,或者也可以具有不是加密对象的资源。在图2的例子中,内容由N个资源_#1~#N构成,资源_#1、#2是加密对象,所以被加密,但是资源_#N不是加密对象,所以不加密。如果列举具体例,对于由影像资源、语音资源和数据资源构成的内容,可以考虑对影像资源、语音资源加密,对数据资源不加密。FIG. 2 is a block diagram showing the configuration of the encryption device 100 shown in FIG. 1 . In FIG. 2, content is composed of a plurality of resources. Examples of types of resources include video, audio, data, and the like. All resources in the content may be encrypted, or there may be resources that are not encrypted. In the example of FIG. 2 , the content is composed of N resources_#1 to #N. Resources_#1 and #2 are encrypted, so they are encrypted, but resource_#N is not encrypted, so it is not encrypted. If specific examples are given, for content composed of video resources, audio resources, and data resources, it may be considered to encrypt video resources and audio resources, but not to encrypt data resources.

图2所示的加密装置100具有加密部110、数据包生成部120和发送部130。加密部110可以具有多个加密过程111。各加密过程111用各自的加密密钥分别对加密对象的资源进行加密。在图2的例子中,在各加密过程111中分别用加密密钥_#1、#2对加密对象的资源_#1、#2进行加密。将各资源的加密数据输入到数据包生成部120。另外,将非加密对象的资源_#N(非加密数据)原封不动输入到数据包生成部120。The encryption device 100 shown in FIG. 2 includes an encryption unit 110 , a packet generation unit 120 , and a transmission unit 130 . The encryption unit 110 may have a plurality of encryption processes 111 . Each encryption process 111 encrypts the resource to be encrypted with its own encryption key. In the example shown in FIG. 2 , resources_#1 and #2 to be encrypted are encrypted with encryption keys_#1 and #2 in each encryption process 111 . The encrypted data of each resource is input to the packet generation unit 120 . In addition, the resource_#N (non-encrypted data) that is not an encryption target is input to the packet generation unit 120 as it is.

数据包生成部120生成分别保存各资源的加密数据或非加密数据的传输包(TS数据包)。在图3中表示TS数据包的构成例。图3的TS数据包依据了ISO/IEC13818-1(MPEG-2系统标准)。在图3中,在data_byte字段中,在是加密对象资源时,保存加密数据,在是非加密对象资源时,保存非加密数据。此外,在头中的transport_scrambling_control字段保存表示加密对象资源或非加密对象资源的值transport_scrambling_control字段的值“01”、“10”和“11”表示是加密对象资源。transport_scrambling_comtrol字段的值“00”表示是非加密对象资源。The packet generation unit 120 generates a transport packet (TS packet) for storing encrypted data or non-encrypted data of each resource. FIG. 3 shows a configuration example of a TS packet. The TS packet in FIG. 3 conforms to ISO/IEC13818-1 (MPEG-2 system standard). In FIG. 3 , in the data_byte field, encrypted data is stored when it is an encrypted target resource, and non-encrypted data is stored when it is a non-encrypted target resource. In addition, the transport_scrambling_control field in the header holds a value representing an encryption target resource or a non-encryption target resource. Values "01", "10" and "11" of the transport_scrambling_control field indicate an encryption target resource. The value "00" of the transport_scrambling_comtrol field indicates that it is a non-encrypted object resource.

此外,在是加密对象资源的时候,transport_scrambling_control字段的值“01”、“10”和“11”识别把该资源加密的加密过程111。因此,根据transport_scrambling_control字段的值“01”、“10”和“11”,能识别3个加密过程111。这里,加密过程与解密装置侧的解密过程成对,但是利用transport_scrambling_control字段的值“01”、“10”和“11”指定解密装置侧的解密过程。另外,在使用transport_scrambling_control字段的情况下,加密过程和解密过程的组合能有3个,但是后面描述用于与更多数量的组合对应的扩展方法。Also, in the case of an encryption target resource, the values "01", "10" and "11" of the transport_scrambling_control field identify the encryption process 111 that scrambles the resource. Therefore, according to the values "01", "10", and "11" of the transport_scrambling_control field, three encryption processes 111 can be identified. Here, the encryption process is paired with the decryption process on the decryption device side, but the decryption process on the decryption device side is specified with the values "01", "10", and "11" of the transport_scrambling_control field. In addition, in the case of using the transport_scrambling_control field, there can be three combinations of the encryption process and the decryption process, but an extension method for corresponding to a greater number of combinations will be described later.

发送部130发送从数据包生成部120接收的TS数据包串。The transmitting unit 130 transmits the TS packet sequence received from the packet generating unit 120 .

图4是表示图1所示的许可证发布装置2提供的许可证200的构成例的图。在图4中,许可证200由许可证标识符(许可证ID)和解密密钥的组合构成。许可证ID表示该许可证成为有效的广播范围。作为广播范围,例如由广播时间、广播频道、内容、资源等规定。如果列举具体例,就把特定的广播时间的特定的广播频道或者特定的广播频道的特定的内容或者特定的内容的1个或多个特定的资源等作为广播范围考虑。FIG. 4 is a diagram showing a configuration example of a license 200 provided by the license issuing device 2 shown in FIG. 1 . In FIG. 4, a license 200 is composed of a combination of a license identifier (license ID) and a decryption key. The license ID indicates that the license becomes a valid broadcast range. The broadcast range is defined, for example, by broadcast time, broadcast channel, content, resource, and the like. If specific examples are given, a specific broadcast channel at a specific broadcast time, specific content of a specific broadcast channel, or one or more specific resources of the specific content, etc., are considered as the broadcast range.

在许可证200中,将与许可证ID组合的解密密钥与加密对象资源的每个对应而设置。例如在图2的例子中,加密对象资源_#1、#2分别由解密密钥_#1、#2加密。这时,与加密对象资源_#1、#2的每个对应,而设置解密密钥_#1、#2。In the license 200, a decryption key combined with a license ID is provided corresponding to each encryption target resource. For example, in the example of FIG. 2 , the encryption target resources_#1, #2 are encrypted by the decryption keys_#1, #2, respectively. At this time, decryption keys_#1, #2 are set corresponding to each of the encryption target resources_#1, #2.

许可证发布装置2具有存储许可证200的存储单元。例如把许可证200数据库化而存储。此外,许可证发布装置2具有发送该存储单元内的许可证200的发送单元。该发送单元通过通信网络4对终端装置3发送许可证200。The license-issuing apparatus 2 has a storage unit that stores a license 200 . For example, the license 200 is stored as a database. Furthermore, the license-issuing apparatus 2 has a transmission unit that transmits the license 200 in the storage unit. This transmitting unit transmits the license 200 to the terminal device 3 via the communication network 4 .

另外,许可证发布装置2可以由专用的硬件实现,或者由服务器计算机等计算机系统构成,通过执行用于实现许可证发布装置2的各功能的程序,实行其功能。In addition, the license issuing device 2 may be realized by dedicated hardware, or may be constituted by a computer system such as a server computer, and the functions of the license issuing device 2 may be implemented by executing a program for realizing each function of the license issuing device 2 .

图5是表示图1所示的解密装置300的构成的方框图。在图5中,广播接收部310用广播波接收TS数据包。这时,广播接收部310进行由用户操作指定的广播频道的接收。FIG. 5 is a block diagram showing the configuration of the decryption device 300 shown in FIG. 1 . In FIG. 5 , broadcast receiving unit 310 receives TS packets using broadcast waves. At this time, the broadcast receiving unit 310 receives the broadcast channel designated by the user operation.

数据包分配部320根据该接收的TS数据包把具有加密数据的TS数据包按加密对象的资源不同而进行分配。例如,在是图3的TS数据包的情况下,transport_scrambling_control字段的值为“01”、“10”和“11”的TS数据包保存把加密对象的资源加密的加密数据,但是根据transport_scrambling_control字段的值“01”、“10”和“11”,指定把该加密数据进行解密的解密过程。Based on the received TS packets, the packet allocation unit 320 allocates TS packets including encrypted data for different resources to be encrypted. For example, in the case of the TS packet shown in FIG. 3 , the TS packets whose values of the transport_scrambling_control field are "01", "10" and "11" store encrypted data that encrypts resources to be encrypted, but according to the value of the transport_scrambling_control field The values "01", "10" and "11" specify the decryption process to decrypt the encrypted data.

解密部330可以具有多个解密过程331。对于各解密过程331,设置将其每个区别的标识符。在各解密过程331中,根据该标识符,输入由数据包分配部320分配的加密对象资源的加密数据。各解密过程331用从许可证管理部360提供的各解密密钥分别对加密数据进行解密。将各解密数据在终端装置3上再生。另外,将保存在非加密对象资源的TS数据包中的非加密数据原封不动在终端装置3上再生。The decryption unit 330 may have a plurality of decryption processes 331 . For each decryption process 331, an identifier that distinguishes each of them is set. In each decryption process 331, the encrypted data of the encryption target resource distributed by the packet distribution unit 320 is input based on the identifier. Each decryption process 331 decrypts encrypted data using each decryption key supplied from the license management unit 360 . Each decrypted data is reproduced on the terminal device 3 . In addition, the non-encrypted data stored in the TS packet of the non-encrypted resource is reproduced on the terminal device 3 as it is.

许可证接收部340通过通信网络4从许可证发布装置2接收许可证200。用户用例如因特网上的许可证服务器进行取得在所希望的广播范围中成为有效的许可证200的签约,由此,可以用该终端装置3接收该许可证200。另外,许可证200是有偿、无偿的都可以。The license receiving unit 340 receives the license 200 from the license issuing device 2 via the communication network 4 . The user can receive the license 200 by using the terminal device 3 by signing a contract to obtain the license 200 valid for a desired broadcast range using, for example, a license server on the Internet. In addition, the license 200 may be paid or free.

许可证保持部350存储许可证200。据此,能预先接收多个许可证200,并存储,所以省略每次视听时,取得许可证200的麻烦。The license holding unit 350 stores the license 200 . According to this, a plurality of licenses 200 can be received and stored in advance, so the trouble of obtaining the license 200 every time viewing is omitted.

许可证管理部360根据许可证200,控制解密部330的解密动作。许可证管理部360根据许可证200中的许可证ID,确定该许可证200成为有效的广播范围。例如,通过比对非加密对象的广播信号中包含的识别信息和许可证ID,能判定成为有效的广播范围。The license management unit 360 controls the decryption operation of the decryption unit 330 based on the license 200 . Based on the license ID in the license 200, the license management unit 360 specifies the broadcasting range in which the license 200 becomes valid. For example, by comparing the identification information included in the non-encrypted broadcast signal and the license ID, it is possible to determine the effective broadcast range.

另外,根据终端装置3的机器形态,对于解密装置300的解密过程331,没必要设置与许可证200对应的全部,可以只具有与可利用的服务对应的解密过程331。In addition, depending on the device form of the terminal device 3, it is not necessary to provide all the decryption processes 331 corresponding to the license 200 in the decryption device 300, and only the decryption processes 331 corresponding to available services may be provided.

许可证管理部360从许可证保持部350读出对接收中的广播范围有效的许可证200,把该许可证200中的解密密钥分别提供给对应的解密过程331。据此,自动对该广播范围中包含的解密对象资源的加密数据进行解密。The license management unit 360 reads out the license 200 valid for the broadcast area being received from the license holding unit 350 , and supplies the decryption keys in the license 200 to the corresponding decryption processes 331 . Accordingly, the encrypted data of the decryption target resource included in the broadcast range is automatically decrypted.

许可证取得控制部370通过通信网络4取得许可证200。例如许可证取得控制部370访问因特网上的许可证服务器,进行取得许可证200的签约。另外,也可以在许可证发布装置2中设置许可证服务器功能。由许可证接收部340接收可以通过该许可证签约取得的许可证200。关于许可证200的取得,以下列举2个例子(情形1、2),进行说明。The license acquisition control unit 370 acquires the license 200 through the communication network 4 . For example, the license acquisition control unit 370 accesses a license server on the Internet, and contracts to acquire the license 200 . In addition, a license server function may also be provided in the license issuing apparatus 2 . The license 200 that can be acquired by the license contract is received by the license receiving unit 340 . Regarding the acquisition of the license 200, two examples (cases 1 and 2) will be given and described below.

(情形1)(case 1)

许可证管理部360在许可证保持部350内没有对于接收中的广播范围有效的许可证200的情况下,对许可证取得控制部370指示取得对该广播范围有效的许可证200。许可证取得控制部370根据该取得指示,尝试取得对于接收中的广播范围有效的许可证200。据此,能自动取得许可证200。The license management unit 360 instructs the license acquisition control unit 370 to acquire the license 200 valid for the broadcast range being received in the license holding unit 350 when there is no license 200 valid for the broadcast range being received. Based on the acquisition instruction, the license acquisition control unit 370 attempts to acquire the license 200 valid for the broadcast range being received. Accordingly, the license 200 can be automatically acquired.

(情形2)(case 2)

设置在终端装置3的显示画面上明示用广播波正在接收或预定接收的内容的显示单元。例如,在内容具有影像资源和数据资源的情况下,在图6例示的终端装置3的显示画面30中,在影像画面31上显示影像资源,在数据广播画面32上显示数据资源。这时,例如在影像画面31内的下部显示表示用广播波正在接收或预定接收的内容的标记,能明示对应的内容。另外,能根据非加密对象的广播信号中的内容信息,例如在广播波中多路复用的节目关联信息或内容的标识符等知道用广播波正在接收或预定接收的内容。A display unit is provided on the display screen of the terminal device 3 to clearly indicate the contents being received or scheduled to be received by broadcast waves. For example, when the content has video assets and data assets, on the display screen 30 of the terminal device 3 illustrated in FIG. 6 , the video assets are displayed on the video screen 31 and the data assets are displayed on the data broadcast screen 32 . At this time, for example, a mark indicating the content being received or scheduled to be received by broadcast waves is displayed on the lower part of the video screen 31, so that the corresponding content can be clearly indicated. In addition, content that is being received or is scheduled to be received by broadcast waves can be known from content information in broadcast signals not to be encrypted, such as program-related information multiplexed on broadcast waves, content identifiers, and the like.

此外,显示单元也可以在显示画面上明示与终端装置3的显示画面上明示的内容对应的许可证200的有无。例如,在图6的影像画面31内的下部显示表示许可证200的有无的标记,由此,能明示对应的许可证200的有无。可以通过搜索许可证保持部350内,判断许可证200的有无。In addition, the display unit may clearly display the presence or absence of the license 200 corresponding to the content clearly displayed on the display screen of the terminal device 3 on the display screen. For example, by displaying a mark indicating the presence or absence of the license 200 in the lower portion of the video screen 31 in FIG. 6 , the presence or absence of the corresponding license 200 can be clearly indicated. The presence or absence of the license 200 can be determined by searching the license holding unit 350 .

此外,设置用于指定在终端装置3的显示画面上明示的内容的指定单元。In addition, specifying means for specifying content clearly displayed on the display screen of the terminal device 3 is provided.

例如,用终端装置3的操作键选择在显示画面上显示的标记,由此能指定对应的内容。For example, by selecting a mark displayed on the display screen with an operation key of the terminal device 3, the corresponding content can be specified.

许可证取得控制部370尝试与该指定的内容对应的许可证200的取得。据此,用户总能在想视听时取得许可证200,视听所希望的内容。The license acquisition control unit 370 attempts to acquire the license 200 corresponding to the specified content. According to this, the user can always acquire the license 200 when he wants to watch, and watch the desired content.

如上所述,根据本实施方式,在用广播波提供由多个资源(影像、语音、数据等)构成的内容的情况下,广播电台能以资源为单位设定加密或非加密。据此,能以资源为单位提供可选择的服务,对用户能提供多样的服务方式。As described above, according to this embodiment, when providing content composed of a plurality of resources (video, audio, data, etc.) by broadcast waves, the broadcast station can set encryption or non-encryption in units of resources. Accordingly, selectable services can be provided in units of resources, and various service methods can be provided to users.

此外,能灵活地设定许可证中包含的解密密钥的构成,所以能实现内容的多样的视听形态。例如在由1个影像资源、2个语音资源(例如日语语音和英语语音)构成的电影内容中,设置包含与影像资源和一方的语音资源(例如日语语音)对应的各解密密钥的许可证、和包含与影像资源和另一方的语音资源(例如英语语音)对应的各解密密钥的许可证,从而对于一个内容设置各种模式的许可证,由此,可以对用户提供多样的视听形态。In addition, since the configuration of the decryption key included in the license can be flexibly set, various viewing forms of the content can be realized. For example, in a movie content composed of one video resource and two audio resources (such as Japanese audio and English audio), a license including each decryption key corresponding to the video resource and one audio resource (such as Japanese audio) is set. , and a license including each decryption key corresponding to the video resource and the other audio resource (for example, English audio), so that various types of licenses are set for one content, thereby providing users with various viewing forms .

另外,本实施方式涉及的加密装置100和解密装置300可以由专用的硬件实现,或者由存储器和CPU(中央计算处理装置)等构成,用CPU执行用于实现各装置的功能的程序,从而实现该功能。In addition, the encryption device 100 and the decryption device 300 according to this embodiment may be realized by dedicated hardware, or may be composed of a memory, a CPU (central processing unit), etc., and the CPU executes a program for realizing the functions of each device, thereby realizing The function.

下面,说明扩展加密过程和解密过程的组合(以下称作“过程组”)的个数的方法。Next, a method of expanding the number of combinations of encryption processes and decryption processes (hereinafter referred to as "process groups") will be described.

在用上述的图3所示的TS数据包的头中的transport_scrambling_control字段的值识别过程组的方法中,能把过程组设置到3个。并且,作为扩展过程组的个数的方法,例如列举利用图7所示的PMT的数据和图8所示的成分(component)描述符的方法。图7和图8的各数据构造由ARIB(Association of Radio Industries andBusiness)的标准规格“STD-B10”规定。In the method of identifying process groups using the value of the transport_scrambling_control field in the header of the TS packet shown in FIG. 3 described above, the process groups can be set to three. Furthermore, as a method of increasing the number of process groups, for example, a method of using the PMT data shown in FIG. 7 and the component descriptor shown in FIG. 8 is mentioned. Each data structure in FIG. 7 and FIG. 8 is defined by the standard specification "STD-B10" of the ARIB (Association of Radio Industries and Business).

在图7所示的PMT的数据中的描述符区域2_500中能保存图8所示的成分描述符。而且,在该成分描述符中的未定义的区域510中保存标识符。该区域510有4位,所以能最大设置16个标识符,如果1个是表示非加密的标识符,用剩下的15个标识符最大能识别15个过程组。The component descriptor shown in FIG. 8 can be stored in the descriptor area 2_500 in the PMT data shown in FIG. 7 . Furthermore, an identifier is stored in an undefined area 510 in this component descriptor. This area 510 has 4 bits, so a maximum of 16 identifiers can be set, and if one identifier indicates non-encryption, a maximum of 15 process groups can be identified with the remaining 15 identifiers.

另外,成分描述符是已经存在的描述符,但是也可以定义新的描述符而使用。这时,能设置任意的个数的标识符,能进一步扩展过程组的个数。In addition, the component descriptor is an existing descriptor, but it is also possible to define a new descriptor and use it. In this case, an arbitrary number of identifiers can be set, and the number of process groups can be further expanded.

以上,参照附图,详细描述本发明的实施方式1,但是具体的构成并不局限于本实施方式,还包含不脱离本发明的宗旨的范围的设计变更等。As above, Embodiment 1 of the present invention has been described in detail with reference to the drawings, but the specific configuration is not limited to this embodiment, and design changes and the like within the range not departing from the gist of the present invention are also included.

例如,也可以在解密装置设置积累用广播波接收的内容的积累单元。图9表示该解密装置的构成例。在图9中,在图5所示的解密装置300中,还设置了积累部600。在图9中,积累部600存储并积累由广播接收部310接收的TS数据包。数据包分配部320从积累部600读出TS数据包,把具有加密数据的TS数据包按加密对象的资源不同而进行分配。据此,在用户无法实时视听广播的内容时,可以积累已接收的内容,在任意的时间进行解密和再生,进行视听。For example, an accumulating means for accumulating contents received by broadcast waves may be provided in the decryption device. FIG. 9 shows a configuration example of the decryption device. In FIG. 9 , in the decryption device 300 shown in FIG. 5 , an accumulation unit 600 is further provided. In FIG. 9 , accumulation unit 600 stores and accumulates TS packets received by broadcast reception unit 310 . The packet distributing unit 320 reads TS packets from the accumulating unit 600, and distributes the TS packets containing encrypted data for different resources to be encrypted. According to this, when the user cannot view broadcast content in real time, the received content can be accumulated, decrypted and reproduced at any time, and can be viewed.

此外,在图9的解密装置中,也可以,设置上述的情形2的显示单元和指定单元,取得与用户指定的内容对应的许可证200。这时,显示单元在终端装置3的显示画面上明示用广播波正在接收或预定接收的内容或在积累部600中积累的内容即可。In addition, in the decryption device of FIG. 9 , the display means and designation means of the above-mentioned case 2 may be provided, and the license 200 corresponding to the content designated by the user may be acquired. In this case, the display means may clearly display on the display screen of the terminal device 3 the contents being received or scheduled to be received by broadcast waves or the contents accumulated in the accumulating unit 600 .

另外,本发明能在各种广播系统中应用。例如,能在面向便携式终端的数字广播系统中应用。据此,用数字广播提供由多个资源构成的内容时,能对用户提供与便携式终端的特征对应的多样的服务方式。In addition, the present invention can be applied in various broadcasting systems. For example, it can be applied to a digital broadcasting system for mobile terminals. Accordingly, when content composed of a plurality of resources is provided by digital broadcasting, various service methods corresponding to the characteristics of the mobile terminal can be provided to the user.

此外,作为本实施方式的加密方式,可以是数据流加密方式,或者也可以是数据块加密方式。In addition, as the encryption method in this embodiment, a data stream encryption method may be used, or a data block encryption method may be used.

[实施方式2][Embodiment 2]

图10是表示本发明实施方式2的数据流加密方式的加密装置1100的构成的方框图。FIG. 10 is a block diagram showing the configuration of an encryption device 1100 of a data stream encryption method according to Embodiment 2 of the present invention.

在图10中,头变换部1101进行传输包(TS数据包)的头变换。TS数据包依据ISO/IEC13818-1(MPEG-2系统标准)。头变换部1101改写TS数据包的头中的transport_scrambling_control字段的值。transport_scrambling_control字段的值“01”、“10”和“11”表示进行加密。transport_scrambling_control字段的值“00”表示不进行加密。In FIG. 10, a header conversion unit 1101 performs header conversion of a transport packet (TS packet). The TS packet conforms to ISO/IEC13818-1 (MPEG-2 system standard). The header converter 1101 rewrites the value of the transport_scrambling_control field in the header of the TS packet. The values "01", "10" and "11" of the transport_scrambling_control field indicate that encryption is performed. The value "00" of the transport_scrambling_control field indicates that encryption is not performed.

IV数据包插入部1102以数据流加密算法的初始化间隔,生成初始化数据包(IV数据包),且该初始化数据包(IV数据包)保存数据流加密算法的初始化中使用的初始值(IV)。此外,IV数据包插入部1102在IV数据包中保存密钥ID。密钥ID有“Current”和“Next”2种。密钥ID“Current”是当前使用中的密钥的标识符。密钥ID“Next”是接着使用的密钥的标识符。IV数据包插入部1102在从头变换部1101输出的TS数据包串中插入已生成的IV数据包。The IV packet insertion unit 1102 generates an initialization packet (IV packet) at an initialization interval of the stream encryption algorithm, and the initialization packet (IV packet) stores an initial value (IV) used for initialization of the stream encryption algorithm. . Also, the IV packet inserting unit 1102 stores the key ID in the IV packet. There are two types of key IDs, "Current" and "Next". The key ID "Current" is an identifier of a key currently in use. The key ID "Next" is an identifier of a key to be used next. The IV packet insertion unit 1102 inserts the generated IV packet into the TS packet sequence output from the header conversion unit 1101 .

图11表示本实施方式的IV数据包的构成例。在本实施方式中,作为TS数据包的一种而构成IV数据包。在图11中,在头中的PID字段保存表示是IV数据包的值“0x889(16进制)”。此外,ransport_scrambling_control字段的值是“00”。即不对IV数据包进行加密。此外,在该例子中,adaptation_field_control字段固定在“01”,设adaptation_field为无。FIG. 11 shows a configuration example of an IV packet in this embodiment. In this embodiment, an IV packet is configured as a type of TS packet. In FIG. 11, the PID field in the header holds a value "0x889 (hexadecimal)" indicating that it is an IV packet. Also, the value of the transport_scrambling_control field is "00". That is, the IV packet is not encrypted. Also, in this example, the adaptation_field_control field is fixed at "01", and the adaptation_field is set to None.

此外,在图11中,在data_byte字段保存IV(iv)、密钥ID“Current”(id_current)和“Next”(id_next)。此外,能保存多个IV(iv[n];n是0以上的整数)。在保存多个IV的情况下,形成iv_tsc_flag[n]和iv[n]的组。各iv[n]在各个对应的数据流加密过程中,在数据流加密算法的初始化中使用。Furthermore, in FIG. 11 , IV (iv), key IDs "Current" (id_current), and "Next" (id_next) are stored in the data_byte field. Also, a plurality of IVs can be stored (iv[n]; n is an integer of 0 or greater). When storing multiple IVs, a set of iv_tsc_flag[n] and iv[n] is formed. Each iv[n] is used in the initialization of the data stream encryption algorithm in each corresponding data stream encryption process.

此外,可以对每个iv[n],变更初始化间隔。这时,只把作为初始化时刻的iv[n]保存在IV数据包。与各iv[n]对应的初始化间隔分别与各个对应的数据流加密过程对应。例如,使用与加密的数据的媒体种类对应的初始化间隔。作为媒体种类,例如列举语音、图像、数据等。Also, the initialization interval can be changed for every iv[n]. At this time, only iv[n] which is the initialization time is stored in the IV packet. The initialization interval corresponding to each iv[n] corresponds to each corresponding data stream encryption process. For example, an initialization interval corresponding to the media type of encrypted data is used. Examples of media types include audio, video, data, and the like.

此外,在图11的例子中,用“0xff(16进制)”填充data byte字段中的未使用区域。此外,在data_byte字段中保存错误检测用的“CyclicRedundancy Check:CRC”(CRC_32)。另外,在IV数据包的接收侧,在作为CRC校验的结果,检测到错误时,放弃该IV数据包。In addition, in the example of FIG. 11, the unused area in the data byte field is filled with "0xff (hexadecimal)". In addition, "Cyclic Redundancy Check: CRC" (CRC_32) for error detection is stored in the data_byte field. Also, on the receiving side of the IV packet, when an error is detected as a result of the CRC check, the IV packet is discarded.

加密部1103进行针对IV数据包插入后的TS数据包串的数据流加密。成为该加密对象的是transport_scrambling_control字段的值为“01”、“10”和“11”的TS数据包。另外,关于TS数据包的头,不进行加密。此外,对于IV数据包,transport_scrambling_control字段的值为“00”,所以不进行加密。The encryption unit 1103 performs stream encryption on the TS packet sequence after IV packet insertion. The objects to be encrypted are TS packets whose values of the transport_scrambling_control field are "01", "10" and "11". In addition, the header of the TS packet is not encrypted. Also, for the IV packet, the value of the transport_scrambling_control field is "00", so encryption is not performed.

在该数据流加密处理中,加密部1103若在TS数据包串中发现了IV数据包(PID字段值为“0x889(16进制)”),就从该发现的IV数据包读出IV。然后,使用该读出的IV,对数据流加密算法进行初始化。即在TS数据包串中的IV数据包的位置对数据流加密算法进行初始化后,进行针对该IV数据包以后的加密对象的TS数据包的数据流加密。In this stream encryption process, when the encryption unit 1103 finds an IV packet (PID field value "0x889 (hexadecimal)") in the TS packet sequence, it reads the IV from the found IV packet. Then, the stream encryption algorithm is initialized using the read IV. That is, after the stream encryption algorithm is initialized at the position of the IV packet in the TS packet sequence, stream encryption is performed on the TS packets to be encrypted after the IV packet.

在该数据流加密算法的初始化中,从IV数据包读出密钥ID“Current”(id_current)和“Next”(id_next),准备在数据流加密中使用的密钥。In the initialization of this stream encryption algorithm, key IDs "Current" (id_current) and "Next" (id_next) are read from the IV packet, and keys used for stream encryption are prepared.

此外,加密部1103可以具有多个数据流加密过程[n]。各数据流加密过程[n]分别使用对应的IV(iv[n]),进行数据流加密算法的初始化。另外,各数据流加密过程[n]根据PID字段的值,判别要进行加密的TS数据包。In addition, the encryption unit 1103 may have multiple data stream encryption processes [n]. Each data stream encryption process [n] uses the corresponding IV(iv[n]) to initialize the data stream encryption algorithm. In addition, each stream encryption process [n] determines the TS packet to be encrypted according to the value of the PID field.

加密部1103把包含IV数据包和已加密的TS数据包的TS数据包串以从IV数据包插入部1102取得时的顺序对发送部1104输出。The encryption unit 1103 outputs the TS packet sequence including the IV packet and the encrypted TS packet to the transmission unit 1104 in the order obtained from the IV packet insertion unit 1102 .

发送部1104发送从加密部1103取得的TS数据包串。The transmission unit 1104 transmits the TS packet sequence obtained from the encryption unit 1103 .

接着,说明实施方式2的数据流加密方式的解密装置。Next, a decryption device of the data stream encryption method according to Embodiment 2 will be described.

图12是表示本发明实施方式2的数据流加密方式的解密装置1200的构成的方框图。FIG. 12 is a block diagram showing the configuration of a decryption device 1200 of a data stream encryption method according to Embodiment 2 of the present invention.

在图12中,接收部1201接收从加密装置1100发送的TS数据包。接收部1201进行针对已接收的TS数据包的错误检测和错误订正处理。In FIG. 12 , a receiving unit 1201 receives a TS packet transmitted from an encryption device 1100 . The receiving unit 1201 performs error detection and error correction processing on received TS packets.

这时,关于通过CRC校验检测到错误的IV数据包,放弃。At this time, the IV packet whose error is detected by the CRC check is discarded.

数据包分配部1202,关于接收部1201输出后的TS数据包,根据头中的PID字段值,向各目的地分配。这里,将IV数据包(PID字段值为“0x889(16进制)”)向IV数据包读入部1203输出。此外,将被加密的TS数据包(transport_scrambling_control字段的值“01”、“10”和“11”)向与该字段值对应的解密部1204输出。此外,将未被加密的其他TS数据包,原封不动从解密装置1200输出。The packet distributing unit 1202 distributes the TS packets output from the receiving unit 1201 to the respective destinations based on the value of the PID field in the header. Here, the IV packet (the PID field value is “0x889 (hexadecimal)”) is output to the IV packet reading unit 1203 . Also, the encrypted TS packet (values "01", "10", and "11" of the transport_scrambling_control field) is output to the decryption unit 1204 corresponding to the field value. Also, other unencrypted TS packets are output from the decryption device 1200 as they are.

IV数据包读入部1203从IV数据包读出IV和密钥ID“Current”(id_current)和“Next”(id_next)。根据该读出的密钥ID“Current”(id_current)和“Next”(id_next)准备数据流密码的解密中使用的密钥。然后,把该已准备的密钥和IV向解密部1204输出。另外,当在IV数据包中保存了多个IV(iv[n])的情况下,把各iv[n]向具有各个对应的数据流解密过程[n]的解密部1204输出。The IV packet reading unit 1203 reads the IV and key IDs "Current" (id_current) and "Next" (id_next) from the IV packet. Based on the read key IDs "Current" (id_current) and "Next" (id_next), a key used for decryption of the stream cipher is prepared. Then, the prepared key and IV are output to the decryption unit 1204 . Also, when a plurality of IVs (iv[n]) are stored in the IV packet, each iv[n] is output to the decryption unit 1204 having a corresponding stream decryption process [n].

解密部1204从数据包分配部1202取得被加密的TS数据包,进行数据流密码的解密。The decryption unit 1204 acquires the encrypted TS packet from the packet distribution unit 1202, and decrypts the stream cipher.

在该数据流密码的解密处理中,解密部1204,若从IV数据包读入部1203取得IV和密钥,就使用该IV对数据流加密算法进行初始化。接着,若完成了该初始化,就使用从IV数据包读入部1203取得的密钥,开始数据流密码的解密处理。即在所接收的TS数据包串中的IV数据包的位置,对数据流加密算法进行初始化后,进行针对该IV数据包以后的被加密的TS数据包的数据流密码的解密。In the decryption process of this stream cipher, the decryption unit 1204, upon acquiring the IV and the key from the IV packet reading unit 1203, initializes the stream encryption algorithm using the IV. Next, when the initialization is completed, the decryption process of the stream cipher is started using the key obtained from the IV packet reading unit 1203 . That is, at the position of the IV packet in the received TS packet sequence, after the stream encryption algorithm is initialized, the decryption of the stream cipher for the encrypted TS packets subsequent to the IV packet is performed.

解密部1204向再生装置1300输出已解密的TS数据包。The decryption unit 1204 outputs the decrypted TS packets to the playback device 1300 .

在再生装置1300中,进行被解密的TS数据包的再生。在图12的例子中,再生装置1300具有图像再生部1301、语音再生部1302和数据广播显示部1303。在解密装置1200中设置与图像再生部1301、语音再生部1302、数据广播显示部1303分别对应的解密部1204。在图像再生部1301、语音再生部1302、数据广播显示部1303中,进行分别从对应的解密部1204输出的TS数据包的再生。另外,图12所示的再生装置1300的构成是一个例子,能适宜变更媒体种类。In the playback device 1300, the decrypted TS packets are played back. In the example shown in FIG. 12 , playback device 1300 includes image playback unit 1301 , audio playback unit 1302 , and data broadcast display unit 1303 . Decryption unit 1204 corresponding to image reproduction unit 1301 , audio reproduction unit 1302 , and data broadcast display unit 1303 is provided in decryption device 1200 . In the image reproduction unit 1301, the audio reproduction unit 1302, and the data broadcast display unit 1303, the TS packets output from the corresponding decryption unit 1204 are respectively reproduced. In addition, the configuration of the playback device 1300 shown in FIG. 12 is an example, and the type of media can be changed as appropriate.

根据上述的实施方式2,通过IV数据包,能使加密过程的数据流加密算法的状态和解密过程的数据流加密算法的状态一致。因此,即使由于传送错误等,被加密的TS数据包损失,暂时加密过程和解密过程双方的数据流加密算法的状态变得不一致,在下一IV数据包的接收时,加密过程和解密过程双方的数据流加密算法的状态也能一致,可以重新开始正常的解密。据此,在数据流加密方式中,能够强化针对传送错误等引起的传送数据的损失的耐性。According to the above-mentioned second embodiment, the state of the data stream encryption algorithm in the encryption process can be made consistent with the state of the data stream encryption algorithm in the decryption process through the IV packet. Therefore, even if the encrypted TS packet is lost due to a transmission error or the like, and the states of the stream encryption algorithms of both the encryption process and the decryption process temporarily become inconsistent, when the next IV packet is received, the encryption process and the decryption process both The state of the data stream encryption algorithm can also be consistent, and normal decryption can be resumed. According to this, in the data stream encryption method, it is possible to strengthen the tolerance against loss of transmission data due to transmission errors or the like.

[实施方式3][Embodiment 3]

图13是表示本发明实施方式3的数据流加密方式的解密装置1220的构成的方框图。在图13中,对与图12的各部对应的部分赋予相同的符号,省略说明。此外,加密装置与实施方式2相同,所以省略说明。FIG. 13 is a block diagram showing the configuration of a decryption device 1220 of a data stream encryption method according to Embodiment 3 of the present invention. In FIG. 13 , parts corresponding to those in FIG. 12 are assigned the same reference numerals, and description thereof will be omitted. In addition, since the encryption device is the same as that in Embodiment 2, description thereof will be omitted.

在实施方式3中,如图13所示,设置计数校验部1221。只有该计数校验部1221涉及的部分是与图12的解密装置1200相比的变更点。计数校验部1221对被加密的TS数据包的损失个数进行计数。In Embodiment 3, as shown in FIG. 13 , a count verification unit 1221 is provided. Only the part related to the count verification unit 1221 is a point of change from the decryption device 1200 of FIG. 12 . The count check unit 1221 counts the number of lost encrypted TS packets.

在TS数据包的头中插入continuity_counter(连续性指标)。通过检测该continuity_counter,能对TS数据包的损失个数进行计数。计数校验部1221对解密部1204指示与该损失个数对应的解密的空转。计数校验部1221对每个解密部1204分别指示损失个数的计数和解密的空转。A continuity_counter (continuity indicator) is inserted into the header of the TS packet. By detecting the continuity_counter, the number of lost TS packets can be counted. The count verification unit 1221 instructs the decryption unit 1204 to idle for decryption corresponding to the number of losses. The count verification unit 1221 instructs the count of the number of losses and the idling of decryption for each decryption unit 1204 .

解密部1204按照该解密的空转指示,空转数据流密码的解密处理。在该空转中,在没有要解密的加密数据的状态下,进行与损失个数相应的解密处理。The decryption unit 1204 idles the decryption process of the stream cipher according to the decryption idle instruction. In this idling, in a state where there is no encrypted data to be decrypted, decryption processing corresponding to the number of lost pieces is performed.

据此,按与被加密的TS数据包的损失个数对应的数量,转移数据流加密算法的状态。其结果,即使损失被加密的TS数据包,加密过程和解密过程双方的数据流加密算法的状态也不会变得不一致,加密过程和解密过程双方的数据流加密算法的状态能继续保持一致。据此,在数据流加密方式中,能够强化针对传送错误等引起的传送数据的损失的耐性。Accordingly, the state of the stream encryption algorithm is shifted by the number corresponding to the number of lost encrypted TS packets. As a result, even if the encrypted TS packet is lost, the states of the stream encryption algorithms of both the encryption process and the decryption process will not become inconsistent, and the states of the stream encryption algorithms of both the encryption process and the decryption process can continue to be consistent. According to this, in the data stream encryption method, it is possible to strengthen the tolerance against loss of transmission data due to transmission errors or the like.

另外,计数校验部1221在损失个数超过计数功能的计数范围的情况下,不进行解密的空转的指示。这是因为损失个数超过计数范围的情况下,无法进行正确的解密的空转。计数校验部1221例如根据时刻信息,可以在一定间隔以上的损失继续时,判断为损失个数超过计数功能的计数范围。In addition, the count checking unit 1221 does not instruct the idling of decryption when the number of losses exceeds the count range of the count function. This is because when the number of losses exceeds the count range, the idling of correct decryption cannot be performed. The count checking unit 1221 can determine that the number of lost objects exceeds the counting range of the counting function when losses continue for a certain interval or longer based on time information, for example.

另外,在损失个数超过计数功能的计数范围的情况下,与实施方式2同样,可以利用IV数据包,使加密过程和解密过程双方的数据流加密算法的状态一致。Also, when the number of losses exceeds the counting range of the counting function, as in Embodiment 2, the state of the data stream encryption algorithm in both the encryption process and the decryption process can be made consistent by using the IV packet.

[实施方式4][Embodiment 4]

图14是表示本发明实施方式4的数据流加密方式的解密装置1240的构成的方框图。在该图14中,对与图12的各部对应的部分赋予相同符号,省略说明。此外,加密装置与实施方式2相同,省略其说明。FIG. 14 is a block diagram showing the configuration of a decryption device 1240 of a data stream encryption method according to Embodiment 4 of the present invention. In this FIG. 14 , the parts corresponding to the parts in FIG. 12 are assigned the same reference numerals, and description thereof will be omitted. In addition, the encryption device is the same as that in Embodiment 2, and its description is omitted.

在实施方式4中,如图14所示,把图12的解密部1204变更为计数校验和解密部1241。只有该计数校验和解密部1241涉及的部分是与图12的解密装置1200相比的变更点。此外,与实施方式3的不同点在于,把图13的计数校验部1221的功能分散配置到各解密部。In Embodiment 4, as shown in FIG. 14 , the decryption unit 1204 in FIG. 12 is changed to a count checksum decryption unit 1241 . Only the portion related to the count check and decryption unit 1241 is a point of change from the decryption device 1200 of FIG. 12 . Also, the difference from Embodiment 3 is that the functions of the count verification unit 1221 in FIG. 13 are distributed to each decryption unit.

计数校验和解密部1241对被加密的TS数据包的损失个数进行计数,进行与该损失个数对应的解密的空转。在该空转中,在没有要解密的加密数据的状态下,进行与损失个数相应的数量的解密处理。另外,在损失个数超过了计数功能的计数范围的情况下,不进行解密的空转的指示。例如根据时刻信息,可以在一定间隔以上的损失继续时,判断为损失个数超过了计数功能的计数范围。The count check and decryption unit 1241 counts the number of lost encrypted TS packets, and performs decryption idling corresponding to the lost number. In this idling, the number of decryption processes corresponding to the number of lost pieces is performed in a state where there is no encrypted data to be decrypted. In addition, when the number of losses exceeds the count range of the count function, no instruction is given to idle for decryption. For example, based on the time information, it can be determined that the number of lost objects exceeds the counting range of the counting function when losses continue for a certain interval or longer.

据此,与实施方式3同样,即使损失被加密的TS数据包,加密过程和解密过程双方的数据流加密算法的状态也不会变得不一致,加密过程和解密过程双方的数据流加密算法的状态能继续保持一致。据此,在数据流加密方式,能够强化针对传送错误等引起的传送数据的损失的耐性。Accordingly, similar to Embodiment 3, even if the encrypted TS packet is lost, the states of the data stream encryption algorithms of both the encryption process and the decryption process will not become inconsistent, and the data stream encryption algorithms of both the encryption process and the decryption process will not become inconsistent. The state can continue to be consistent. Accordingly, in the data stream encryption method, it is possible to strengthen the tolerance against loss of transmission data due to transmission errors or the like.

另外,在损失个数超过了计数功能的计数范围的情况下,与实施方式2相同,可以利用IV数据包,使加密过程和解密过程双方的数据流加密算法的状态一致。In addition, when the number of losses exceeds the counting range of the counting function, similar to Embodiment 2, the states of the data stream encryption algorithms in both the encryption process and the decryption process can be made consistent by using the IV packet.

[实施方式5][Embodiment 5]

图15是表示本发明实施方式5的数据流加密方式的加密装置1120的构成的方框图。在该图15中,对与图10的各部对应的部分赋予相同的符号,省略其说明。此外,解密装置也可以使用上述的任意的实施方式的解密装置,省略其说明。FIG. 15 is a block diagram showing the configuration of an encryption device 1120 of a data stream encryption method according to Embodiment 5 of the present invention. In FIG. 15 , parts corresponding to those in FIG. 10 are assigned the same reference numerals, and description thereof will be omitted. In addition, as the decryption device, the decryption device of any of the above-mentioned embodiments may be used, and description thereof will be omitted.

在实施方式5中,如图15所示,设置数据分析部1121。只有该数据分析部1121涉及的部分是与图10的加密装置1100相比的变更点。数据分析部1121分析TS数据包中保存的数据流内容数据。数据分析部1121通过该分析,把握数据流内容数据的处理单位。数据分析部1121指示IV数据包插入部1102a,以使其按每个数据流内容数据的处理单位插入IV数据包。IV数据包插入部1102a在被数据分析部1121指示的时刻,进行IV数据包的插入。据此,按每个数据流内容数据的处理单位插入IV数据包。In Embodiment 5, as shown in FIG. 15 , a data analysis unit 1121 is provided. Only the part related to the data analysis unit 1121 is a point of change from the encryption device 1100 of FIG. 10 . The data analysis unit 1121 analyzes stream content data stored in TS packets. Through this analysis, the data analysis unit 1121 grasps the processing unit of the stream content data. The data analysis unit 1121 instructs the IV packet insertion unit 1102a to insert an IV packet for each processing unit of stream content data. The IV packet insertion unit 1102a inserts an IV packet at the timing instructed by the data analysis unit 1121 . Accordingly, an IV packet is inserted for each processing unit of stream content data.

以下,按数据流内容的种类不同,详细说明本实施方式的IV数据包插入动作。另外,这里,作为数据流内容的例子,列举图像内容、语音内容和数据广播内容。Hereinafter, the IV packet insertion operation of this embodiment will be described in detail according to the type of stream content. In addition, here, as examples of streaming content, image content, audio content, and data broadcast content are cited.

(图像内容)(image content)

在是图像内容的情况下,在紧邻保存了基准图像帧的TS数据包之前插入IV数据包。例如,在MPEG-1/2/4等图像编码方式中,生成称作I图像(Intra-Picture)、P图像(Predictive-Picture)、B Picture(Bi-directional Predictive-Picture)的3种图像。其中,I图像是基准图像帧,是成为图像解密时的基准的帧。因此,为了进行正常的图像解密,正常传送I图像是重要的。因此,如图16所示,在紧邻保存了I图像1130的TS数据包之前插入IV数据包1140。据此,I图像的加密和解密在对数据流加密算法进行了初始化的状态下开始,所以能稳定进行I图像的加密数据的解密。据此,能对稳定的图像内容再生的实现做出贡献。In the case of image content, an IV packet is inserted immediately before the TS packet storing the reference image frame. For example, in image coding methods such as MPEG-1/2/4, three types of images called I-picture (Intra-Picture), P-picture (Predictive-Picture), and B-Picture (Bi-directional Predictive-Picture) are generated. Among them, the I picture is a reference image frame, and is a frame used as a reference when decrypting an image. Therefore, in order to perform normal picture decryption, it is important to transmit I pictures normally. Therefore, as shown in FIG. 16, the IV packet 1140 is inserted immediately before the TS packet in which the I picture 1130 is stored. According to this, the encryption and decryption of the I picture start with the stream encryption algorithm initialized, so that the encrypted data of the I picture can be decrypted stably. Accordingly, it is possible to contribute to the realization of stable image content reproduction.

另外,在H.264等图像编码方式中,除了上述3种图像,还生成称作IDR(Instantaneous Decoder Refresh)图像的基准图像帧。这时,也可以在紧邻IDR帧之前插入IV数据包。In addition, in image coding methods such as H.264, in addition to the above three types of images, a reference image frame called an IDR (Instantaneous Decoder Refresh) image is also generated. At this time, an IV packet may also be inserted immediately before the IDR frame.

(语音内容)(voice content)

在是语音内容的情况下,在紧邻保存了语音帧的TS数据包之前插入IV数据包。例如,在数字广播等中,在具有称作ADTS(Audio DataTransport Stream)的头的帧中,传送语音编码数据。从该ADTS头开始语音帧,所以ADTS头成为语音编码数据的解密时的基准。因此,如图17所示,在紧邻保存ADTS头1150的TS数据包之前插入IV数据包1140。据此,在紧邻语音帧之前进行数据流加密算法的初始化,在对数据流加密算法进行了初始化的状态下开始语音帧的加密和解密,所以可以稳定进行语音帧的加密数据的解密。据此,能对稳定的语音内容再生的实现做出贡献。In the case of audio content, an IV packet is inserted immediately before the TS packet storing the audio frame. For example, in digital broadcasting and the like, encoded speech data is transmitted in a frame having a header called ADTS (Audio DataTransport Stream). Since the audio frame starts from the ADTS header, the ADTS header serves as a reference when decrypting speech coded data. Therefore, as shown in FIG. 17 , the IV packet 1140 is inserted immediately before the TS packet holding the ADTS header 1150 . Accordingly, the data stream encryption algorithm is initialized immediately before the audio frame, and the encryption and decryption of the audio frame start while the data stream encryption algorithm is initialized, so that the encrypted data of the audio frame can be decrypted stably. Accordingly, it is possible to contribute to the realization of stable audio content playback.

(数据广播内容)(data broadcast content)

在是数据广播内容的情况下,按每个重复广播的数据单位(循环数据)插入IV数据包。据此,在紧邻循环数据之前进行数据流加密算法的初始化,在对数据流加密算法进行了初始化的状态下开始循环数据的加密和解密,所以可以稳定进行循环数据的加密数据的解密。据此,能对稳定的数据广播内容再生的实现做出贡献。In the case of data broadcast content, an IV packet is inserted for every data unit (cyclic data) that is repeatedly broadcast. According to this, the stream encryption algorithm is initialized immediately before the cyclic data, and the cyclic data encryption and decryption are started with the stream cipher algorithm initialized, so that the encrypted data of the cyclic data can be decrypted stably. Accordingly, it is possible to contribute to the realization of stable playback of data broadcasting content.

以上,参照附图,说明本发明的实施方式,但是具体的构成并不局限于本实施方式,还包含不脱离本发明的宗旨的范围的设计变更等。As mentioned above, the embodiment of the present invention has been described with reference to the drawings, but the specific configuration is not limited to the present embodiment, and design changes and the like within the range not departing from the gist of the present invention are also included.

例如,上述的实施方式可以在面向便携式终端的数字广播系统中应用。这种情况下,在数字广播中,即使由于广播数据的传送错误等,保存数据流加密数据的TS数据包损失,广播电台侧和便携式终端侧的双方的数据流加密算法的状态变为不一致,暂时变为数字广播的接收状态变为不稳定,利用此后的IV数据包,能够使广播电台侧和便携式终端侧的双方的数据流加密算法的状态一致,并使数字广播的接收状态恢复到良好的状态。据此,能有助于面向便携式终端的数字广播的质量提高。For example, the above-mentioned embodiments can be applied in a digital broadcasting system oriented to portable terminals. In this case, in digital broadcasting, even if the TS packet storing the stream encryption data is lost due to a broadcast data transmission error, etc., the state of the stream encryption algorithm on both the broadcast station side and the mobile terminal side becomes inconsistent, The receiving state of digital broadcasting becomes unstable for a while, and the state of data stream encryption algorithms on both the broadcasting station side and the portable terminal side can be made to be the same by using the subsequent IV packet, and the receiving state of digital broadcasting can be restored to a good state. status. Accordingly, it is possible to contribute to the improvement of the quality of digital broadcasting for mobile terminals.

另外,本发明能在各种广播系统和通信系统中应用。In addition, the present invention can be applied in various broadcasting systems and communication systems.

工业上的可利用性Industrial availability

根据本发明,在利用广播波提供由多个资源构成的内容的情况下,能够对用户提供多样的服务方式。此外,根据本发明,在数据流加密方式中,能够强化针对传送错误等引起的传送数据的损失的耐性。According to the present invention, in the case of providing content composed of a plurality of resources by broadcast waves, it is possible to provide users with various service methods. Furthermore, according to the present invention, in the data stream encryption method, it is possible to strengthen the tolerance against loss of transmission data due to transmission errors or the like.

Claims (14)

1. an encryption device, provide the content that is made of a plurality of resources with broadcast wave, comprising:
Ciphering unit is encrypted described each resource of cryptographic object with each encryption key;
The packet generation unit, the packet of enciphered data or the non-encrypted data of described each resource is preserved respectively in generation;
The initialization package generation unit generates the initialization package of the initial value that uses in the initialization of save data stream cipher algorithm with the initialization interval of traffic encryption algorithm;
The initialization package plug-in unit in the packet string that the described packet by save data stream content-data consists of, inserts described initialization package by the processing unit of each described data stream contents data; And
Transmitting element, it sends encrypted packets and the described initialization package of preserving the described data stream contents data after encrypting;
Described ciphering unit uses the initial value of preserving in described initialization package, and the data stream cipher algorithm is carried out initialization, and described data stream contents data are carried out traffic encryption.
2. license issuing device, for the content that is consisted of by a plurality of resources, require 1 described encryption device with each encryption key, described each resource of cryptographic object to be carried out under the state of encryption in right to use, be provided for by communication line the licence that the encrypt asset when utilizing broadcast wave to provide is decrypted, comprise:
Memory cell is stored described licence;
Transmitting element sends the licence in described memory cell;
Described licence is constituted by license identifier and decruption key;
Described license identifier represents that this licence becomes effective broadcasting area;
Each of described decruption key and cryptographic object resource is corresponding and be set up.
3. a decryption device, require 1 described encryption device with each encryption key, each resource of cryptographic object to be carried out utilizing broadcast wave that the content that is made of a plurality of resources is provided under the state of encryption in right to use, comprising:
Receiving element receives initialization package and encrypted packets;
The allocation of packets unit, it distributes the described encrypted packets with enciphered data according to the described packet that has received by the resource difference of cryptographic object;
The licence receiving element receives by communication line the licence that license issuing device claimed in claim 2 is issued;
Decrypting device, use the initial value of preserving in described initialization package, the data stream cipher algorithm is carried out initialization, with each described decruption key in the described licence that has received, the described enciphered data in the described packet that distributes by the resource difference of cryptographic object is decrypted.
4. decryption device according to claim 3,
The licence holding unit that also has the described licence of storage.
5. decryption device according to claim 3,
Also have the deciphering control unit, and should decipher control unit according to the described license identifier in described licence, control the deciphering that this licence becomes the described enciphered data that contains in effective broadcasting area.
6. decryption device according to claim 3,
Also have accumulative element, and this accumulative element accumulates the described content that receives with broadcast wave.
7. decryption device according to claim 3,
Also have licence and obtain the unit, and this licence is obtained the unit and obtained the effective described licence of broadcasting area in receiving by communication line.
8. decryption device according to claim 3,
Also have: display unit, express in display frame and utilize broadcast wave receiving or the predetermined described content that receives;
Designating unit specifies in the described content of expressing in described display frame;
Licence is obtained the unit, by communication line obtain with based on described licence corresponding to the described content of the appointment of described designating unit.
9. decryption device according to claim 6,
Also have: display unit, express in display frame utilize broadcast wave receiving or predetermined receive described in the described content that accumulates in perhaps described accumulative element;
Designating unit specifies in the described content of expressing in described display frame;
Licence is obtained the unit, by communication line obtain with based on described licence corresponding to the content of the appointment of described designating unit.
10. decryption device according to claim 8,
Described display unit is being expressed having or not of the described licence corresponding with the content expressed in described display frame in described display frame.
11. encryption device according to claim 1,
Described initialization package generation unit uses the initialization interval corresponding with the medium kind of encrypted data.
12. encryption device according to claim 1,
A plurality of described ciphering units are set;
Described initialization package generation unit is saved in each initial value of described ciphering unit in initialization package.
13. encryption device according to claim 1,
Described initialization package and described encrypted packets are all transmission package, and its kind is different.
14. a broadcast system possesses:
Encryption device claimed in claim 1;
License issuing device claimed in claim 2;
Decryption device claimed in claim 3.
CN2007800174980A 2006-05-16 2007-05-16 Encrypting device, decrypting device, license issuing device and content data generating method Expired - Fee Related CN101444096B (en)

Applications Claiming Priority (5)

Application Number Priority Date Filing Date Title
JP137002/2006 2006-05-16
JP137004/2006 2006-05-16
JP2006137002A JP5042524B2 (en) 2006-05-16 2006-05-16 ENCRYPTION DEVICE, DECRYPTION DEVICE, CONTENT DATA GENERATION METHOD
JP2006137004A JP5698425B2 (en) 2006-05-16 2006-05-16 Decoding device
PCT/JP2007/060060 WO2007132895A1 (en) 2006-05-16 2007-05-16 Encryption device, decryption device, license issuing device, and content data generation method

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN201010529724.7A Division CN102035829B (en) 2006-05-16 2007-05-16 Encryption apparatus, decryption apparatus, licensing apparatus and content data generation method

Publications (2)

Publication Number Publication Date
CN101444096A CN101444096A (en) 2009-05-27
CN101444096B true CN101444096B (en) 2013-06-05

Family

ID=38844415

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007800174980A Expired - Fee Related CN101444096B (en) 2006-05-16 2007-05-16 Encrypting device, decrypting device, license issuing device and content data generating method

Country Status (2)

Country Link
JP (1) JP5042524B2 (en)
CN (1) CN101444096B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8966289B2 (en) * 2010-12-17 2015-02-24 Nxp B.V. Pairing of angle sensor and electronic control unit
US10157282B2 (en) * 2013-12-16 2018-12-18 International Business Machines Corporation Multiband encryption engine and a self testing method thereof

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1237843A (en) * 1998-06-02 1999-12-08 日本电气株式会社 System, method and medium for broadcasting service content
US6865555B2 (en) * 2001-11-21 2005-03-08 Digeo, Inc. System and method for providing conditional access to digital content

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2000003541A1 (en) * 1998-07-13 2000-01-20 Sony Corporation Data multiplexer, program distribution system, program transmission system, toll broadcast system, program transmission method, limited receiving system, and data receiver
JP2003333032A (en) * 2002-05-15 2003-11-21 Oki Electric Ind Co Ltd Encryption processing method and encryption processor
JP2005318041A (en) * 2004-04-27 2005-11-10 Victor Co Of Japan Ltd Stream data transmission apparatus, stream data reception apparatus, and stream data transmission/reception system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1237843A (en) * 1998-06-02 1999-12-08 日本电气株式会社 System, method and medium for broadcasting service content
US6865555B2 (en) * 2001-11-21 2005-03-08 Digeo, Inc. System and method for providing conditional access to digital content

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
JP特开平9-51520A 1997.02.18

Also Published As

Publication number Publication date
CN101444096A (en) 2009-05-27
JP2007311939A (en) 2007-11-29
JP5042524B2 (en) 2012-10-03

Similar Documents

Publication Publication Date Title
US8281128B2 (en) Method and apparatus for encrypting transport stream of multimedia content, and method and apparatus for decrypting transport stream of multimedia content
US7356147B2 (en) Method, system and program product for attaching a title key to encrypted content for synchronized transmission to a recipient
US8165293B2 (en) Method and system providing scrambled content
US20060036551A1 (en) Protecting elementary stream content
US20060184790A1 (en) Protecting elementary stream content
CN100592787C (en) Method and conditional access system for content protection
US20080298580A1 (en) Content delivery server and content delivery system
JP2005287039A (en) Common scramble processing
JP2005513839A (en) Digital content distribution system
CN101449578A (en) Stream generating method, broadcast receiving apparatus, and display method
JP2008009303A (en) Content distribution server and content distribution method
JP2000349725A (en) Broadcast receiver and content usage control method
KR101059181B1 (en) Encryption device, decryption device, license issuing device, and method of generating content data
KR20060064469A (en) Device and method for protecting video files that are streaming service by multicast method
US20090169000A1 (en) Encryption device and medium, decryption device and method, data delivery device, data receiving device, and data delivery system
CN101444096B (en) Encrypting device, decrypting device, license issuing device and content data generating method
CN100385941C (en) Method for processing first domain encoded data received in a network belonging to a second domain
JP4422437B2 (en) License information transmitting apparatus and license information receiving apparatus
CN108650549B (en) Digital television data management method and system
JP7688987B2 (en) Transmitting device and receiving device
JP5698425B2 (en) Decoding device
JP4000809B2 (en) Encryption / decryption device
JP2008187691A (en) Content distribution system and content distribution method
KR100725782B1 (en) Broadcast Content Protection System and Method
JP2007311940A (en) Encryption device and decryption device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130605

Termination date: 20180516